cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
duandcwpkt
Level 3

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?
Labels (1)
0 Kudos
(1) Reply
duandcwpkt
Level 3

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?
0 Kudos