PDA

View Full Version : Selecting the Install Folder


VictorReinhart
07-28-2001, 09:31 PM
Hi,
I have a need, in some cases, to verify that my INI file exists when the user selects the install folder. My current (non-SF) setup will reject the install folder if the file is not in the install folder which the user chooses.

Any suggestions?

TIA

Mark
08-01-2001, 10:52 AM
Hi,

The problem in this situation is that Setup Factory can only perform a File Search at the beginning of each installation. If you really wanted to accomplish this then what you could do is use two separate installations in conjunction. One would be a "wrapper" installation, and the other would be the "main" installation.

If there is only going to be one copy of your INI file on the user's system, then you could perform a File Search for the INI file and store the path in a variable. Then when the user selects an Installation Path, you would compare the two values, and if they are not equal, inform the user that they have selected an incorrect path.

mark.