Create a msi from .wxs file using command line

前端 未结 2 531
孤城傲影
孤城傲影 2021-01-13 03:41

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.

One

2条回答
  •  一向
    一向 (楼主)
    2021-01-13 04:18

    As Vinoth suggested, I had looked wix command line utilities and created msi

    I've created msi using wix command line utility and then installed msi silently.

    This Harvests file and creates .wxs file:

    heat.exe dir "dirPath" -cg NewDemoGroup -g1 -gg -sf -srd -scom -sreg -out "fragment.wxs"
    

    This will create a .wixobj file

    candle.exe product.wxs fragment.wxs -ext WixUIExtension
    

    And this generates the msi.

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

提交回复
热议问题