c_werner
Posts: 15
Joined: Tue Feb 06, 2007 5:24 pm
Location: Fresno
Contact: Website

Locating a file

Wondering if it's possible to determine installer actions based on whether ot not a file exists on the users computer.

Example: firefox.exe exists on the users computer, so the installer does not install the packaged firefox executable.

more specifically can the installer somehow detect flash (and maybe even what version?) and based on that not install the packaged flash player?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
Example: firefox.exe exists on the users computer, so the installer does not install the packaged firefox executable.
This can be done using a file search (in the "Search" page). The search result is stored by default in the RESULT_PROPERTY.

If the search succeed the property will contain the path to the file, else the property will be empty. So in the "Organization" page you need to condition the component associated with your executable like this: NOT RESULT_PROPERTY (the component will be installed if the search fails).

If you want to condition all the installation package the you need to use launch conditions:
http://www.advancedinstaller.com/user-g ... tions.html

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”