[英]Migrate Wix Project to version 4.0
我最近将Wix升级到了4.0版。
更新名称空间后,Visual Studio(2015)将无法识别这些新名称空间。
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Product Id="*" Name="_any_name" Language="1033" Version="1.0.0.0" Manufacturer="Anyone" UpgradeCode="8c568038-54cf-43ff-aa2c-581f4dd0aea0" Codepage="1252">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<MediaTemplate EmbedCab="yes" />
<Feature Id="ProductFeature" Title="_any_title" Level="1">
<ComponentGroupRef Id="group_ProductComponents" />
</Feature>
<Property Id="pro_SetupExe" Value="INSTALLFOLDER" />
<CustomAction Id="ca_LaunchSetupExe" Property="pro_SetupExe" ExeCommand="/FORCE_HIDE_FIRST_RUN /UNATTENDED_INSTALL /AUTOACCEPT_ALL /FORCE_CLOSE_WHEN_DONE /ON_REBOOT_MESSAGE:”NO”" Execute="commit" />
<CustomAction Id="ca_SetSetupPath" Property="pro_SetupExe" Value="[INSTALLFOLDER]x64ATIDriver\setup.exe" />
<InstallExecuteSequence>
<Custom Action="ca_SetSetupPath" Before="ca_LaunchSetupExe" />
<Custom Action="ca_LaunchSetupExe" Before="InstallFinalize" />
</InstallExecuteSequence>
</Product>
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="TempFolder">
<Directory Id="INSTALLFOLDER" />
</Directory>
</Directory>
</Fragment>
</Wix>
Wix元素的名称空间不正确,为' http://wixtoolset.org/schemas/v4/wxs '。 请使Wix元素如下所示:Wix xmlns =“ http://schemas.microsoft.com/wix/2006/wi ”
我发现了这些: 将Wix Project迁移到v4.0指令
但是我不明白这意味着什么:
修复:将File元素上缺少的Id属性明确设置为Name属性或Source属性中的文件名。
因此,目前我只是一个“崩溃”的项目,无法构建。
我真的很感谢您的帮助。
关于Muffex
名称空间错误听起来像WiX v3仍在构建项目。 另外,该迁移到您找到的v4页面是针对WixCop工具的,该工具将自动在其中找到的所有内容。 它位于WiX安装目录的bin目录中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.