我正在复制现有文件作为我的WiX安装程序的一部分。但是,当我卸载我复制的文件时,CopyFile标签很有用。
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" Name="CopyText" Language="1033" Version="1.0.0.0" Manufacturer="Colin" UpgradeCode="PUT-GUID-HERE">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<MediaTemplate />
<Property Id="LICENSESIGPATH" Value="C:\projects\Setup\miCore2\Stuff\028 contents\License.txt.sig" ></Property>
<Feature Id="ProductFeature" Title="CopyText" Level="1">
<ComponentGroupRef Id="ProductComponents" />
</Feature>
</Product>
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="CopyText" />
</Directory>
</Directory>
</Fragment>
<Fragment>
<ComponentGroup Id="ProductComponents" >
<Component Id="License_sig" Directory="INSTALLFOLDER" Guid="*" KeyPath="yes">
<CopyFile Id="License_sigCopy" DestinationProperty="INSTALLFOLDER" DestinationName="License.txt.sig" SourceProperty="LICENSESIGPATH" />
</Component>
</ComponentGroup>
</Fragment>
</Wix>
告诉WiX在卸载时删除复制文件的最佳方法是什么?