igi
Posts: 47
Joined: Tue Nov 15, 2011 3:45 pm

Creating registry keys on 64 bit os

Wed Apr 11, 2012 1:28 pm

Hi,

I generated a 32 bit package which creates some registry keys under HKEY_LOCAL_MACHINE\SOFTWARE\<Name>. If the setup runs on 64 bit windows 7 workstation, the registry keys are not created.

best regards,
Igor

Daniel
Posts: 8237
Joined: Mon Apr 02, 2012 1:11 pm
Contact:  Website

Re: Creating registry keys on 64 bit os

Wed Apr 11, 2012 2:31 pm

Hi Igor,

Please keep in mind that on a 64-bit system the registry entries installed by a 32-bit application are created under the "HKEY_LOCAL_MACHINE\Software\Wow6432Node" key. You can see our article about the Wow6432Node registry entry.

To install a registry entry on a 64-bit system under "HKEY_LOCAL_MACHINE\SOFTWARE\" you should mark its component as "64-bit Component" from the Organization page. Just press F8 keyboard shortcut from the Registry page while having the value selected.

Regards,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

igi
Posts: 47
Joined: Tue Nov 15, 2011 3:45 pm

Re: Creating registry keys on 64 bit os

Thu Apr 12, 2012 10:06 am

Thank you, Daniel. That's it.
It seems that is no problem on 32bit os if the component is marked as "64-bit vomponent". Right?
Is there a way to mark the components at once in a simple way? I have many registry values...

Regards,
Igor

Daniel
Posts: 8237
Joined: Mon Apr 02, 2012 1:11 pm
Contact:  Website

Re: Creating registry keys on 64 bit os

Thu Apr 12, 2012 1:43 pm

Hi Igor,

A registry component, from a 32-bit package, that is marked as "64-bit component" will be installed both, on a 32-bit system and on a 64-bit system, in its corresponding location. Although this scenario violate ICE80 Windows Installer validation rule, until now no problems were encountered.

If you want to mark as "64-bit component" more components at once you should proceed as follows:
-if your components name contain a common label you can performed a search from the top right corner edit box
-the search results will be displayed on the Search Pane
-in the Search Pane you should select all components, from the context menu choose "Properties" option and then enable the "64-bit component" option
-if your components name doesn't contain a common label then you can manually add them on the Search Pane by selecting them and pressing F4 shortcut key
-after you add the desired components in the Search Pane you should select all components, from the context menu choose "Properties" option and then enable the "64-bit component" option

Regards,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”