Prevent saving regitry entries in 64bit "Wow6432Node" node? - Advanced Installer Community
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Prevent saving regitry entries in 64bit "Wow6432Node" node?

Hello,

I have setup the installer to create a registry DWORD entry in the following key location,

HKEY_LOCAL_MACHINE\SOFTWARE\App1\Value1

The issue is in 64bit Windows the registry entry goes to the 64bit location in the registry. The following location,

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\App1\Value1

How to prevent this? The registry entry must not go to the 64bit location in the registry. The Package type is given as 32-bit package.

:?:
K
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Prevent saving regitry entries in 64bit "Wow6432Node" no

Hi,

In order to achieve this, you can check the "64-bit Component" flag for the component related to your registry entry. However, for this to work both on a 32-bit machine and on a 64-bit machine, you can follow the How do I install different registry entries based on the Operating System (32/64-bit) tutorial.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Prevent saving regitry entries in 64bit "Wow6432Node" no

Hello,
you can check the "64-bit Component" flag for the component related to your registry entry.
This worked. I only checked the 64-bit Component and it worked. Thanks

:D
K
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Prevent saving regitry entries in 64bit "Wow6432Node" no

You're welcome. I'm glad you got this working.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
adamdc78
Posts: 76
Joined: Wed Mar 19, 2014 7:42 pm

Re: Prevent saving regitry entries in 64bit "Wow6432Node" no

The Wow6432Node is the 32-bit portion of the 64-bit registry and is where your registry key should go if it is in fact for a 32-bit application.

From http://windowsitpro.com/systems-managem ... try-subkey
When a 32-bit application queries a value under the HKEY_LOCAL_MACHINE\SOFTWARE\<company>\<product> subkey, the application reads from the HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\<company>\<product> subkey.
A "registry reflector" copies certain values between the 32-bit and 64-bit registry views (e.g., mainly for COM registration) and resolves any conflicts using a last-writer-wins approach.
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Prevent saving regitry entries in 64bit "Wow6432Node" no

Thanks for this information. :)
K
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Prevent saving regitry entries in 64bit "Wow6432Node" node?

Hello,

How to write the same registry entries in both 32bit and 64bit portions of the registry? For example, like this,

HKEY_LOCAL_MACHINE\SOFTWARE\App1\Value1

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\App1\Value1

Both needs to be written.
K
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Prevent saving regitry entries in 64bit "Wow6432Node" node?

Hi,

To achieve this you can follow the steps described in the "How to install different registry entries based on the Operating System (32/64-bit)" tutorial. The only difference is that you do not need to set a condition for the 32-bit registry entries.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Prevent saving regitry entries in 64bit "Wow6432Node" node?

My pleasure.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Prevent saving regitry entries in 64bit "Wow6432Node" node?

Eusebiu wrote:Hi,

To achieve this you can follow the steps described in the "How to install different registry entries based on the Operating System (32/64-bit)" tutorial. The only difference is that you do not need to set a condition for the 32-bit registry entries.

Best regards,
Eusebiu
I tried this but on a 64-bit OS I'm still only getting the Wow6432Node and not the associated 32-bit Software node. My property is OUTLOOK_REG_KEY set to "Microsoft".

Update: I'm doing this in a Merge Module with a Package Type = 32-bit Package
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Prevent saving regitry entries in 64bit "Wow6432Node" node?

Hi Scott,

I'm not sure why you encounter this problem. Can you please send me the merge module project file to support at advancedinstaller dot com, so I can investigate it?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Prevent saving regitry entries in 64bit "Wow6432Node" node?

Hi Scott,

I looked over the merge module project that you sent and I noticed that you set the "64-bit component" flag only for the component related to the "OUTLOOK_REG_KEY" key, but not also for the components related to the values that key contains.

In order to achieve this, you can select each value available under that registry key, press the "F8" keyboard button to be redirected to its related component and set the "64-bit component" flag for it.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Prevent saving regitry entries in 64bit "Wow6432Node" node?

Eusebiu,

Good catch! Checking those worked. Guess setting that on all the child registry components wasn't evident in that article to me :oops:

~ Scott
Scott Jeslis
Senior Software Engineer
Cicero, Inc.

Return to “Common Problems”