WIX不会在卸载时删除文件

时间:2010-11-12 01:22:55

标签: file wix uninstall delete-file

我正在为我的屏幕保护程序安装WIX 3.5。我正在使用XNA安装程序模板available here 一切正常,除非我卸载程序时,不会删除放在WINDOWS / System32中的.SCR文件。 我已经尝试使用该元素删除它,并且我在组件上设置了Permanent =“no”,但这并没有解决它。

<Directory Id="WindowsFolder" Name="Windows">
        <Directory Id="WindowsSystem32" Name="System32">
            <Component Id="FileComponent" Guid="cf1cce2d-6812-4443-ba97-299503836b43" Permanent="no">
                <RemoveFile Id="rssFax" Name="ssFax.scr" On="both" />
                <File Id="ssFax" DiskId="1" Vital="yes" Source="../../Content/ssFax.scr" KeyPath="yes" />
            </Component>
        </Directory>
    </Directory>

1 个答案:

答案 0 :(得分:0)

Windows安装程序日志文件将大大解释为什么MSI选择不删除此文件。在此之前,这里有一个熟悉的主题:

Visual Studio 2008 Setup Project not deleting files out of System Folder when uninstalling