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