torbutton.wxs 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <?xml version="1.0" encoding="Windows-1252" ?>
  2. <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  3. <?define ThisProductVersion="1.2.0" ?>
  4. <?define ThisProductVersionDisp="1.2.0" ?>
  5. <?define UpgradeCode="e13a294d-6ac6-4ddd-a300-8ee8dee768c6" ?>
  6. <?define CurrProductGUID="5c09de77-eceb-44b7-a9cc-7308ed7dd0fa" ?>
  7. <?define CurrExtensionGUID="cb29b0ed-4fb0-4f69-ab87-98cc3ae96eec" ?>
  8. <?define CurrStartMenuGUID="24cabe82-2fd6-408e-9af4-e3792cac9feb" ?>
  9. <?define CurrDesktopGUID="c1352049-ec2e-4b72-ab34-313b20016e84" ?>
  10. <Product Name="TorButton $(var.ThisProductVersionDisp)" Id="$(var.CurrProductGUID)"
  11. Language="1033" Codepage="1252"
  12. Version="$(var.ThisProductVersion)"
  13. Manufacturer="mailto: coderman at gmail.com - test package for The Tor Project, Inc."
  14. UpgradeCode="$(var.UpgradeCode)">
  15. <Package Id="*" Keywords="Installer"
  16. Description="TorButton $(var.ThisProductVersionDisp) Installer"
  17. Manufacturer="mailto: coderman at gmail.com - test package for The Tor Project, Inc."
  18. InstallerVersion="100" Compressed="yes"
  19. Languages="1033" SummaryCodepage="1252"
  20. InstallPrivileges="limited" />
  21. <Media Id="1" Cabinet="TorButton.cab" CompressionLevel="high"
  22. EmbedCab="yes" DiskPrompt="CD-ROM #1" />
  23. <Property Id="DiskPrompt" Value="TorButton $(var.ThisProductVersionDisp) Installation Volume [1]" />
  24. <Property Id="ALLUSERS" Secure="yes"/>
  25. <Property Id="ReinstallModeText">omus</Property>
  26. <!-- To avoid placing shortcuts all over the desktop / start menu during a
  27. silent installation the NOSC=1 option can be passed to omit shortcuts.
  28. This is useful if bundled with other applications like Vidalia that manage
  29. configuration and Tor related processes themselves.
  30. -->
  31. <Property Id="NOSC" Secure="yes"/>
  32. <!-- Associate this package with the upgrade code for this series
  33. to ensure that upgrade installations by Thandy or other means work
  34. as expected.
  35. The OnlyDetect option must be false to ensure that existing files
  36. from an older version are removed and replaced with current files.
  37. -->
  38. <Upgrade Id="$(var.UpgradeCode)">
  39. <UpgradeVersion
  40. Property="UPGRADEFOUND"
  41. OnlyDetect="no"
  42. Minimum="0.0.0"
  43. IncludeMinimum="yes"
  44. Maximum="$(var.ThisProductVersion)"
  45. IncludeMaximum="no"
  46. />
  47. </Upgrade>
  48. <Directory Id="TARGETDIR" Name="SourceDir">
  49. <Directory Id="LocalAppDataFolder" Name="LocalAppData">
  50. <Directory Id="INSTALLDIR" Name="TorButton">
  51. <Component Id="TorButtonExtension" Guid="$(var.CurrExtensionGUID)">
  52. <CreateFolder/>
  53. <RemoveFolder Id="RemoveINSTALLDIR" On="uninstall" />
  54. <RegistryKey Root="HKCU" Key="Software\TorButton" Action="createAndRemoveOnUninstall">
  55. <RegistryValue Name="Version" Value="$(var.ThisProductVersion)" Type="string" KeyPath="yes" />
  56. </RegistryKey>
  57. <File
  58. Id="TorButtonExtensionFile"
  59. Name="torbutton.xpi"
  60. Source="torbutton.xpi"
  61. Vital="yes"
  62. ReadOnly="no"
  63. DiskId="1">
  64. </File>
  65. </Component>
  66. </Directory>
  67. </Directory>
  68. <Directory Id="ProgramMenuFolder" Name="Programs">
  69. <Directory Id="ShortcutFolder" Name="TorButton">
  70. <Component Id="AddTorButtonToStartMenu" Guid="$(var.CurrStartMenuGUID)">
  71. <Condition><![CDATA[NOSC <> 1]]> </Condition>
  72. <RegistryKey Root="HKCU" Key="Software\TorButton" Action="createAndRemoveOnUninstall">
  73. <RegistryValue Name="StartMenuShortcut" Value="1" Type="integer" KeyPath="yes" />
  74. </RegistryKey>
  75. <Shortcut Id="TorButtonStartMenuShortcut"
  76. Name="Install TorButton" Target="[ProgramFilesFolder]Mozilla Firefox\firefox.exe"
  77. Arguments="torbutton.xpi"
  78. Directory="ShortcutFolder" WorkingDirectory="INSTALLDIR" />
  79. <RemoveFolder Id="RemoveShortcutFolder" On="uninstall" />
  80. </Component>
  81. </Directory>
  82. </Directory>
  83. <Directory Id="DesktopFolder" Name="Desktop">
  84. <Component Id="AddTorButtonToDesktop" Guid="$(var.CurrDesktopGUID)">
  85. <Condition><![CDATA[NOSC <> 1]]> </Condition>
  86. <RegistryKey Root="HKCU" Key="Software\TorButton" Action="createAndRemoveOnUninstall">
  87. <RegistryValue Name="DesktopShortcut" Value="1" Type="integer" KeyPath="yes" />
  88. </RegistryKey>
  89. <Shortcut Id="TorButtonDesktopShortcut"
  90. Name="Install TorButton" Target="[ProgramFilesFolder]Mozilla Firefox\firefox.exe"
  91. Arguments="torbutton.xpi"
  92. Directory="DesktopFolder" WorkingDirectory="INSTALLDIR" />
  93. </Component>
  94. </Directory>
  95. </Directory>
  96. <!-- Build up the feature hierarchy -->
  97. <Feature Id="Complete" Title="TorButton"
  98. Level="1" Display="expand" ConfigurableDirectory="INSTALLDIR"
  99. Description="TorButton protects your FireFox browser while using the Tor network.">
  100. <Feature Id="MainApplication" Title="TorButton $(var.ThisProductVersionDisp)"
  101. AllowAdvertise="no" Absent="disallow" Level="1"
  102. Description="Main application">
  103. <ComponentRef Id="TorButtonExtension" />
  104. </Feature>
  105. <Feature Id="Shortcuts" Title="Shortcuts"
  106. AllowAdvertise="no" Absent="allow" Level="1"
  107. Description="Add a shortcut to TorButton to your Start menu or Desktop.">
  108. <Feature Id="StartMenuShortcuts" Title="Add to Start menu"
  109. AllowAdvertise="no" Absent="allow" Level="1"
  110. Description="Add TorButton to your Start menu">
  111. <ComponentRef Id="AddTorButtonToStartMenu" />
  112. </Feature>
  113. <Feature Id="DesktopShortcuts" Title="Add to Desktop"
  114. AllowAdvertise="no" Absent="allow" Level="1"
  115. Description="Add TorButton to your Desktop">
  116. <ComponentRef Id="AddTorButtonToDesktop" />
  117. </Feature>
  118. </Feature>
  119. </Feature>
  120. <!-- Upgrade installation sequence. -->
  121. <InstallExecuteSequence>
  122. <RemoveExistingProducts After="InstallValidate" />
  123. </InstallExecuteSequence>
  124. <!-- Set the UI options -->
  125. <UIRef Id="WixUI_Tor" />
  126. <WixVariable Id="WixUIBannerBmp" Value="header.bmp" />
  127. <WixVariable Id="WixUIDialogBmp" Value="welcome.bmp" />
  128. </Product>
  129. </Wix>