tor.wxs.in 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <?xml version="1.0" encoding="Windows-1252" ?>
  2. <!--
  3. WiX is a Microsoft Installer tool that parses an installation
  4. specification XML document and produces an MSI package for use on
  5. updated Windows 2000 and newer systems.
  6. The MSI package format provides some advantages over the existing NSIS
  7. packages when used in an automated fashion. A modified version of
  8. the Mondo UI installer is included without EULA and other unnecessary
  9. dialogs. You must update the UIRef element below to change UI.
  10. Compile MSI installer via WiX:
  11. candle.exe contrib/*.wxs
  12. light.exe *.wixobj -out tor.msi -ext C:\Path\to\Wix\bin\WixUIExtension.dll
  13. A silent installation can be performed with a /quiet option passed.
  14. msiexec /i tor.msi INSTALLDIR=C:\path\to\install\to /qn
  15. A repair operation can be performed with /f and remove via /x
  16. More msiexec command line details at:
  17. http://technet.microsoft.com/en-us/library/cc759262.aspx
  18. -->
  19. <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  20. <Product
  21. Name="Tor"
  22. Id="1449ef81-e295-43e5-91ac-81b7da0e2024"
  23. UpgradeCode="64323a0c-9712-4a7a-8db8-d3c5c0b963df"
  24. Version="0.2.1.7"
  25. Manufacturer="The Tor Project, Inc."
  26. Language="1033" Codepage="1252">
  27. <!-- Common package definitions. Most of these elements are self
  28. explanatory or do not need modification.
  29. Note that there is no support for signature verification nor
  30. patched upgrades at this time.
  31. -->
  32. <Package
  33. Id="*"
  34. Keywords="Installer"
  35. Description="Tor Installer"
  36. Manufacturer="The Tor Project, Inc."
  37. Compressed="yes"
  38. InstallerVersion="100"
  39. Languages="1033"
  40. SummaryCodepage="1252"
  41. />
  42. <Media
  43. Id="1"
  44. Cabinet="Tor.cab"
  45. CompressionLevel="high"
  46. EmbedCab="yes"
  47. DiskPrompt="na"
  48. />
  49. <Property
  50. Id="DiskPrompt"
  51. Value="Tor Installation"
  52. />
  53. <!-- Most of the installation directives are for populating the
  54. "Program Files" directory with the Tor binaries, dynamic link
  55. libraries, configuration files, and other documents.
  56. -->
  57. <Directory Id="TARGETDIR" Name="SourceDir">
  58. <Directory Id="ProgramFilesFolder" Name="ProgramFilesDir">
  59. <Directory Id="INSTALLDIR" Name="Tor">
  60. <!-- Tor application file -->
  61. <Component Id="TorExecutable" Guid="219e0538-7f7f-4445-8406-e4f06ba22417">
  62. <File
  63. Id="TorExe"
  64. Name="Tor.exe"
  65. Source="bin\tor.exe"
  66. Vital="yes"
  67. DiskId="1"
  68. />
  69. </Component>
  70. <!-- Tor configuration files
  71. The sample config is always kept up to date and the torrc
  72. is left as is if it exists and copied from the sample
  73. config otherwise.
  74. -->
  75. <Component Id="TorConfigFile" Guid="1dae9705-0bef-4588-be36-d8a5df5e47cc">
  76. <File
  77. Id="TorSampleConfig"
  78. Name="torrc.sample"
  79. Source="src\config\torrc.sample"
  80. Vital="yes"
  81. ReadOnly="yes"
  82. DiskId="1"
  83. >
  84. <CopyFile
  85. Id="TorConfig"
  86. DestinationName="torrc"
  87. />
  88. </File>
  89. </Component>
  90. <!-- Tor OpenSSL shared libraries
  91. This optional component is required for shared builds
  92. of Tor. For static builds it is ignored.
  93. -->
  94. <Component Id="OpenSSLLibrary" Guid="4d99fd44-dc24-46c6-8825-25b9e5916b85">
  95. <File
  96. Id="cryptoeay32dll"
  97. Name="cryptoeay32-0.9.8.dll"
  98. Source="bin/cryptoeay32-0.9.8.dll"
  99. DiskId="1"
  100. />
  101. <File
  102. Id="ssleay32dll"
  103. Name="ssleay32-0.9.8.dll"
  104. Source="bin/ssleay32-0.9.8.dll"
  105. DiskId="1"
  106. />
  107. </Component>
  108. <!-- Tor docs -->
  109. <Component Id="TorDocuments" Guid="3def35f6-70a0-44af-813a-f96bc8462748">
  110. <File
  111. Id="TorReadme"
  112. Name="README"
  113. Source="README"
  114. DiskId="1"
  115. />
  116. <File
  117. Id="TorAuthors"
  118. Name="Authors"
  119. Source="Authors"
  120. DiskId="1"
  121. />
  122. <File
  123. Id="TorChangelog"
  124. Name="ChangeLog"
  125. Source="ChangeLog"
  126. DiskId="1"
  127. />
  128. <File
  129. Id="TorLicense"
  130. Name="LICENSE"
  131. Source="LICENSE"
  132. DiskId="1"
  133. />
  134. </Component>
  135. </Directory>
  136. </Directory>
  137. <!-- Create shortcuts if requested
  138. Remember that shortcuts must always be tied to a "key"
  139. registry value for proper repair and removal.
  140. -->
  141. <Directory Id="ProgramMenuFolder" Name="Programs">
  142. <Directory Id="ShortcutFolder" Name="Tor">
  143. <Component Id="AddTorToStartMenu" Guid="a318c037-e1ed-481c-983d-4a0ad3810ba0">
  144. <RegistryKey Root="HKCU" Key="Software\Tor" Action="createAndRemoveOnUninstall">
  145. <RegistryValue Name="StartMenuShortcut" Value="1" Type="integer" KeyPath="yes" />
  146. </RegistryKey>
  147. <Shortcut Id="TorStartMenuShortcut"
  148. Name="Tor" Target="[INSTALLDIR]tor.exe"
  149. Directory="ShortcutFolder" WorkingDirectory="INSTALLDIR"
  150. Icon="tor.ico" IconIndex="0" />
  151. <RemoveFolder Id="RemoveShortcutFolder" On="uninstall" />
  152. </Component>
  153. </Directory>
  154. </Directory>
  155. <Directory Id="DesktopFolder" Name="Desktop">
  156. <Component Id="AddTorToDesktop" Guid="9a00d5c1-1d5d-4a62-864e-f53f79b3c77a">
  157. <RegistryKey Root="HKCU" Key="Software\Tor" Action="createAndRemoveOnUninstall">
  158. <RegistryValue Name="DesktopShortcut" Value="1" Type="integer" KeyPath="yes" />
  159. </RegistryKey>
  160. <Shortcut Id="TorDesktopShortcut"
  161. Name="Tor" Target="[INSTALLDIR]tor.exe"
  162. Directory="DesktopFolder" WorkingDirectory="INSTALLDIR"
  163. Icon="tor.ico" IconIndex="0" />
  164. </Component>
  165. </Directory>
  166. <!-- Current version registry info
  167. This value can be used by third party applications to query
  168. for the current version installed on the system.
  169. -->
  170. <Component Id="TorRegistry" Guid="575de318-a649-49fe-95e5-ee091f6cb8c6">
  171. <RegistryKey Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Tor"
  172. Action="createAndRemoveOnUninstall">
  173. <RegistryValue Name="Version" Value="@VERSION@" Type="string" KeyPath="yes" />
  174. </RegistryKey>
  175. </Component>
  176. </Directory>
  177. <!-- Define list of application features available for install
  178. There are two main sections to this list. The "MainApplication"
  179. section which defines a core set of mandatory files and setup
  180. and the other optional components like shortcuts which are not
  181. required for functional installation.
  182. -->
  183. <Feature Id="Complete" Title="Tor"
  184. Level="1" Display="expand" ConfigurableDirectory="INSTALLDIR"
  185. Description="Tor is an implementation of Onion Routing. You can read more at https://www.torproject.org/">
  186. <!-- Core files and setup tasks that must always be included in installation -->
  187. <Feature Id="MainApplication" Title="Tor Application"
  188. AllowAdvertise="no" Absent="disallow" Level="1"
  189. Description="Main Tor application">
  190. <ComponentRef Id="TorExecutable" />
  191. <ComponentRef Id="TorConfigFile" />
  192. <ComponentRef Id="OpenSSLLibrary" />
  193. <ComponentRef Id="TorDocuments" />
  194. <ComponentRef Id="TorRegistry" />
  195. </Feature>
  196. <!-- Shortcuts on the Start Menu and Desktop are optional but
  197. provided by default. -->
  198. <Feature Id="Shortcuts" Title="Shortcuts"
  199. AllowAdvertise="no" Absent="allow" Level="1"
  200. Description="Add shortcuts to Tor.">
  201. <Feature Id="StartMenuShortcuts" Title="Add to Start menu"
  202. AllowAdvertise="no" Absent="allow" Level="1"
  203. Description="Add Tor to your Start menu">
  204. <ComponentRef Id="AddTorToStartMenu" />
  205. </Feature>
  206. <Feature Id="DesktopShortcuts" Title="Add to Desktop"
  207. AllowAdvertise="no" Absent="allow" Level="1"
  208. Description="Add Tor to your Desktop">
  209. <ComponentRef Id="AddTorToDesktop" />
  210. </Feature>
  211. </Feature>
  212. </Feature>
  213. <!-- Set the UI options
  214. Use a custom UI sequence to avoid EULA and other extraneous
  215. parts of Mondo and other GUIs
  216. -->
  217. <UIRef Id="WixUI_Tor" />
  218. <Icon Id="tor.ico" SourceFile="contrib/tor.ico" />
  219. </Product>
  220. </Wix>