Allow some skew in checking when a router said it was hibernating
[tor.git] / contrib / bundle.nsi
blobffc64df3c8851c4b584012258c84233886954d19
1 !include "MUI.nsh"
2 !include "LogicLib.nsh"
3 !include "FileFunc.nsh"
5 !define VERSION "0.2.1.13"
6 !define INSTALLER "TorBundle.exe"
7 !define WEBSITE "https://www.torproject.org/"
8 !define LICENSE "LICENSE"
10 SetCompressor /SOLID BZIP2
11 RequestExecutionLevel user
12 OutFile ${INSTALLER}
13 InstallDir "$LOCALAPPDATA\TorInstPkgs"
14 SetOverWrite on
15 Name "Tor ${VERSION} Bundle"
16 Caption "Tor ${VERSION} Bundle Setup"
17 BrandingText "Tor Bundle Installer"
18 CRCCheck on
19 XPStyle on
20 ShowInstDetails hide
21 VIProductVersion "${VERSION}"
22 VIAddVersionKey "ProductName" "Tor"
23 VIAddVersionKey "Comments" "${WEBSITE}"
24 VIAddVersionKey "LegalTrademarks" "Three line BSD"
25 VIAddVersionKey "LegalCopyright" "©2004-2010, Roger Dingledine, Nick Mathewson, The Tor Project, Inc."
26 VIAddVersionKey "FileDescription" "Tor is an implementation of Onion Routing. You can read more at ${WEBSITE}"
27 VIAddVersionKey "FileVersion" "${VERSION}"
29 !define MUI_ICON "torinst32.ico"
30 !define MUI_HEADERIMAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Header\win.bmp"
31 !insertmacro MUI_PAGE_INSTFILES
32 !insertmacro MUI_LANGUAGE "English"
34 Section "Tor" Tor
35 SectionIn RO
36 SetOutPath $INSTDIR
37 Call ExtractPackages
38 Call RunInstallers
39 Call LaunchVidalia
40 SectionEnd
42 Function ExtractPackages
43 File "license.msi"
44 File "tor.msi"
45 File "torbutton.msi"
46 File "thandy.msi"
47 File "polipo.msi"
48 File "vidalia.msi"
49 File "tbcheck.bat"
50 FunctionEnd
52 Function RunInstallers
53 ExecWait 'msiexec /i "$INSTDIR\license.msi" /qn'
54 ExecWait 'msiexec /i "$INSTDIR\tor.msi" NOSC=1 /qn'
55 ExecWait 'msiexec /i "$INSTDIR\thandy.msi" NOSC=1 /qn'
56 ExecWait 'msiexec /i "$INSTDIR\polipo.msi" NOSC=1 /qn'
57 ExecWait 'msiexec /i "$INSTDIR\torbutton.msi" /qn'
58 ExecWait 'msiexec /i "$INSTDIR\vidalia.msi" /qn'
59 ExpandEnvStrings $0 %COMSPEC%
60 Exec '"$0" /C "$INSTDIR\tbcheck.bat"'
61 FunctionEnd
63 Function LaunchVidalia
64 SetOutPath "$LOCALAPPDATA\Programs\Vidalia"
65 Exec 'vidalia.exe -loglevel info -logfile log.txt'
66 FunctionEnd