Hi,

 I want the 64 bit installer to write to WOW6432Node registry, which is used 
for 32 bit application, and the 64 bit components will not write to registries 
under WOW6432Node.

>From WIX help file for <component> element:
Win64

YesNoType<mk:@MSITStore:C:\wsus3\tools\managed\v2.0\wix.chm::/html/wix_xsd_simple_type_yesnotype.htm>

Set this attribute to 'yes' to mark this as a 64-bit component. This attribute 
facilitates the installation of packages that include both 32-bit and 64-bit 
components. If this bit is not set, the component is registered as a 32-bit 
component. If this is a 64-bit component replacing a 32-bit component, set this 
bit and assign a new GUID in the Guid attribute.


So I created the following component with win64 attribute set to NO to indicate 
this is 32 bit component, but after build the amd64 MSI still has the attribute 
value for this component as 260 (256+4). Consequently the setup didn't really 
write to the WOW6432NODE.

#ifndef _X86_
            <Component Id='c_Api_6432' 
Guid="08CFB40C-6AC8-40f5-A3AD-94A96AD2F9E4" KeyPath="no" Win64="no">
                <Registry Id='r_SetupApiRegistryKey_6432' Root='HKLM' 
Key='SOFTWARE\Microsoft\.NETFramework\v2.0.50727\AssemblyFoldersEx\Update 
Services Assemblies' Action='createKeyAndRemoveKeyOnUninstall'>
                    <Registry Id='r_ApiDeafultRegistryKey_6432' Action='write'  
Value='[$c_Api_6432]' Type='string'/>
                </Registry>
            </Component>
#endif


>From the help on Component Table at 
>http://msdn2.microsoft.com/en-us/library/aa368007.aspx

msidbComponentAttributes64bit

256

0x0100

Set this bit to mark this as a 64-bit component. This attribute facilitates the 
installation of packages that include both 32-bit and 64-bit components. If 
this bit is not set, the component is registered as a 32-bit component.
If this is a 64-bit component replacing a 32-bit component, set this bit and 
assign a new GUID in the ComponentId column.


I even tried to manually change the 260 to 4, but still didn't work.

Any clue ? thanks!

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to