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

Zac Harvey zharvey at pobox.com
Thu Nov 21 18:32:28 PST 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


More information about the wix-users mailing list