Jerry Evans
Posts: 11
Joined: Fri Jan 07, 2005 10:03 pm

Setting default installation folder to value in registry ?

Hi

I'm using AI to distribute some VST plugins. A convention is that there is a single folder on the target machine which contains all VSTs. This value is found in HKEY_LOCAL_MACHINE\SOFTWARE\VST\VSTPluginsPath. How can I read that value (if it exists) and make it the default installation ?

Thx
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

You need to set up a Search, then use a Custom Action to place the result from the property into TARGETDIR.

Cata
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jerry Evans
Posts: 11
Joined: Fri Jan 07, 2005 10:03 pm

thanks cata

but i cannot work out how to do this - is there an example script you could send me ?
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

1.Create a "New Search"

2.Add a registry location for this search. Enter the path of the value that contains the desired folder.

3.Create a custom action of type "Directory Set With Formatted" that has:

Directory: TARGETDIR . Select the application from FolderPicker.

Formatted Text: [name of the propoety set by search]. Use Edit button and insert a refernce to a property.

Schedule this custom action after InstallInitialize standard action.

4.Remove the Selet Location dialog from the dialogs list.
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”