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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/7.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
Command line 使用命令行从.wxs文件创建msi_Command Line_Wix_Windows Installer - Fatal编程技术网

Command line 使用命令行从.wxs文件创建msi

Command line 使用命令行从.wxs文件创建msi,command-line,wix,windows-installer,Command Line,Wix,Windows Installer,我正在使用heat.exe从dir创建一个-wxs文件,现在希望使用命令行实用程序从wxs文件生成/创建msi,而不需要进行可视化研究 下面问题中的一位用户建议查看VisualStudio的输出窗口,并执行相同的操作 有人能帮助我,如何从wxs文件创建msi。正如Vinoth所建议的,我已经查看了wix命令行实用程序并创建了msi 我使用wix命令行实用程序创建了msi,然后以静默方式安装了msi 此操作将获取文件并创建.wxs文件: heat.exe dir "dirPath" -cg Ne

我正在使用heat.exe从dir创建一个-wxs文件,现在希望使用命令行实用程序从wxs文件生成/创建msi,而不需要进行可视化研究

下面问题中的一位用户建议查看VisualStudio的输出窗口,并执行相同的操作


有人能帮助我,如何从wxs文件创建msi。

正如Vinoth所建议的,我已经查看了wix命令行实用程序并创建了msi

我使用wix命令行实用程序创建了msi,然后以静默方式安装了msi

此操作将获取文件并创建.wxs文件:

heat.exe dir "dirPath" -cg NewDemoGroup -g1 -gg -sf -srd -scom -sreg -out "fragment.wxs"
这将创建一个.wixobj文件

candle.exe product.wxs fragment.wxs -ext WixUIExtension
这将生成msi

light.exe -out demo.msi -b "dirPath" product.wixobj fragment.wixobj -ext WixUIExtension

在“与Jenkins一起使用构建管道构建连续交付”的过程中,我们遇到了如何从命令行使用wix生成.msi包的障碍

下面是这篇文章的链接,它将对整个方法进行更详细的描述


是否检查了bin文件夹中的命令行工具?蜡烛和灯光是您需要的。或者,如果您确实有一个.wixproj,请使用MSBuild构建它。您对文档的哪一部分有问题?链接答案可能会出现问题,您能否在您的答案中转述文章中对OP最有用的部分?转到upvote,因为它确实有帮助。但是,就像thodic说的那样,你可能会在某个时候删除链接,而这篇文章并没有那么长。。。你完全可以把它放在堆栈溢出上,再也不用担心它了。到目前为止,这个链接中最有用的部分是认识到Product.wxs(已经在repo中)和Fragment.wxs(由heat生成)一起被用来创建x2*.winobj文件,然后被制作成1*.msi。