thandy.wxs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?xml version="1.0" encoding="Windows-1252" ?>
  2. <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  3. <?define ThisProductVersion="0.0.1" ?>
  4. <?define ThisProductVersionDisp="0.0.1" ?>
  5. <?define UpgradeCode="d0465b47-1872-4766-874d-add2a320687e" ?>
  6. <?define CurrProductGUID="7aef0490-9ba5-40c2-9d33-4353063c475e" ?>
  7. <?define CurrExecutableGUID="8609afe7-c272-48ce-a6a3-ac80759b0c49" ?>
  8. <?define CurrLocalProgramsGUID="c5971fba-b0bc-46e1-881c-a9139122a45d" ?>
  9. <Product Name="Thandy $(var.ThisProductVersionDisp)" Id="$(var.CurrProductGUID)"
  10. Language="1033" Codepage="1252"
  11. Version="$(var.ThisProductVersion)"
  12. Manufacturer="mailto: coderman at gmail.com - test package for The Tor Project, Inc."
  13. UpgradeCode="$(var.UpgradeCode)">
  14. <Package Id="*" Keywords="Installer"
  15. Description="Thandy $(var.ThisProductVersionDisp) Installer"
  16. Manufacturer="mailto: coderman at gmail.com - test package for The Tor Project, Inc."
  17. InstallerVersion="100" Compressed="yes"
  18. Languages="1033" SummaryCodepage="1252"
  19. InstallPrivileges="limited" />
  20. <Media Id="1" Cabinet="Thandy.cab" CompressionLevel="high"
  21. EmbedCab="yes" DiskPrompt="CD-ROM #1" />
  22. <Property Id="DiskPrompt" Value="Thandy $(var.ThisProductVersionDisp) Installation Volume [1]" />
  23. <Property Id="ALLUSERS" Secure="yes"/>
  24. <Property Id="ReinstallModeText">omus</Property>
  25. <!-- Associate this package with the upgrade code for this series
  26. to ensure that upgrade installations by Thandy or other means work
  27. as expected.
  28. The OnlyDetect option must be false to ensure that existing files
  29. from an older version are removed and replaced with current files.
  30. -->
  31. <Upgrade Id="$(var.UpgradeCode)">
  32. <UpgradeVersion
  33. Property="UPGRADEFOUND"
  34. OnlyDetect="no"
  35. Minimum="0.0.0"
  36. IncludeMinimum="yes"
  37. Maximum="$(var.ThisProductVersion)"
  38. IncludeMaximum="no"
  39. />
  40. </Upgrade>
  41. <Directory Id="TARGETDIR" Name="SourceDir">
  42. <Directory Id="LocalAppDataFolder" Name="LocalAppData">
  43. <Directory Id="LocalProgramsFolder" Name="Programs">
  44. <!-- Until proper support for per-user installs is available we manage Programs folder.
  45. Note that this directory will be left in place if it is in use by any other app.
  46. -->
  47. <Component Id="LocalProgramsFolderRef" Guid="$(var.CurrLocalProgramsGUID)">
  48. <CreateFolder/>
  49. <RemoveFolder Id="RemoveLocalProgramsFolder" On="uninstall" />
  50. <RegistryKey Root="HKCU" Key="Software\Thandy" Action="createAndRemoveOnUninstall">
  51. <RegistryValue Name="LocalProgramsFolderRef" Value="1" Type="integer" KeyPath="yes" />
  52. </RegistryKey>
  53. </Component>
  54. <Directory Id="INSTALLDIR" Name="Thandy">
  55. <!-- Main Thandy application files -->
  56. <Component Id="ThandyExecutable" Guid="$(var.CurrExecutableGUID)">
  57. <CreateFolder/>
  58. <RemoveFolder Id="RemoveINSTALLDIR" On="uninstall" />
  59. <RegistryKey Root="HKCU" Key="Software\Thandy" Action="createAndRemoveOnUninstall">
  60. <RegistryValue Name="Version" Value="$(var.ThisProductVersionDisp)" Type="string" KeyPath="yes" />
  61. </RegistryKey>
  62. <File Id="ThandyExe" DiskId="1"
  63. Name="thandy.exe" Source="bin\Thandy.exe" />
  64. </Component>
  65. </Directory>
  66. </Directory>
  67. </Directory>
  68. </Directory>
  69. <!-- Build up the feature hierarchy -->
  70. <Feature Id="Complete" Title="Thandy"
  71. Level="1" Display="expand" ConfigurableDirectory="INSTALLDIR"
  72. Description="Thandy is an automatic update client for Tor software.">
  73. <Feature Id="MainApplication" Title="Thandy $(var.ThisProductVersionDisp)"
  74. AllowAdvertise="no" Absent="disallow" Level="1"
  75. Description="Main application">
  76. <ComponentRef Id="LocalProgramsFolderRef" />
  77. <ComponentRef Id="ThandyExecutable" />
  78. </Feature>
  79. </Feature>
  80. <!-- Upgrade installation sequence. -->
  81. <InstallExecuteSequence>
  82. <RemoveExistingProducts After="InstallValidate" />
  83. </InstallExecuteSequence>
  84. <!-- Set the UI options -->
  85. <UIRef Id="WixUI_Tor" />
  86. <WixVariable Id="WixUIBannerBmp" Value="header.bmp" />
  87. <WixVariable Id="WixUIDialogBmp" Value="welcome.bmp" />
  88. </Product>
  89. </Wix>