add proposal 159, 'exit scanning', from or-dev
[tor/rransom.git] / contrib / torbutton.wxs
blob971e61e312568057ee1e13070ba4207ced51fbff
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.
35 -->
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
40 as expected.
41 The OnlyDetect option must be false to ensure that existing files
42 from an older version are removed and replaced with current files.
43 -->
44 <Upgrade Id="$(var.UpgradeCode)">
45 <UpgradeVersion
46 Property="UPGRADEFOUND"
47 OnlyDetect="no"
48 Minimum="0.0.0"
49 IncludeMinimum="yes"
50 Maximum="$(var.ThisProductVersion)"
51 IncludeMaximum="no"
53 </Upgrade>
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)">
61 <CreateFolder/>
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" />
65 </RegistryKey>
66 <File
67 Id="TorButtonExtensionFile"
68 Name="torbutton.xpi"
69 Source="torbutton.xpi"
70 Vital="yes"
71 ReadOnly="no"
72 DiskId="1">
73 </File>
74 </Component>
76 </Directory>
77 </Directory>
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" />
85 </RegistryKey>
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" />
91 </Component>
92 </Directory>
93 </Directory>
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" />
100 </RegistryKey>
101 <Shortcut Id="TorButtonDesktopShortcut"
102 Name="Install TorButton" Target="[ProgramFilesFolder]Mozilla Firefox\firefox.exe"
103 Arguments="torbutton.xpi"
104 Directory="DesktopFolder" WorkingDirectory="INSTALLDIR" />
105 </Component>
106 </Directory>
107 </Directory>
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" />
117 </Feature>
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" />
125 </Feature>
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" />
130 </Feature>
131 </Feature>
132 </Feature>
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" />
143 </Product>
144 </Wix>