Detecting existence of files during packaged install
Can a custom action be added to detect the presence of a file and install the file if not there?
I am very green when it comes to custom actions and especially so when vbscripts are involved. Please be as specific as possible. Any direction is greatly appreciated.
I am using Admin Studio InstallShield 2015 Premier.
Thank you in advance!
In general, PROPERTY from AppSearch is set to TRUE if file exists otherwise it is FALSE. In your case you need to install the new file if does not already exist on a machine so you should use "NOT PROPERTY" (NOT FALSE = TRUE so component will be installed).
In the InstallShield you can use a System Serach wizard described for example --> HERE<--.
If the file is in the User's profile then I would use a VBS CustomAction and Advertised Shortcut. I would install the file to some TMP location (eg. C:\ProgramData\AppName\ConfigFile\) and a VBS CA would copy the file if needed.