If NSIS is 32-bit and it doesn't disable Registry redirection then when it
asks for "HKEY_LOCAL_MACHINE\SOFTWARE\My Company" the OS will give it
"HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\My Company", meaning you have no
problem.

Read more about it here: http://msdn.microsoft.com/library/aa384232.aspx

-----Original Message-----
From: John D. Marinuzzi [mailto:nu...@hypack.com] 
Sent: Wednesday, December 01, 2010 5:09 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Registry Question...

I am using a 64-bit Windows 7 machine.  I am installing our software with
the following script for the registry:

 

      <Directory Id="INSTALLDIR" Name="My Software">

        <Component Id="InstallDir_Key"
Guid="6F334E6C-DCB7-11DC-AAEA-00059A3C7800">

          

          <RegistryValue Id="InstallDir_Key_Value" Root="HKLM"
Key="SOFTWARE\My Company\My Software" Name="InstallDir" Action="write"
Type="string" Value="[INSTALLDIR]" />

        </Component>

      </Directory>

 

On the 64 bit machine the registry value is coming back as:

 

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\My Company

 

Why the Wow6432?

 

We have some NSIS scripts to install some files after the fact.  I assume it
will not be able to find the key if I use:

 

HKEY_LOCAL_MACHINE\SOFTWARE\My Company

 

For the path in the script.

 

Thanks,

 

John

 

 

 

----------------------------------------------------------------------------
--
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to