PDA

View Full Version : Install Location Prompting



vasontsystems
11-06-2008, 02:02 PM
Please help me out... My guess is that Jassing will prob be answering this one for me first... Thanks ahead of time Jassing... lol

I want to search for a key and value in registry and set a variable to the ID of [INSTALLDIR]. So when the dialogue appears for installation, the default [INSTALLDIR] will be set to the same name as the registry value...

Hope this makes sense...

Thanks in Advanced...

Vasont

venky
11-06-2008, 11:55 PM
I don't want to steal the thunder from jassing but he can probably give us a different solution than mine. My solution to your question is as follows:

1. Create a registry search. Enter the property ID to store the result of the registry search. You fill in the root, key name and value name.

2. Edit the Next button (on the Welcome dialog or any dialog before the dialog that shows the installation folder) and add a published event. For the type choose property. In property field enter INSTALLDIR. In value field enter the registry search property ID. Make sure you enclose the registry search property ID in square brackets.
OR
Create a Set Property custom action to set the INSTALLDIR property to the registry search property ID defined in step 1 above. In the property field of custom action enter INSTALLDIR and in the value field enter the registry search property ID. Make sure you enclose the registry search property ID in square brackets. Edit the Next button (on the Welcome dialog or any dialog before the dialog that shows the installation folder) and add a published event. For the type choose event. In the event field choose DoAction. In the argument enter the name of the Set Property custom action.


You are all set.

Venky.

vasontsystems
11-07-2008, 07:48 AM
Thank you so much!

Vasont