>Anyone have any experience with conditional installs with WI (ala VSI, Wise, InstallShield, etc...)?
>
>I'm trying to set up an Install which will abort if a filename doesn't exist, (if it does exist the [INSTALLDIR] should be set to the location where the file was found.)
>
Michael,
In InstallShield, testing for a file's existence isn't so difficult. You simply use the Is() function like this:
Is(FILE_EXISTS, sTestPath ^ "Myfile.txt")
FILE_EXISTS is an IS constant for the Is() function. Obviously, it will return false if the file does not exist. Depending on the result, you should be able to either use the ParsePath() function to extract the path and set your TARGETDIR for installation, or simply call the
abort command.
Hope that helps.
Laterness,
Jon
Jon Rosenbaum
Devcon Drummer