Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows Installer (WI) & Conditional Installs
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Installation et configuration
Divers
Thread ID:
00495253
Message ID:
00495281
Vues:
14
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform