MrSoapsud
Posts: 6
Joined: Tue Jul 28, 2015 10:12 am

Create 64bit reg keys in free version?

Hi,
I'm trying to write some 64-bit reg keys using version 13.1 (free) and it seems that whatever I do they go into Wow6432Node. I've set the package type to 64-bit but it still doesn't work. Is this not possible with the free version?
Thanks
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Create 64bit reg keys in free version?

Hello,

Please note that when a 32-bit application writes or reads a value under the HKEY_LOCAL_MACHINE\SOFTWARE, the application reads from the HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node on a 64-bit OS.

Their 32-bit counterparts are resolved to redirected locations as follows:
  • ProgramFilesFolder - C:\Program Files (x86)\
  • CommonFilesFolder - C:\Program Files (x86)\Common Files\
  • SystemFolder - C:\Windows\SysWOW64\
  • HKEY_LOCAL_MACHINE\SOFTWARE - HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node
This is the default behavior for Windows Installer.

In this case, you need to select a 64-bit setup package in the Install Parameters page. Please note that 64-bit MSI packages can only run on 64-bit OSs. So, you would need another package for 32-bit OSs.

The correct approach is to select the Mixed 32/64-bit matching the platform option in the Install Parameters page. This way, the package runs as a 32-bit package on 32-bit systems and as a 64-bit package on x64 systems.

The .MSI does not support mixed package type, thus the package type will be turned into an .EXE package type. The .EXE bootstrapper built by Advanced Installer is a 32 bit one, this contains the x86 and x64 MSI files as well as the files to be installed from the CAB. When launched the EXE checks for the operating system architecture and it launches the correct MSI.

Also, you need to select the 64-bit Component from the Component Properties that has been assigned to the related registry.

Please let me know if you have any questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MrSoapsud
Posts: 6
Joined: Tue Jul 28, 2015 10:12 am

Re: Create 64bit reg keys in free version?

Hi and thanks for the response.

As far as I can see, both the mixed package and the organisation settings are not available in the free version?

I've upgraded to a trial of Pro and, with 64bit package set and marking each individual reg key as a 64-bit component, then it works as I'd expect.

As it is, in the free version, I set it as a 64-bit only package but it was still only writing 32-bit reg keys. I think this might be a bug?
Regards
Martin
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Create 64bit reg keys in free version?

You're welcome Martin,
As far as I can see, both the mixed package and the organisation settings are not available in the free version?
Indeed, the Organizing MSI Packages and Mixed 32/64-bit installers features are available starting with the Professional edition of Advanced Installer.
As it is, in the free version, I set it as a 64-bit only package but it was still only writing 32-bit reg keys. I think this might be a bug?
Please note that you also need to mark the component of the registry as a 64-bit component.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MrSoapsud
Posts: 6
Joined: Tue Jul 28, 2015 10:12 am

Re: Create 64bit reg keys in free version?

Dan wrote:
As it is, in the free version, I set it as a 64-bit only package but it was still only writing 32-bit reg keys. I think this might be a bug?
Please note that you also need to mark the component of the registry as a 64-bit component.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.
OK - how do I "mark the component of the registry as a 64-bit component" in the free version, and why should I need to when I've asked for a 64-bit only package?
Thanks
Martin
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Create 64bit reg keys in free version?

In the free version you can go to Registry page, double click the registry value and select the option "Mark component as 64-bit".
This option is the equivalent of the option from Organization page, which is not available in the free version.

The components are not set automatically to 64-bit because most of the users still write under Wow6432Node by default (or in both locations),
from the situations we've encountered when talking to them.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MrSoapsud
Posts: 6
Joined: Tue Jul 28, 2015 10:12 am

Re: Create 64bit reg keys in free version?

Bogdan wrote:In the free version you can go to Registry page, double click the registry value and select the option "Mark component as 64-bit".
This option is the equivalent of the option from Organization page, which is not available in the free version.
A-ha! Many thanks Bogdan.

Regards
Martin

Return to “Common Problems”