[wix-users] 32 bit registry key not written, 64 bit is

Hoover, Jacob Jacob.Hoover at greenheck.com
Mon Apr 18 11:35:31 PDT 2022


2 Components, take a look @Win64 attribute of the component, along w/ component conditions to determine if the component should be installed. This is also impacted by Package/@Platform.

From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Coryat, Jim via wix-users
Sent: Thursday, April 14, 2022 5:33 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Coryat, Jim <Jim.Coryat at softprocorp.com>
Subject: [wix-users] 32 bit registry key not written, 64 bit is

Visual Studio extension installer along with product specific tools. I have statements to write a registry key for skipping strong name validation for our assembly. Write it for 32 and 64 bit registry keys.

The 64bit key is written as expected, the 32 bit is not.

Statements:

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns=http://schemas.microsoft.com/wix/2006/wi<http://schemas.microsoft.com/wix/2006/wi>>
<Fragment>
<DirectoryRef Id="TARGETDIR">
<Component Id="CP_Registry" Guid="<our guid>">
<RegistryKey Root="HKLM" Key="SOFTWARE\Microsoft\StrongName\Verification\*,<our hash>" Action="createAndRemoveOnUninstall" ForceCreateOnInstall="yes" />
<RegistryKey Root="HKLM" Key="SOFTWARE\Wow6432Node\Microsoft\StrongName\Verification\*,<our hash" Action="createAndRemoveOnUninstall" ForceCreateOnInstall="yes" />
</Component>
</DirectoryRef>
</Fragment>
</Wix>



>From the log:
Action 18:24:26: WriteRegistryValues. Writing system registry values
MSI (s) (98:60) [18:24:26:250]: Executing op: ProgressTotal(Total=2,Type=1,ByteEquivalent=13200)
MSI (s) (98:60) [18:24:26:250]: Executing op: RegOpenKey(Root=-2147483646,Key=SOFTWARE\Microsoft\StrongName\Verification\*,3834C39820615AAF,,BinaryType=0,,)
MSI (s) (98:60) [18:24:26:251]: Executing op: RegCreateKey()
WriteRegistryValues: Key: \SOFTWARE\Microsoft\StrongName\Verification\*,3834C39820615AAF, Name: , Value:
MSI (s) (98:60) [18:24:26:252]: Executing op: RegOpenKey(Root=-2147483646,Key=SOFTWARE\Wow6432Node\Microsoft\StrongName\Verification\*,3834C39820615AAF,,BinaryType=0,,)
MSI (s) (98:60) [18:24:26:253]: Executing op: RegCreateKey()
WriteRegistryValues: Key: \SOFTWARE\Wow6432Node\Microsoft\StrongName\Verification\*,3834C39820615AAF, Name: , Value:

Is there something that tells the installer if the OS is 64 bit don't bother writing to the 32 bit registry? Using the .reg files they can be added to both.
________________________________
NOTICE: The information contained in this message is proprietary and/or confidential and may be privileged. If you are not the intended recipient of this communication, you are hereby notified to: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately.



____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/<http://www.firegiant.com>
NOTE: This email was received from an external source. Please use caution when opening links or attachments in the message.



More information about the wix-users mailing list