Setting Registry Values fails - Advanced Installer Community
MarkLFT
Posts: 4
Joined: Tue Dec 15, 2020 9:26 am

Setting Registry Values fails

I am trying to change some existing registry setting values. I imported the settings from my computer, so I know the spellings etc. are correct.

The key of the values I am trying to change is Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTC\Security, there are several values I need to change. But even though the installer is running as Administrator, it does not change the values.

If I use Regedit I can change them, so there is not a permissions issue.

I am also creating a number of other registry keys for the Event View applications, and they work correctly. It just seems to be these ones that do not change.

Is there anything preventing me changing these values?
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Setting Registry Values fails

Hello Mark and welcome to our forums,

From what I can see, the registry path you have mentioned is 64-bit path.

When talking about registry, we have to take into consideration the mechanism called "registry redirection".

Basically, on a 64-bit machine, if you install a 32-bit package ("Install Parameters" page --> "Package Type"), all the registry entries will be redirected in the 32-bit section of the registry editor (that being the WOW6432Node).

Most likely, this is your case as well.

The key you have specified:

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTC\Security

is also present under the WOW6432Node:

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\MSDTC\Security

There are two ways of dealing with this:

1. you can set the "Package Type" to 64-bit. However, you will not be able to install this on 32-bit machines anymore.

2. you can go to "Registry" page --> select your value --> right click on it --> "Properties" --> "Mark as 64-bit component"

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”