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
- :
- Re: Registry Help
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
‎Oct 09, 2009
02:47 PM
Registry Help
Project Type: InstallScript MSI
I need to be able to set some registry entries based on input taken from a dialog box. I'd like to be able to set up the registry values via the IDE with properties but I'm not sure how it works. After taking the values from the dialog boxes I use MsiSetProperty(). In the IDE I set the registry value to [MSI_PROPERTY_NAME] but on install the value is blank. What is the proper way to pass a value from InstallScript code such that it can be used to set registry values configured with the IDE?
I need to be able to set some registry entries based on input taken from a dialog box. I'd like to be able to set up the registry values via the IDE with properties but I'm not sure how it works. After taking the values from the dialog boxes I use MsiSetProperty(). In the IDE I set the registry value to [MSI_PROPERTY_NAME] but on install the value is blank. What is the proper way to pass a value from InstallScript code such that it can be used to set registry values configured with the IDE?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 09, 2009
06:33 PM
Quite right, getting the InstallScript value during the UI sequence and passing it to MSI with MsiGetProperty should do it. Does a log file tell you anything more? Does adding the dialog property to SecureCustomProperties help? Perhaps post a code snippet?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 09, 2009
08:21 PM
Must have been a bad couple of runs on the installer. The most recent runs, one on a 2k3 server and the other on a clean 2k8 server, both yielded the appropriate registry values being in place. No idea what happened on the previous runs that left them blank. Sorry for the noise.