RDPWInst.wxs 2.6 KB

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