HIRS/HIRS_Provisioner.NET/hirs/Resources/Product.wxs

35 lines
1.5 KiB
Plaintext
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" Name="$(var.SetupProductName)" Manufacturer="$(var.SetupProductManufacturer)" Language="$(var.SetupProductLanguage)" Version="$(var.SetupProductVersion)">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
<!--
Because we don't have a way (yet) to create unique product codes, we can't include the MajorUpgrade element, either
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
-->
<MediaTemplate EmbedCab="yes" />
<Feature Id="$(var.SetupFeatureId)" Title="$(var.SetupFeatureName)" Level="1">
<ComponentGroupRef Id="ProductComponents" />
<Component Directory='INSTALLFOLDER'>
<RegistryValue Root='HKLM' Key='Software\HIRS' Name='InstallFolder' Value='[INSTALLFOLDER]' Type='string' />
<Environment Id='UpdatePath' Name='PATH' Action='set' System='yes' Part='last' Value='[INSTALLFOLDER]' />
</Component>
</Feature>
</Product>
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="$(var.SetupInstallFolderName)" />
</Directory>
</Directory>
</Fragment>
<Fragment>
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
<ComponentGroupRef Id="SourceComponentGroup" />
</ComponentGroup>
</Fragment>
</Wix>