使用命令行从.wxs文件创建MSI [英] Create a msi from .wxs file using command line
问题描述
我正在使用heat.exe从目录创建-wxs文件,现在想在不使用Visual Studio的情况下使用命令行实用程序从wxs文件生成/创建msi。
I'm creating a -wxs file from dir using heat.exe and now would want to generate/create msi from wxs file using command line utilities with out visual studion.
在下面的问题中建议的一个用户提到要查看Visual Studio的输出窗口并执行相同的操作。
One of the user suggested in below question to referred to see Output window of Visual Studio and do the same.
请问如何从wxs文件创建msi的帮助。
Could some one help on, how to create msi from wxs file.
推荐答案
按照Vinoth的建议,我查看了wix命令行实用程序并创建了msi
As Vinoth suggested, I had looked wix command line utilities and created msi
我已经使用wix命令行实用程序创建了msi,然后以静默方式安装了msi
I've created msi using wix command line utility and then installed msi silently.
此Harvests文件并创建.wxs文件:
This Harvests file and creates .wxs file:
heat.exe dir "dirPath" -cg NewDemoGroup -g1 -gg -sf -srd -scom -sreg -out "fragment.wxs"
这将创建一个.wixobj文件
This will create a .wixobj file
candle.exe product.wxs fragment.wxs -ext WixUIExtension
这将生成msi。
light.exe -out demo.msi -b "dirPath" product.wixobj fragment.wixobj -ext WixUIExtension
这篇关于使用命令行从.wxs文件创建MSI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!