Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用wix创建msi安装程序?_Wix - Fatal编程技术网

如何使用wix创建msi安装程序?

如何使用wix创建msi安装程序?,wix,Wix,我想用wix创建一个msi安装文件 子文件夹中还有一个名为symbols的文件 我想我需要将其添加到componentGroup,但我不知道如何添加。快速“教程”:一些指向正在使用的WiX示例的指针: (Firegiant是WiX的商业分支) 这里有几个示例:-可以尝试“VBScriptWriteToLog” 一些观察结果:不包括所有生成文件: 不要包含用于调试()的文件或其他文件 不要分发调试版本,在发布模式下生成并使用这些文件(除非您希望在内部测试调试版本) XML文件通常应

我想用wix创建一个msi安装文件


子文件夹中还有一个名为symbols的文件

我想我需要将其添加到componentGroup,但我不知道如何添加。

快速“教程”:一些指向正在使用的WiX示例的指针:

  • (Firegiant是WiX的商业分支)
  • 这里有几个示例:-可以尝试“VBScriptWriteToLog
一些观察结果:不包括所有生成文件:

  • 不要包含用于调试()的文件或其他文件
  • 不要分发调试版本,在发布模式下生成并使用这些文件(除非您希望在内部测试调试版本)
  • XML文件通常应与一起安装
快速“教程”:一些指向正在使用的WiX示例的指针:

  • (Firegiant是WiX的商业分支)
  • 这里有几个示例:-可以尝试“VBScriptWriteToLog
一些观察结果:不包括所有生成文件:

  • 不要包含用于调试()的文件或其他文件
  • 不要分发调试版本,在发布模式下生成并使用这些文件(除非您希望在内部测试调试版本)
  • XML文件通常应与一起安装
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  <Product Id="*" Name="SetupProject1" Language="1033" Version="1.0.0.0" Manufacturer="winitech"     UpgradeCode="5a410445-8d05-44f3-aa33-3662cf67060a">
    <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
    <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
    <MediaTemplate />
    <Feature Id="ProductFeature" Title="SetupProject1" Level="1">
      <ComponentGroupRef Id="ProductComponents" />
    </Feature>
  </Product>
  <Fragment>
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder">
        <Directory Id="INSTALLFOLDER" Name="SetupProject1" />
      </Directory>
    </Directory>
  </Fragment>
  <Fragment>
    <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
      <!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. -->
      <!-- <Component Id="ProductComponent"> -->
      <!-- TODO: Insert files, registry keys, and other resources here. -->
      <!-- </Component> -->
    </ComponentGroup>
  </Fragment>
</Wix>