You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

template.wxs 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension">
  2. <Product Id="*" Name="{{Title}} Deployment Tool" Language="1033" Codepage="{{Codepage}}" Version="!(bind.FileVersion.{{Id}}.exe)" UpgradeCode="{{IdAsGuid1}}" Manufacturer="{{Author}}">
  3. <Package Description="This package installs a deployment tool for {{Title}}. Not {{Title}} itself. {{Title}} is only installed if a user logs into the machine." InstallScope="perMachine" Comments="Comments" InstallerVersion="200" Compressed="yes" Platform="{{Platform}}"/>
  4. <MajorUpgrade AllowSameVersionUpgrades="yes" DowngradeErrorMessage="A later version of this product is already installed. Setup will now exit."/>
  5. <Media Id="1" Cabinet="contents.cab" EmbedCab="yes" CompressionLevel="high"/>
  6. <PropertyRef Id="NETFRAMEWORK45" />
  7. <Condition Message="This application requires .NET Framework 4.5 or higher. Please install the latest .NET Framework then run this installer again.">
  8. <![CDATA[Installed OR NETFRAMEWORK45]]>
  9. </Condition>
  10. <Directory Id="TARGETDIR" Name="SourceDir">
  11. <Directory Id="{{ProgramFilesFolder}}">
  12. <Directory Id="APPLICATIONROOTDIRECTORY" Name="{{Title}} Deployment" />
  13. </Directory>
  14. </Directory>
  15. <DirectoryRef Id="APPLICATIONROOTDIRECTORY">
  16. <Component Id="{{Id}}.exe" Guid="{{IdAsGuid2}}" Win64="{{Win64YesNo}}">
  17. <File Id="{{Id}}.exe" Name="{{Id}}DeploymentTool.exe" Source="./Setup.exe" KeyPath="yes"/>
  18. </Component>
  19. </DirectoryRef>
  20. <DirectoryRef Id="TARGETDIR">
  21. <Component Id="RegistryEntries" Guid="{{IdAsGuid3}}" Win64="{{Win64YesNo}}">
  22. <RegistryKey Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Run">
  23. <RegistryValue Type="expandable" Name="{{Id}}Deployment" Value="&quot;[#{{Id}}.exe]&quot; --checkInstall" />
  24. </RegistryKey>
  25. </Component>
  26. </DirectoryRef>
  27. <Feature Id="MainApplication" Title="Main Application" Level="1">
  28. <ComponentRef Id="{{Id}}.exe" />
  29. <ComponentRef Id="RegistryEntries" />
  30. </Feature>
  31. </Product>
  32. </Wix>