cloudflared.wxs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?xml version="1.0"?>
  2. <?if $(var.Platform)="x86"?>
  3. <?define Program_Files="ProgramFilesFolder"?>
  4. <?else?>
  5. <?define Program_Files="ProgramFiles64Folder"?>
  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="35e5e858-9372-4449-bf73-1cd6f7267128"
  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. <Upgrade Id="23f90fdd-9328-47ea-ab52-5380855a4b12">
  23. <UpgradeVersion Minimum="$(var.Version)" OnlyDetect="yes" Property="NEWERVERSIONDETECTED"/>
  24. <UpgradeVersion Minimum="2020.8.0" Maximum="$(var.Version)" IncludeMinimum="yes" IncludeMaximum="no"
  25. Property="OLDERVERSIONBEINGUPGRADED"/>
  26. </Upgrade>
  27. <Condition Message="A newer version of this software is already installed.">NOT NEWERVERSIONDETECTED</Condition>
  28. <Directory Id="TARGETDIR" Name="SourceDir">
  29. <!--This specifies where the cloudflared.exe is moved to in the windows Operation System-->
  30. <Directory Id="$(var.Program_Files)">
  31. <Directory Id="INSTALLDIR" Name="cloudflared">
  32. <Component Id="ApplicationFiles" Guid="35e5e858-9372-4449-bf73-1cd6f7267128">
  33. <File Id="ApplicationFile0" Source="$(var.Path)"/>
  34. </Component>
  35. </Directory>
  36. </Directory>
  37. <Component Id="ENVS" Guid="6bb74449-d10d-4f4a-933e-6fc9fa006eae">
  38. <!--Set the cloudflared bin location to the Path Environment Variable-->
  39. <Environment Id="ENV0"
  40. Name="PATH"
  41. Value="[INSTALLDIR]."
  42. Permanent="no"
  43. Part="last"
  44. Action="create"
  45. System="yes" />
  46. </Component>
  47. </Directory>
  48. <Feature Id='Complete' Level='1'>
  49. <ComponentRef Id="ENVS"/>
  50. <ComponentRef Id='ApplicationFiles' />
  51. </Feature>
  52. </Product>
  53. </Wix>