This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- how to set component install destination at runtime
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 12, 2008
12:44 PM
how to set component install destination at runtime
Hi:
Some time ago (2006) a question was answered on "how to set component install destination at runtime" as:
"1. create a directory without any name say "New Folder 1"
2. go to custom actions view, right click and select "New Set Directory" custom action say "NewCustomAction1"
3. In the custom action property of the above custom action select "Directory Name" and select the folder "New Folder1" and in the "Directory Value" give any property say "[DYNAMIC_INSTALL_LOCATION]"
4. as you said, use a custom action to query some registry entry of a third party component on the machine and if it is there assign the required value to the above property."
I'm very new to installshield and would appreciate some coaching as to how to set the "required value to the above property."
MsiSetProperty()? If yes, can you state how to include the typedef for MSIHANDLE...seems you need msiquery.h, but the compiler needs expanded search path to find the ".h", I need to know how to set that up.
Also, how is handle parameter (hInstall) to MsiProperty() set? Can ISMSI_HANDLE be used? This is a basic MSI project type.
Lastly, where to you set the property value (ie, the call to MSISetProperty), OnBegin()?
I would really appreciate this information..It's pretty important. Thanks, Roger
Some time ago (2006) a question was answered on "how to set component install destination at runtime" as:
"1. create a directory without any name say "New Folder 1"
2. go to custom actions view, right click and select "New Set Directory" custom action say "NewCustomAction1"
3. In the custom action property of the above custom action select "Directory Name" and select the folder "New Folder1" and in the "Directory Value" give any property say "[DYNAMIC_INSTALL_LOCATION]"
4. as you said, use a custom action to query some registry entry of a third party component on the machine and if it is there assign the required value to the above property."
I'm very new to installshield and would appreciate some coaching as to how to set the "required value to the above property."
MsiSetProperty()? If yes, can you state how to include the typedef for MSIHANDLE...seems you need msiquery.h, but the compiler needs expanded search path to find the ".h", I need to know how to set that up.
Also, how is handle parameter (hInstall) to MsiProperty() set? Can ISMSI_HANDLE be used? This is a basic MSI project type.
Lastly, where to you set the property value (ie, the call to MSISetProperty), OnBegin()?
I would really appreciate this information..It's pretty important. Thanks, Roger
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 15, 2008
08:26 AM
You can find the value and set the property from the System Search view. This view sets up entries in the AppSearch table (and the tables AppSearch uses).