Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows Installer (WI) & Conditional Installs
Message
General information
Forum:
Visual FoxPro
Category:
Installation, Setup and Configuration
Miscellaneous
Thread ID:
00495253
Message ID:
00495281
Views:
13
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform