[wix-users] Generating the MSI file from built solution in Visual Studio 2019

Christopher Painter chrpai at iswix.com
Fri Nov 22 03:21:00 PST 2019


I have an FOSS project called IsWiX that provides enhanced project templates and graphical designers to do most of the heavy lifting of creating an MSI.  There is a tutorial for it at:

http://www.github.com/iswix-llc/iswix-tutorials

Based on where you are with WiX I think you might find it useful.

________________________________
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Zac Harvey via wix-users <wix-users at lists.wixtoolset.org>
Sent: Thursday, November 21, 2019 8:32 PM
To: Zac Harvey via wix-users <wix-users at lists.wixtoolset.org>
Cc: Zac Harvey <zharvey at pobox.com>
Subject: [wix-users] Generating the MSI file from built solution in Visual Studio 2019

Windows 10 here. I installed Visual Studio 2019 (Community) and WiX v3.11.2, as well as the WiX extension for VS 2019.

I then opened VS >> Create a new project >> Setup Project for WiX v3 and called it "HelloWix". So far so good.

I create 2 files in that HelloWorld solution:

- foo.txt (that just has lorem ipsum filler text in it)
- HelloWix.wxs (well, VS created this for me)

For HelloWix.wxs I have:

<?xml version="1.0" encoding="UTF-8"?>
<Wix
 xmlns="http://schemas.microsoft.com/wix/2006/wi">
 <Product Id="*" Name="HelloWix" Language="1033" Version="1.0.0.0" Manufacturer="My Org" UpgradeCode="1e540666-dda2-4cbe-91b7-ac9525d96c86">
 <Package Description="My very first MSI" Compressed="yes" />
 <MediaTemplate EmbedCab="yes"/>
 <Directory Id="TARGETDIR" Name="SourceDir">
 <Directory Id="ProgramFilesFolder">
 <Directory Id="INSTALLFOLDER" Name="HelloWix" /></Directory>
 </Directory>
 <Component Id="TextFileComponent" Directory="INSTALLFOLDER">
 <File Source="foo.txt" />
 </Component>
 <Feature Id="MainFeature" Title="HelloWix" Level="1">
 <ComponentRef Id="TextFileComponent" />
 </Feature>
 </Product>
</Wix>

I go to Build >> Build Solution and the project builds fine (success).

I would like to test this out and am trying to figure out how to turn this built solution into a packaged MSI file. What steps do I need to take to accomplish this?

Thanks!
zharvey

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list