OTomkins
Posts: 7
Joined: Wed Jul 18, 2007 6:21 pm
Contact: ICQ

Disable Feature if file exists in installation directory

Hello,

I have to create an installer for our product that is basicly an addon to some other product. Our product can either be installed stand alone (and the other product is installed automaticly) or it can be installed in to the directory of the other product and all the files of that application are left alone.

So basicly we have got the followinf features in the msi:
1. Our App Feat 1
2. Our App Feat 2
3. Our App Feat 3
4. The other app (we depend on)
5. Another third party app (that is optional)

Now i would like to disable and hide feature 4 and 5 when a few files exist in the destination directory. I cannot use the search function of advanced insteller, because the destination directory can be changed by the user. So I thought I could use a custom action vbscript to hide and disable the features when the application we depend on is installed in the destination directory. But I can't find out how to do this.

Can you help?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

There is a similar discussion on the forum, please take a look:
http://www.advancedinstaller.com/forums ... =3848#3848

In the original package you can create a registry value that stores the installation path of the files you need for detection.

For the second installation, if this registry value exists (you can use a search for this) then the files are installed in the path stored in it. Therefore you can use the RESULT_PROPERTY property to condition the features.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”