polipo.wxs 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <?xml version="1.0" encoding="Windows-1252" ?>
  2. <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  3. <?define ThisProductVersion="1.0.4" ?>
  4. <?define ThisProductVersionDisp="1.0.4.1" ?>
  5. <?define UpgradeCode="b45b9db8-8670-4546-8dd4-e9284ca81616" ?>
  6. <?define CurrProductGUID="22c59fc2-8c94-4151-ad82-2c90bfa7ff99" ?>
  7. <?define CurrExecutableGUID="cef195c5-817c-4963-a1f7-03e88c79985b" ?>
  8. <?define CurrRegExLibsGUID="04b3e6f5-a4f3-4cc0-adb1-765c39050865" ?>
  9. <?define CurrMingwLibsGUID="bd31ec38-27a3-415e-b19f-ccd61bc41d9a" ?>
  10. <?define CurrDocumentsGUID="ff70f640-1a87-4eed-9897-277059e55c4f" ?>
  11. <?define CurrConfigFileGUID="fbe1473f-de4d-4ca2-a8a4-66f3f92fff7d" ?>
  12. <?define CurrStartMenuGUID="0b577f55-1ca5-43b8-9df2-3834843fc80b" ?>
  13. <?define CurrDesktopGUID="0e7e07f2-b21b-49ea-a25e-569eae46e0ce" ?>
  14. <?define CurrDocsOnDesktopGUID="783fb5f6-835d-4a81-988b-d46c683ac0e2" ?>
  15. <?define CurrStartupGUID="60bc5fc3-74d2-4d7b-a659-8acebea93aa4" ?>
  16. <?define CurrLocalProgramsGUID="e0c517aa-5eb7-4909-a23f-7fccd7fddeef" ?>
  17. <Product Name="Polipo $(var.ThisProductVersionDisp)" Id="$(var.CurrProductGUID)"
  18. Language="1033" Codepage="1252"
  19. Version="$(var.ThisProductVersion)"
  20. Manufacturer="mailto: coderman at gmail.com - test package for The Tor Project, Inc."
  21. UpgradeCode="$(var.UpgradeCode)">
  22. <Package Id="*" Keywords="Installer"
  23. Description="Polipo $(var.ThisProductVersionDisp) Installer"
  24. Manufacturer="mailto: coderman at gmail.com - test package for The Tor Project, Inc."
  25. InstallerVersion="100" Compressed="yes"
  26. Languages="1033" SummaryCodepage="1252"
  27. InstallPrivileges="limited" />
  28. <Media Id="1" Cabinet="Polipo.cab" CompressionLevel="high"
  29. EmbedCab="yes" DiskPrompt="CD-ROM #1" />
  30. <Property Id="DiskPrompt" Value="Polipo $(var.ThisProductVersionDisp) Installation Volume [1]" />
  31. <Property Id="ALLUSERS" Secure="yes"/>
  32. <Property Id="ReinstallModeText">omus</Property>
  33. <!-- To avoid placing shortcuts all over the desktop / start menu during a
  34. silent installation the NOSC=1 option can be passed to omit shortcuts.
  35. This is useful if bundled with other applications like Vidalia that manage
  36. configuration and Tor related processes themselves.
  37. -->
  38. <Property Id="NOSC" Secure="yes"/>
  39. <!-- Associate this package with the upgrade code for this series
  40. to ensure that upgrade installations by Thandy or other means work
  41. as expected.
  42. The OnlyDetect option must be false to ensure that existing files
  43. from an older version are removed and replaced with current files.
  44. -->
  45. <Upgrade Id="$(var.UpgradeCode)">
  46. <UpgradeVersion
  47. Property="UPGRADEFOUND"
  48. OnlyDetect="no"
  49. Minimum="0.0.0"
  50. IncludeMinimum="yes"
  51. Maximum="$(var.ThisProductVersion)"
  52. IncludeMaximum="no"
  53. />
  54. </Upgrade>
  55. <Directory Id="TARGETDIR" Name="SourceDir">
  56. <Directory Id="LocalAppDataFolder" Name="LocalAppData">
  57. <Directory Id="LocalProgramsFolder" Name="Programs">
  58. <!-- Until proper support for per-user installs is available we manage Programs folder.
  59. Note that this directory will be left in place if it is in use by any other app.
  60. -->
  61. <Component Id="LocalProgramsFolderRef" Guid="$(var.CurrLocalProgramsGUID)">
  62. <CreateFolder/>
  63. <RemoveFolder Id="RemoveLocalProgramsFolder" On="uninstall" />
  64. <RegistryKey Root="HKCU" Key="Software\Polipo" Action="createAndRemoveOnUninstall">
  65. <RegistryValue Name="LocalProgramsFolderRef" Value="1" Type="integer" KeyPath="yes" />
  66. </RegistryKey>
  67. </Component>
  68. <Directory Id="LocalProgramsInstDir" Name="Polipo">
  69. <!-- Main Polipo application files -->
  70. <Component Id="PolipoExecutable" Guid="$(var.CurrExecutableGUID)">
  71. <CreateFolder/>
  72. <RemoveFolder Id="RemoveLocalProgramsInstDir" On="uninstall" />
  73. <RegistryKey Root="HKCU" Key="Software\Polipo" Action="createAndRemoveOnUninstall">
  74. <RegistryValue Name="Version" Value="$(var.ThisProductVersionDisp)" Type="string" KeyPath="yes" />
  75. </RegistryKey>
  76. <File Id="PolipoExe" DiskId="1"
  77. Name="polipo.exe" Source="bin\polipo.exe" />
  78. </Component>
  79. <!-- MinGW-related library files -->
  80. <Component Id="MinGWLibrary" Guid="$(var.CurrMingwLibsGUID)">
  81. <RegistryKey Root="HKCU" Key="Software\Polipo" Action="createAndRemoveOnUninstall">
  82. <RegistryValue Name="MinGWLibrary" Value="1" Type="integer" KeyPath="yes" />
  83. </RegistryKey>
  84. <File Id="MinGWDll" DiskId="1"
  85. Name="mingwm10.dll" Source="bin\mingwm10.dll" />
  86. </Component>
  87. <!-- GNU RegEx library files -->
  88. <Component Id="GnuRegExLibrary" Guid="$(var.CurrRegExLibsGUID)">
  89. <RegistryKey Root="HKCU" Key="Software\Polipo" Action="createAndRemoveOnUninstall">
  90. <RegistryValue Name="RegExLibrary" Value="1" Type="integer" KeyPath="yes" />
  91. </RegistryKey>
  92. <File Id="gnurxdll" DiskId="1"
  93. Name="libgnurx-0.dll" Source="bin\libgnurx-0.dll" />
  94. </Component>
  95. </Directory>
  96. </Directory>
  97. <Directory Id="INSTALLDIR" Name="Polipo">
  98. <Component Id="PolipoConfig" Guid="$(var.CurrConfigFileGUID)">
  99. <CreateFolder/>
  100. <RemoveFolder Id="RemoveINSTALLDIR" On="uninstall" />
  101. <RegistryKey Root="HKCU" Key="Software\Polipo" Action="createAndRemoveOnUninstall">
  102. <RegistryValue Name="ConfigFile" Value="1" Type="integer" KeyPath="yes" />
  103. </RegistryKey>
  104. <File
  105. Id="PolipoConfigFile"
  106. Name="config.txt"
  107. Source="bin\polipo.conf"
  108. Vital="yes"
  109. ReadOnly="no"
  110. DiskId="1">
  111. <CopyFile
  112. Id="PolipoSavedConfig"
  113. DestinationName="save-cfg.txt"
  114. />
  115. </File>
  116. </Component>
  117. </Directory>
  118. </Directory>
  119. <Directory Id="ProgramMenuFolder" Name="Programs">
  120. <Directory Id="ShortcutFolder" Name="Polipo">
  121. <Component Id="AddPolipoToStartMenu" Guid="$(var.CurrStartMenuGUID)">
  122. <Condition><![CDATA[NOSC <> 1]]> </Condition>
  123. <RegistryKey Root="HKCU" Key="Software\Polipo" Action="createAndRemoveOnUninstall">
  124. <RegistryValue Name="StartMenuShortcut" Value="1" Type="integer" KeyPath="yes" />
  125. </RegistryKey>
  126. <Shortcut Id="PolipoStartMenuShortcut"
  127. Name="Polipo" Target="[LocalProgramsInstDir]polipo.exe"
  128. Directory="ShortcutFolder" WorkingDirectory="LocalProgramsInstDir" />
  129. <RemoveFolder Id="RemoveShortcutFolder" On="uninstall" />
  130. </Component>
  131. </Directory>
  132. </Directory>
  133. <Directory Id="DesktopFolder" Name="Desktop">
  134. <Component Id="AddPolipoToDesktop" Guid="$(var.CurrDesktopGUID)">
  135. <Condition><![CDATA[NOSC <> 1]]> </Condition>
  136. <RegistryKey Root="HKCU" Key="Software\Polipo" Action="createAndRemoveOnUninstall">
  137. <RegistryValue Name="DesktopShortcut" Value="1" Type="integer" KeyPath="yes" />
  138. </RegistryKey>
  139. <Shortcut Id="PolipoDesktopShortcut"
  140. Name="Polipo" Target="[LocalProgramsInstDir]polipo.exe"
  141. Directory="DesktopFolder" WorkingDirectory="LocalProgramsInstDir" />
  142. </Component>
  143. </Directory>
  144. <Component Id="AddToStartupItems" Guid="$(var.CurrStartupGUID)">
  145. <Condition><![CDATA[NOSC <> 1]]> </Condition>
  146. <RegistryKey Root="HKCU"
  147. Key="Software\Microsoft\Windows\CurrentVersion\Run"
  148. Action="createAndRemoveOnUninstall">
  149. <RegistryValue Name="Polipo" Value='"[LocalProgramsInstDir]polipo.exe"' Type="string" />
  150. </RegistryKey>
  151. </Component>
  152. </Directory>
  153. <!-- Build up the feature hierarchy -->
  154. <Feature Id="Complete" Title="Polipo"
  155. Level="1" Display="expand" ConfigurableDirectory="INSTALLDIR"
  156. Description="Polipo is application that helps you control, monitor, and configure the Tor software.">
  157. <Feature Id="MainApplication" Title="Polipo $(var.ThisProductVersionDisp)"
  158. AllowAdvertise="no" Absent="disallow" Level="1"
  159. Description="Main application">
  160. <ComponentRef Id="LocalProgramsFolderRef" />
  161. <ComponentRef Id="PolipoExecutable" />
  162. <ComponentRef Id="MinGWLibrary" />
  163. <ComponentRef Id="GnuRegExLibrary" />
  164. <ComponentRef Id="PolipoConfig" />
  165. </Feature>
  166. <Feature Id="Shortcuts" Title="Shortcuts"
  167. AllowAdvertise="no" Absent="allow" Level="1"
  168. Description="Add a shortcut to Polipo to your Start menu or Desktop.">
  169. <Feature Id="StartMenuShortcuts" Title="Add to Start menu"
  170. AllowAdvertise="no" Absent="allow" Level="1"
  171. Description="Add Polipo to your Start menu">
  172. <ComponentRef Id="AddPolipoToStartMenu" />
  173. </Feature>
  174. <Feature Id="DesktopShortcuts" Title="Add to Desktop"
  175. AllowAdvertise="no" Absent="allow" Level="1"
  176. Description="Add Polipo to your Desktop">
  177. <ComponentRef Id="AddPolipoToDesktop" />
  178. </Feature>
  179. <Feature Id="RunAtStartup" Title="Run at Startup"
  180. AllowAdvertise="no" Absent="allow" Level="1"
  181. Description="Run Polipo automatically when your system starts">
  182. <ComponentRef Id="AddToStartupItems" />
  183. </Feature>
  184. </Feature>
  185. </Feature>
  186. <!-- Upgrade installation sequence. -->
  187. <InstallExecuteSequence>
  188. <RemoveExistingProducts After="InstallValidate" />
  189. </InstallExecuteSequence>
  190. <!-- Set the UI options -->
  191. <UIRef Id="WixUI_Tor" />
  192. <WixVariable Id="WixUIBannerBmp" Value="header.bmp" />
  193. <WixVariable Id="WixUIDialogBmp" Value="welcome.bmp" />
  194. </Product>
  195. </Wix>