Sivakrishna Donepudi
Sivakrishna Donepudi

Reputation: 372

Create a msi from .wxs file using command line

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.

Upvotes: 5

Views: 16147

Answers (3)

Lance
Lance

Reputation: 995

According to the wix v4.0.5 Release notes you can now create a msi file from a .wxs with a single command:

wix build -o product.msi product.wxs

Upvotes: 1

Sivakrishna Donepudi
Sivakrishna Donepudi

Reputation: 372

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

Upvotes: 12

Gautam
Gautam

Reputation: 53

While an effort to build a “Continuous Delivery Using Build Pipelines With Jenkins ”, we came across a hurdle of how to generate a .msi package using wix from command line.

Below is the link for the article which would provide a more detailed description of the whole approach.

https://nigamgautamblog.wordpress.com/

Upvotes: 5

Related Questions