scripts/package/windows/build/setup.wxs (37 lines of code) (raw):
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<?if $(sys.BUILDARCH) = x64 ?>
<?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
<?else ?>
<?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
<?endif ?>
<Product Id="*" Name="aztfmigrate" Language="1033" Version="$(env.VERSION)" Manufacturer="Microsoft" UpgradeCode="1ac52465-d10f-4f22-a52b-1c369d8faf5d">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
<MajorUpgrade DowngradeErrorMessage="A newer version of aztfmigrate is already installed." />
<MediaTemplate EmbedCab="yes" />
<Feature Id="ProductFeature" Title="aztfmigrate" Level="1">
<ComponentGroupRef Id="ProductComponents" />
</Feature>
</Product>
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="$(var.PlatformProgramFilesFolder)">
<Directory Id="INSTALLFOLDER" Name="aztfmigrate" />
</Directory>
</Directory>
</Fragment>
<Fragment>
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
<Component Id="ProductComponent">
<File Id="FILE_aztfmigrateEXE" Source="aztfmigrate.exe" KeyPath="yes" />
<Environment
Id = "EnvPath"
Action = "set"
Name = "PATH"
Value = "[INSTALLFOLDER]"
Part = "last"
Permanent = "no"
System = "no" />
</Component>
</ComponentGroup>
</Fragment>
</Wix>