|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | + |
| 3 | +<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> |
| 4 | + <?define ProductName="RDP Wrapper Library" ?> |
| 5 | + <?define ProductVersion="1.6.1" ?> |
| 6 | + <?define ProductCode="37ea5771-3352-4a52-9fac-9297331daebd"?> |
| 7 | + <?define UpgradeCode="6623f60c-e84f-41e7-a55b-f421165deeb5"?> |
| 8 | + <?define Manufacturer="Stas'M Corp. and contributors"?> |
| 9 | + |
| 10 | + <Product Id="$(var.ProductCode)" Name="$(var.ProductName)" Language="1033" Version="$(var.ProductVersion)" Manufacturer="$(var.Manufacturer)" UpgradeCode="$(var.UpgradeCode)"> |
| 11 | + <Package InstallerVersion="200" Compressed="yes"/> |
| 12 | + <Property Id="MSIFASTINSTALL" Value="1" /> |
| 13 | + <Property Id="DISABLEROLLBACK" Value="1" /> |
| 14 | + <MajorUpgrade AllowDowngrades="yes"/> |
| 15 | + |
| 16 | + <Media Id="1" Cabinet="media1.cab" EmbedCab="yes"/> |
| 17 | + |
| 18 | + <Directory Id="TARGETDIR" Name="SourceDir"> |
| 19 | + <Directory Id="CommonAppDataFolder"> |
| 20 | + <Directory Id="PACKAGECACHE" Name="Package Cache"> |
| 21 | + <Directory Id="INSTALLLOCATION" Name="{$(var.ProductCode)}"> |
| 22 | + <Component Id="ProductComponent" Guid="affd77d1-b35c-46f3-a97f-1686dc57b8b8"> |
| 23 | + <File Id='RDPWInst' DiskId='1' Source='RDPWInst.exe'/> |
| 24 | + </Component> |
| 25 | + </Directory> |
| 26 | + </Directory> |
| 27 | + </Directory> |
| 28 | + </Directory> |
| 29 | + |
| 30 | + <Feature Id="ProductFeature" Title="SetupProject1" Level="1"> |
| 31 | + <ComponentRef Id="ProductComponent" /> |
| 32 | + </Feature> |
| 33 | + |
| 34 | + <CustomAction Id='InstallAction' FileKey='RDPWInst' ExeCommand='-i -o' Execute='immediate' Return='check'/> |
| 35 | + <CustomAction Id='UninstallAction' FileKey='RDPWInst' ExeCommand='-u' Execute='immediate' Return='check'/> |
| 36 | + <CustomAction Id='UpdateAction' FileKey='RDPWInst' ExeCommand='-w' Execute='immediate' Return='check'/> |
| 37 | +<!-- <CustomAction Id='ChangeAction' Directory='ProgramFilesFolder' ExeCommand='RDP Wrapper\RDPConf' Execute='immediate' Return='check'/> |
| 38 | + <CustomAction Id='RepairAction' Directory='ProgramFilesFolder' ExeCommand='RDP Wrapper\RDPCheck' Execute='immediate' Return='check'/> --> |
| 39 | + |
| 40 | + <InstallExecuteSequence> |
| 41 | + <Custom Action='InstallAction' After='InstallFinalize'>NOT Installed AND NOT WIX_UPGRADE_DETECTED</Custom> |
| 42 | + <Custom Action='UninstallAction' Before="RemoveFiles">REMOVE AND NOT UPGRADINGPRODUCTCODE</Custom> |
| 43 | + <Custom Action='UpdateAction' Before="RemoveFiles">UPGRADINGPRODUCTCODE</Custom> |
| 44 | +<!-- <Custom Action='ChangeAction' After='InstallFinalize'>Installed AND NOT REINSTALL AND NOT UPGRADINGPRODUCTCODE AND NOT REMOVE</Custom> |
| 45 | + <Custom Action='RepairAction' After='InstallFinalize'>REINSTALL</Custom> --> |
| 46 | + </InstallExecuteSequence> |
| 47 | + |
| 48 | + </Product> |
| 49 | +</Wix> |
0 commit comments