tor.wxs.in 9.3 KB

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