如何在wix中卸载msi安装程序时删除注册表项值?
我正在尝试用wix开发一个简单的msi安装程序。它在32位机器上成功(安装/卸载)。当我为64位计算机开发安装程序时,它正在成功安装,但在卸载时,注册表项没有从system32和systemwow64文件夹中删除,文件也没有从中删除 我使用的wix配置如下:如何在wix中卸载msi安装程序时删除注册表项值?,wix,64-bit,windows-installer,Wix,64 Bit,Windows Installer,我正在尝试用wix开发一个简单的msi安装程序。它在32位机器上成功(安装/卸载)。当我为64位计算机开发安装程序时,它正在成功安装,但在卸载时,注册表项没有从system32和systemwow64文件夹中删除,文件也没有从中删除 我使用的wix配置如下: <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFiles64Folder" Name='PFiles
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFiles64Folder" Name='PFiles'/>
<Directory Id="SystemFolder" Name="sys32"></Directory>
<Directory Id="System64Folder" Name="sys64"></Directory>
</Directory>
<DirectoryRef Id='SystemFolder'>
<Component Id = "Sys32Comp"
UninstallWhenSuperseded ="yes"
Guid = "7E079CEA-4A90-4C27-99F1-74FD4201BF5B">
<File
Id = 'sample'
Name = 'samp.dll'
DiskId = '1'
Source = '$(sys.CURRENTDIR)\32\samp.dll'
KeyPath = 'yes'/>
<RegistryKey Action="createAndRemoveOnUninstall"
Key="SOFTWARE\Wow6432Node\Microsoft\Cryptography\Calais\SmartCards\SCardMiniDrv"
Root="HKLM">
<RegistryValue Name="ATR" Type="binary" Value="3b7a9500008065a20131013d72d641" />
<RegistryValue Name="ATRMask" Type="binary" Value="ffffffffffffffffffffffffffffff" />
</RegistryKey>
</Component>
</DirectoryRef>
<DirectoryRef Id='System64Folder'>
<Component Id = "Sys64Comp"
Win64="yes"
UninstallWhenSuperseded ="yes"
Guid = "A6CA464D-5A20-47E0-9C22-2A49DD53DC1D">
<File
Id = 'sample2'
Name = 'samp_64.dll'
DiskId = '1'
Source = '$(sys.CURRENTDIR)\64\samp64.dll'
KeyPath = 'yes'/>
<RegistryKey Action="createAndRemoveOnUninstall"
Key="SOFTWARE\Microsoft\Cryptography\Calais\SmartCards\SCardMiniDrv"
Root="HKLM"
ForceDeleteOnUninstall="yes">
<RegistryValue Name="ATR" Type="binary" Value="3b7a9500008065a20131013d72d641" />
<RegistryValue Name="ATRMask" Type="binary" Value="ffffffffffffffffffffffffffffff" />
</RegistryKey>
</Component>
</DirectoryRef>