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
Installation 使用WiX将安装程序打包为多个文件_Installation_Wix_Windows Installer - Fatal编程技术网

Installation 使用WiX将安装程序打包为多个文件

Installation 使用WiX将安装程序打包为多个文件,installation,wix,windows-installer,Installation,Wix,Windows Installer,我有一个WIX3项目,它有数百个文件,但我似乎不知道如何使用通配符将它们全部包含在内。我试过这个: heat.exe" dir ".\!Build" -gg -ke -template:fragment -out "Files.wxs" 这将生成一个fragment.wxs文件,但我不确定如何处理它。任何帮助都将不胜感激。请尝试此命令 heat dir "Your_Directory" -gg -ke -template:Product -out "Files.wxs" 它将在生成的wxs文

我有一个WIX3项目,它有数百个文件,但我似乎不知道如何使用通配符将它们全部包含在内。我试过这个:

heat.exe" dir ".\!Build" -gg -ke -template:fragment -out "Files.wxs"
这将生成一个fragment.wxs文件,但我不确定如何处理它。任何帮助都将不胜感激。

请尝试此命令

heat dir "Your_Directory" -gg -ke -template:Product -out "Files.wxs"
它将在生成的wxs文件{Files.wxs}中创建此结构:

<Fragment>
    <DirectoryRef Id="Files">
        <Component Id="Test.ico" Guid="{YOUR_GUID}">
            <File Id="Test.ico" Name="Test.ico" KeyPath="yes" Source="..[path to file]\Test.ico" />
        </Component>
    </DirectoryRef>
</Fragment>


您应该为每个文件获取一个,该文件位于运行heat的目录中。完成后,您只需将wxs文件添加到项目中,确保已创建directoryref指向的目录。

如果此命令生成产品wxs文件,我将如何将现有产品wxs与此文件组合?