Jan Bouma
Posts: 33
Joined: Fri Jul 13, 2007 11:27 am

Adding registry key and values in Wow6432Node

We have a 32 bit application that uses a 64 bit database server.
This database server runs on a 64 bit machine with a 64 bits windows server 2008.
The application is also running on this server.
When a i add registry key in Wow6432Node by specifing
Software\Wow6432Node\ODBC\ODBC.INI\XO_DEMO11\Databasename="XODEMO11"
( when i run the resulting msi ) i get an error:
Key could not be openend:
HKEY_LOCAL_MACHINE32\SOFTWARE\Wow6432Node\ODBC

Is this a bug ? or im a doing something wrong?

Jan Bouma
Bogdan
Posts: 2791
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Adding registry key and values in Wow6432Node

Hi,

You should not add “Wow6432Node” to your registry key because Windows will set it automatically, based on your package type (32 or 64 bit package). Your path should look something like this:

Code: Select all

Software\ODBC\ODBC.INI\XO_DEMO11\Databasename="XODEMO11"
Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jan Bouma
Posts: 33
Joined: Fri Jul 13, 2007 11:27 am

Re: Adding registry key and values in Wow6432Node

I did as you sugested.
But the 64 bit package added the keys in the wow6432Node.
But i want them in the normal 64 bit part of the registry.

Or should the msi be generated on a 64 bit OS ?
The machine on which i make the msi is 32 bit windows XP.
The target machine is a 64 bit windows server 2008 or other window server software.
Bogdan
Posts: 2791
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Adding registry key and values in Wow6432Node

Hi,

You must go to Organizations page and mark the components of the package as being 64 bits components. This is done by checking the “64-bit Component” check box from the Attributes group.This should have the results you desire.

Note that even if you did created a 64-bit package its components can still be on 32 bits.
Or should the msi be generated on a 64 bit OS ?
The MSI package can be generated and on 32-bit operating systems, not necessarily 64-bit ones.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”