Hi Gurus,
Our customers are supposed to put a properties file in the same directory as the install program. The install program installs our files and copies the properties file to the correct location as part of the install. We would like for the install program to check for the existence of the properties file. If the file does not exist, display a dialog and abort the installation. I have created a file search, the name is the name of the properties file, and the path is [SourceDir]. This displays a dialog and aborts, this is terrific. The problem seems to be that “SourceDir” has not been set at this point. As a result, the installer NEVER finds the file and never installs. By experimenting I see that “OriginalDatabase” is set and has close to what I need. I wrote a vb script to pull the path out of “OriginalDatabase” and append the property file name. But I don’t see how to use the vb script as a search or in custom launch conditions.
How can I tell if a particular file exists in the directory where the msi is located and abort the install if the file does not exist?
Thank You
Bob
FOLLOW US
Get the latest news in Application Packaging