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
- :
- Can't write to HKLM on Vista
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
Jul 23, 2008
02:02 AM
Can't write to HKLM on Vista
I use InstallShield 2008 to create a basic MSI project. In the project, I add a custom action of the "Run InstallScript code" type. In the function which the action is referring to, I use the registry functions like RegDBSetKeyValueEx to try to write info into HKLM, but it always fails on Vista. But if I use InstallScript MSI project to do the same thing, it works well. Does somebody know the reason?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 23, 2008
02:12 AM
Another variation for the case above is:
Firstly I copy some dlls to the installation directory, then in the script I invoke some functions in the dll to try to write to HKLM, it also failes on Vista. After I embed manifest file in these dlls, it still failes. Somebody can help me?
Firstly I copy some dlls to the installation directory, then in the script I invoke some functions in the dll to try to write to HKLM, it also failes on Vista. After I embed manifest file in these dlls, it still failes. Somebody can help me?