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="aztfexport" Language="1033" Version="$(env.VERSION)" Manufacturer="Microsoft" UpgradeCode="64fec5fc-2cad-4ec0-95ed-bdf283f6f36d"> <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /> <MajorUpgrade DowngradeErrorMessage="A newer version of aztfexport is already installed." /> <MediaTemplate EmbedCab="yes" /> <Feature Id="ProductFeature" Title="aztfexport" Level="1"> <ComponentGroupRef Id="ProductComponents" /> </Feature> </Product> <Fragment> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="$(var.PlatformProgramFilesFolder)"> <Directory Id="INSTALLFOLDER" Name="aztfexport" /> </Directory> </Directory> </Fragment> <Fragment> <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"> <Component Id="ProductComponent"> <File Id="FILE_aztfexportEXE" Source="aztfexport.exe" KeyPath="yes" /> <Environment Id = "EnvPath" Action = "set" Name = "PATH" Value = "[INSTALLFOLDER]" Part = "last" Permanent = "no" System = "no" /> </Component> </ComponentGroup> </Fragment> </Wix>