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