Skip to content

Instantly share code, notes, and snippets.

@BartDM
Created October 7, 2013 15:27
Show Gist options
  • Save BartDM/6869817 to your computer and use it in GitHub Desktop.
Save BartDM/6869817 to your computer and use it in GitHub Desktop.
Source of blog post on http://blog.bartdemeyer.be
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="{D16E42B5-3C6F-4EE5-B2F4-727BF8B74A92}" Name="Demo website setup" Language="1033" Version="1.0.0.0" Manufacturer="Me" UpgradeCode="9279b740-8419-45c4-9538-6a45f8e949c7">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<Media Id="1" Cabinet="DemoWebsite.cab" EmbedCab="yes" />
<Feature Id="ProductFeature" Title="DemoWebsite.Setup" Level="1">
<ComponentGroupRef Id="MyWebWebComponents" />
</Feature>
</Product>
<Fragment>
<!-- Will default to C:\ if that is the main disk-->
<Directory Id="TARGETDIR" Name="SourceDir">
<!-- Will reference to C:\inetpub-->
<Directory Id="INETPUB" Name="Inetpub">
<!-- Will reference to c:\Inetpub\Demowebsite-->
<Directory Id="INSTALLFOLDER" Name="DemoWebsite">
</Directory>
</Directory>
</Directory>
</Fragment>
</Wix>
@kubiozi
Copy link

kubiozi commented Sep 14, 2015

can't get it built if I don't include these lines

< Fragment >
< ComponentGroup Id="MyWebWebComponents" Directory="INSTALLFOLDER">
< !-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. -->



</ ComponentGroup>
</ Fragment>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment