【问题标题】:Can't find msi file generated by Setup library project (wix)找不到安装程序库项目(wix)生成的 msi 文件
【发布时间】:2016-06-03 09:09:21
【问题描述】:

我正在关注一个建议创建安装库项目并将其写入 Product.wxs 的 Wix 教程:

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">

  <Product Id="*" Name="HelloWix" Language="1033" Version="1.0.0" Manufacturer="SoftAgility" UpgradeCode="2CA1BA0A-99C0-445C-8C72-083431F757DE">

    <Package Description="Simple Demo" Compressed="yes" />

    <MediaTemplate EmbedCab="yes"/>

    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder">
        <Directory Id="INSTALLFOLDER" Name="HelloWix" />
      </Directory>
    </Directory>

    <Component Id="TextFileComponent" Directory="INSTALLFOLDER">
      <File Source="C:\temp\MyFile.txt" />
    </Component>

    <Feature Id="MainFeature" Title="HelloWix" Level="1">
      <ComponentRef Id="TextFileComponent" />
    </Feature>

  </Product>
</Wix>

该项目旨在设置一个简单的 hello world 类型的设置,以显示获得工作安装包所需的最简单的代码,并且要求最低。构建成功。问题是:.msi 是在哪里生成的?

【问题讨论】:

    标签: wix windows-installer


    【解决方案1】:

    好吧,解决方案是我卸载了 wixproj 并更改了这一行: &lt;OutputType&gt;Library&lt;/OutputType&gt;&lt;OutputType&gt;Package&lt;/OutputType&gt; 如果您知道其他方法,请添加它们。谢谢!

    【讨论】:

    • 您使用的是WiX提供的项目模板吗?这个documentation 解释了不同的项目类型。
    猜你喜欢
    • 1970-01-01
    • 2021-05-03
    • 1970-01-01
    • 1970-01-01
    • 2017-04-22
    • 1970-01-01
    • 2011-10-03
    • 1970-01-01
    相关资源
    最近更新 更多