Mixed Architecture Installers and WriteRegistry

Got a problem you cannot solve? Try here.
H4nd0
Posts: 92
Joined: Thu Nov 09, 2006 8:16 am
Location: Sydney, AU
Contact:

Mixed Architecture Installers and WriteRegistry

Postby H4nd0 » Fri Feb 09, 2007 9:33 am

Michael,

Our product is comprised of .NET and X86 components. I target the NGEN based on architecture.

The issue I'm facing is that once I set the install into 64-bit mode, attempts to change mode don't appear to work, or registry writes are not vectored correctly.

For example if I:

Code: Select all

Set x64 - Native 64 bit Windows, AMD64 and EM64T Architectures - installation mode
Write Registry Key HKLM\\SOFTWARE\\FireDaemon Technologies\\FireDaemon\\2.0\\Product, Trinity
Set Win32 - Native 32 bit Windows and Windows 32 on Windows 64 (WOW64) - installation mode
Write Registry Key HKLM\\SOFTWARE\\FireDaemon Technologies\\FireDaemon\\2.0\\Product, Trinity
Set x64 - Native 64 bit Windows, AMD64 and EM64T Architectures - installation mode

Only one registry key is created. No registry key is created under Wow6432Node.

If I try this instead:

Code: Select all

Set x64 - Native 64 bit Windows, AMD64 and EM64T Architectures - installation mode
Write Registry Key HKLM\\SOFTWARE\\FireDaemon Technologies\\FireDaemon\\2.0\\Product, Trinity
Write Registry Key HKLM\\SOFTWARE\\Wow6432Node\\FireDaemon Technologies\\FireDaemon\\2.0\\Product, Trinity

The latter register key is still not created.

Any advice on how to work around this greatly appreciated.

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Fri Feb 09, 2007 1:47 pm

Because Write Registry commands are applied only when Apply Install is called (same as all other Windows Installer commands used in your script - these are highlighted in purple to make them easy to identify, please read the "Classes of Commands" section in help for more information), your approach of using the Set 64 bit Mode command in between calls to Write Registry will not work, unfortunately.

It would work well when reading, but not when writing.

You can try the native write registry plug-in and that should help. Because it will write directly by-passing Windows Installer, it should not be subject to these limitations.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 234 guests