Wix卸载时不删除文件
发布时间:2020-12-13 20:51:09 所属栏目:Windows 来源:网络整理
导读:我在这件事上看到别人的问题,但我不能为我工作。我正在尝试习惯Wix,所以我们可以迁移我们的vdproj(我觉得我们已经迈出了一步,4步返回到这里…最基本的东西已经变得完全不平凡的Wix …但是,建立安装程序时,我确实有一个完整的声明性标记的价值。 我在Sha
我在这件事上看到别人的问题,但我不能为我工作。我正在尝试习惯Wix,所以我们可以迁移我们的vdproj(我觉得我们已经迈出了一步,4步返回到这里…最基本的东西已经变得完全不平凡的Wix …但是,建立安装程序时,我确实有一个完整的声明性标记的价值。
我在SharpDevelop的wixproj中有以下wxs。 安装作品。卸载什么也不做,并将安装文件夹和dll保留。有什么问题? Files.wxs: <?xml version="1.0"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Fragment> <DirectoryRef Id="TARGETDIR"> <Directory Id="ProgramFilesFolder" Name="PFiles"> <Directory Id="INSTALLDIR" Name="Client"> <Component Id="InteropDll" Guid="AD09F8B9-80A0-46E6-9E36-9618E2023D66" DiskId="1"> <File Id="Interop.dll" Name="Interop.dll" Source="..Interopbin$(var.Configuration)Interop.dll" KeyPath="yes" /> <RemoveFile Id="RemoveInterop.dll" Name="Interop.dll" On="uninstall" /> </Component> </Directory> </Directory> </DirectoryRef> </Fragment> </Wix> Setup.wxs: <?xml version="1.0"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product Id="*" Name="Client Setup" Language="1033" Version="1.0.0.0" UpgradeCode="4A88A3AD-7CB6-46FB-B2FD-F4EADE0218F8" Manufacturer="Client Setup"> <Package Description="#Description" Comments="Comments" InstallerVersion="200" Compressed="yes"/> <!-- Source media for the installation. Specifies a single cab file to be embedded in the installer's .msi. --> <Media Id="1" Cabinet="contents.cab" EmbedCab="yes" CompressionLevel="high"/> <!-- Installation directory and files are defined in Files.wxs --> <Directory Id="TARGETDIR" Name="SourceDir"/> <Feature Id="Complete" Title="Client Setup" Description="Client Setup" Level="1"> <ComponentRef Id="InteropDll" /> </Feature> <!-- Using the Wix UI library WixUI_InstallDir does not allow the user to choose features but adds a dialog to let the user choose a directory where the product will be installed --> <Property Id="WIXUI_INSTALLDIR">INSTALLDIR</Property> <UI Id="WixUI_InstallDir"> <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" /> <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" /> <TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" /> <Property Id="DefaultUIFont" Value="WixUI_Font_Normal" /> <Property Id="WixUI_Mode" Value="InstallDir" /> <DialogRef Id="BrowseDlg" /> <DialogRef Id="DiskCostDlg" /> <DialogRef Id="ErrorDlg" /> <DialogRef Id="FatalError" /> <DialogRef Id="FilesInUse" /> <DialogRef Id="MsiRMFilesInUse" /> <DialogRef Id="PrepareDlg" /> <DialogRef Id="ProgressDlg" /> <DialogRef Id="ResumeDlg" /> <DialogRef Id="UserExit" /> <Publish Dialog="BrowseDlg" Control="OK" Event="DoAction" Value="WixUIValidatePath" Order="3">1</Publish> <Publish Dialog="BrowseDlg" Control="OK" Event="SpawnDialog" Value="InvalidDirDlg" Order="4"><![CDATA[WIXUI_INSTALLDIR_VALID<>"1"]]></Publish> <Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999">1</Publish> <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="InstallDirDlg">NOT Installed</Publish> <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg">Installed AND PATCH</Publish> <Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg">1</Publish> <Publish Dialog="InstallDirDlg" Control="Next" Event="SetTargetPath" Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish> <Publish Dialog="InstallDirDlg" Control="Next" Event="DoAction" Value="WixUIValidatePath" Order="2">NOT WIXUI_DONTVALIDATEPATH</Publish> <Publish Dialog="InstallDirDlg" Control="Next" Event="SpawnDialog" Value="InvalidDirDlg" Order="3"><![CDATA[NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID<>"1"]]></Publish> <Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Order="4">WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID="1"</Publish> <Publish Dialog="InstallDirDlg" Control="ChangeFolder" Property="_BrowseProperty" Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish> <Publish Dialog="InstallDirDlg" Control="ChangeFolder" Event="SpawnDialog" Value="BrowseDlg" Order="2">1</Publish> <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="InstallDirDlg" Order="1">NOT Installed</Publish> <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg" Order="2">Installed AND NOT PATCH</Publish> <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="2">Installed AND PATCH</Publish> <Publish Dialog="MaintenanceWelcomeDlg" Control="Next" Event="NewDialog" Value="MaintenanceTypeDlg">1</Publish> <Publish Dialog="MaintenanceTypeDlg" Control="RepairButton" Event="NewDialog" Value="VerifyReadyDlg">1</Publish> <Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" Event="NewDialog" Value="VerifyReadyDlg">1</Publish> <Publish Dialog="MaintenanceTypeDlg" Control="Back" Event="NewDialog" Value="MaintenanceWelcomeDlg">1</Publish> <Property Id="ARPNOMODIFY" Value="1" /> </UI> <UIRef Id="WixUI_Common" /> </Product> </Wix>
尝试更改未卸载的组件的GUID。我试过一样,对我来说也是如此。这可能是因为GUID已经在其他产品的注册表中注册了。
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- Windows – 保护来宾VM以使其可以访问Internet,但阻止访问主
- Vagrant系列(一)----win10搭建Vagrant+VirtualBox环境
- windows 下解决 Time_Wait 和 CLOSE_WAIT 方法
- 在Windows服务器上执行自动scp
- 测试Windows安装程序
- 在Windows上的“用户空间”中“捕获”进程自己的sysenter调
- 如何知道正在运行什么版本的Windows和/或cmd.exe的批处理文
- windows-server-2008 – 机器启动组策略是如何处理的以及需
- win10 修改默认浏览器
- windows-7 – Windows 7无法连接到Samba
推荐文章
站长推荐
- 部署 – 部署时不加载RazorGenerator.Mvc.dll
- .net – WCF Windows Service TimeOut
- 域名系统 – 重新启动Windows DNS服务之前的DNS解
- windows-server-2008 – 用于Windows 2008 RDP的
- windows – 以编程方式更改CMD窗口属性
- Windows – TextPad和Unicode:完全支持?
- Windows PowerShell在命令Enter-PSSession中提供
- windows-8 – 如何向可以定位多个平台的商店提交
- windows – 你应该用SSD禁用页面文件吗?
- 在Windows 8 Metro App(C#/ XAML)中同时播放两个
热点阅读