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