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 of the user suggested in below question to referred to see Output window of Visual Studio and do the same.
Programmatically build WXS into MSI
Could some one help on, how to create msi from wxs file.
Go to Extensions > Manage Extensions > Online > Search, find, download and install Microsoft Visual Studio Installer Projects extension. 2). Add a new Setup Project in your solution > right-click Application Folder > Add > Project Output… > choose the corresponding Project > select Primary output > OK.
Adding a WiX setup project In Visual Studio, open your solution, and add a WiX project to it: go to the Visual Studio main menu and click File -> Add -> New Project to open the Add New Project dialog. Choose the Setup Project item in the Windows Installer XML node, specify the project name and click OK.
Navigate to WiX's bin directory from a command prompt and type heat.exe -? to see information about its usage. To make things easy, consider adding the path to the WiX bin directory to your computer's PATH environment variable so that you won't have to reference the full path to the executable each time you use it.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With