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
- :
- Change Registry dynamically
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
Jun 22, 2009
07:08 AM
Change Registry dynamically
Hi
Is it possible to change the registry key in a msi project dynamically without resorting to custom actions?
In our specific use case we need to do the following:
1. read in the registry key value from an ini file (probably setting a property via a custom action)
2. set a registry entry using exactly this key
Example:
In the ini file: the value HKEY_LOCAL_MACHINE\SOFTWARE\TEST is defined. We now need to write our values to this key.
It seems to me, that the registry keys must be predefined.
Greetings and thanks in advance
Is it possible to change the registry key in a msi project dynamically without resorting to custom actions?
In our specific use case we need to do the following:
1. read in the registry key value from an ini file (probably setting a property via a custom action)
2. set a registry entry using exactly this key
Example:
In the ini file: the value HKEY_LOCAL_MACHINE\SOFTWARE\TEST is defined. We now need to write our values to this key.
It seems to me, that the registry keys must be predefined.
Greetings and thanks in advance
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 22, 2009
11:33 AM
The keys and values would need to be defined in the MSI package in order for them to be installed by Windows Installer. The value data can be defined with a property reference that would allow it to change dynamically.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 30, 2009
09:03 AM
The solution is in fact very simple. I wonder how i have missed it previously:
1. Create a property (C_MYPROPERTY)
2. In the component view->registry entry add a registry folder with name of the property in brackets. Example: “[C_MYPROPERTY]”
Its as simple as that!!
1. Create a property (C_MYPROPERTY)
2. In the component view->registry entry add a registry folder with name of the property in brackets. Example: “[C_MYPROPERTY]”
Its as simple as that!!