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

Coryat, Jim Jim.Coryat at softprocorp.com
Thu Apr 14 15:33:05 PDT 2022

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.


<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns=http://schemas.microsoft.com/wix/2006/wi>
    <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" />

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.

More information about the wix-users mailing list