将Wix Project迁移到版本4.0 [英] Migrate Wix Project to version 4.0

查看:194
本文介绍了将Wix Project迁移到版本4.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将Wix升级到了4.0版.

I recently ugraded Wix to Version 4.0.

更新名称空间后,Visual Studio(2015)将无法识别这些新名称空间.

After updating the namespaces Visual Studio (2015) won't recognize these new ones.

<?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 "

The Wix element has an incorrect namespace of 'http://wixtoolset.org/schemas/v4/wxs'. Please make the Wix element look like the following: Wix xmlns = "http://schemas.microsoft.com/wix/2006/wi"

我发现了这些:将Wix项目迁移到v4 .0指令

但是我不明白这是什么意思:

But I don't get what this means:

修复:将File元素上缺少的Id属性明确设置为Source属性中的Name属性或文件名.

Fix: Explicitly set absent Id attributes on File element to the Name attribute or filename from the Source attribute.

所以目前我只是一个崩溃"的项目,无法构建.

So currently I just have the kind of "crashed" project and can't build.

我非常感谢您的帮助.

问候Muffex

推荐答案

名称空间错误听起来好像WiX v3仍在构建项目.另外,该迁移到您找到的v4页面是针对WixCop工具的,该工具将自动在其中找到的所有内容.它位于WiX安装目录的bin目录中.

The namespace error makes it sound like the project is still being built by WiX v3. Also, that migrate to v4 page that you found is for the WixCop tool which automates everything you found there. It's in the bin directory of the WiX installation directory.

这篇关于将Wix Project迁移到版本4.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆