Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 858
Sivakrishna Donepudi Avatar asked Oct 07 '14 10:10

Sivakrishna Donepudi


People also ask

How do I create an MSI File in Visual Studio?

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.

How do I create a MSI File with WiX?

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.

How do I use heat EXE on WiX?

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.


1 Answers

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
like image 101
Sivakrishna Donepudi Avatar answered Oct 05 '22 04:10

Sivakrishna Donepudi