cloudflared.wxs 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?xml version="1.0"?>
  2. <?if $(var.Platform)="x64" ?>
  3. <?define Program_Files="ProgramFiles64Folder"?>
  4. <?else ?>
  5. <?define Program_Files="ProgramFilesFolder"?>
  6. <?endif ?>
  7. <?ifndef var.Version?>
  8. <?error Undefined Version variable?>
  9. <?endif ?>
  10. <?ifndef var.Path?>
  11. <?error Undefined Path variable?>
  12. <?endif ?>
  13. <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  14. <Product Id="*"
  15. UpgradeCode="23f90fdd-9328-47ea-ab52-5380855a4b12"
  16. Name="cloudflared"
  17. Version="$(var.Version)"
  18. Manufacturer="cloudflare"
  19. Language="1033">
  20. <Package InstallerVersion="200" Compressed="yes" Comments="Windows Installer Package" InstallScope="perMachine" />
  21. <Media Id="1" Cabinet="product.cab" EmbedCab="yes" />
  22. <MajorUpgrade DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit." />
  23. <Upgrade Id="23f90fdd-9328-47ea-ab52-5380855a4b12">
  24. <UpgradeVersion Minimum="$(var.Version)" OnlyDetect="yes" Property="NEWERVERSIONDETECTED" />
  25. <UpgradeVersion Minimum="2020.8.0" Maximum="$(var.Version)" IncludeMinimum="yes" IncludeMaximum="no"
  26. Property="OLDERVERSIONBEINGUPGRADED" />
  27. </Upgrade>
  28. <Condition Message="A newer version of this software is already installed.">NOT NEWERVERSIONDETECTED</Condition>
  29. <Directory Id="TARGETDIR" Name="SourceDir">
  30. <!--This specifies where the cloudflared.exe is moved to in the windows Operation System-->
  31. <Directory Id="$(var.Program_Files)">
  32. <Directory Id="INSTALLDIR" Name="cloudflared">
  33. <Component Id="ApplicationFiles" Guid="35e5e858-9372-4449-bf73-1cd6f7267128">
  34. <File Id="ApplicationFile0" Source="$(var.Path)" />
  35. </Component>
  36. </Directory>
  37. </Directory>
  38. <Component Id="ENVS" Guid="6bb74449-d10d-4f4a-933e-6fc9fa006eae">
  39. <!--Set the cloudflared bin location to the Path Environment Variable-->
  40. <Environment Id="ENV0"
  41. Name="PATH"
  42. Value="[INSTALLDIR]"
  43. Permanent="no"
  44. Part="last"
  45. Action="create"
  46. System="yes" />
  47. </Component>
  48. </Directory>
  49. <Feature Id='Complete' Level='1'>
  50. <ComponentRef Id="ENVS" />
  51. <ComponentRef Id='ApplicationFiles' />
  52. </Feature>
  53. </Product>
  54. </Wix>