2009-01-16 01:00:53 +01:00
|
|
|
|
!include "MUI.nsh"
|
|
|
|
|
!include "LogicLib.nsh"
|
|
|
|
|
!include "FileFunc.nsh"
|
|
|
|
|
|
2009-03-10 10:28:28 +01:00
|
|
|
|
!define VERSION "0.2.1.13"
|
2009-01-16 01:00:53 +01:00
|
|
|
|
!define INSTALLER "TorNetInstaller.exe"
|
|
|
|
|
!define WEBSITE "https://www.torproject.org/"
|
|
|
|
|
!define LICENSE "LICENSE"
|
|
|
|
|
|
|
|
|
|
SetCompressor /SOLID BZIP2
|
|
|
|
|
RequestExecutionLevel user
|
|
|
|
|
OutFile ${INSTALLER}
|
|
|
|
|
InstallDir "$TEMP\TorInstTmp"
|
|
|
|
|
SetOverWrite on
|
|
|
|
|
Name "Tor Network Installer"
|
|
|
|
|
Caption "Tor Network Installer"
|
|
|
|
|
BrandingText "Tor Network Installer"
|
|
|
|
|
CRCCheck on
|
|
|
|
|
XPStyle on
|
|
|
|
|
ShowInstDetails hide
|
|
|
|
|
VIProductVersion "${VERSION}"
|
|
|
|
|
VIAddVersionKey "ProductName" "Tor"
|
|
|
|
|
VIAddVersionKey "Comments" "${WEBSITE}"
|
|
|
|
|
VIAddVersionKey "LegalTrademarks" "Three line BSD"
|
2011-01-03 17:50:39 +01:00
|
|
|
|
VIAddVersionKey "LegalCopyright" "<22>2004-2011, Roger Dingledine, Nick Mathewson, The Tor Project, Inc."
|
2009-01-16 01:00:53 +01:00
|
|
|
|
VIAddVersionKey "FileDescription" "Tor is an implementation of Onion Routing. You can read more at ${WEBSITE}"
|
|
|
|
|
VIAddVersionKey "FileVersion" "${VERSION}"
|
|
|
|
|
|
|
|
|
|
!define MUI_ICON "torinst32.ico"
|
|
|
|
|
!define MUI_HEADERIMAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Header\win.bmp"
|
|
|
|
|
!insertmacro MUI_PAGE_INSTFILES
|
|
|
|
|
!insertmacro MUI_LANGUAGE "English"
|
|
|
|
|
|
|
|
|
|
Section "Tor" Tor
|
|
|
|
|
SectionIn RO
|
|
|
|
|
SetOutPath $INSTDIR
|
|
|
|
|
Call ExtractPackages
|
|
|
|
|
Call RunInstallers
|
|
|
|
|
Call LaunchVidalia
|
|
|
|
|
Call CleanUpTemp
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|
|
Function ExtractPackages
|
2009-03-10 10:28:28 +01:00
|
|
|
|
File "license.msi"
|
2009-01-16 01:00:53 +01:00
|
|
|
|
File "thandy.msi"
|
|
|
|
|
FunctionEnd
|
|
|
|
|
|
|
|
|
|
Function RunInstallers
|
2009-03-10 10:28:28 +01:00
|
|
|
|
ExecWait 'msiexec /i "$INSTDIR\license.msi" /qn'
|
2009-01-16 01:00:53 +01:00
|
|
|
|
ExecWait 'msiexec /i "$INSTDIR\thandy.msi" NOSC=1 /qn'
|
|
|
|
|
ExecWait '"$LOCALAPPDATA\Programs\Thandy\thandy.exe" update "--repo=$LOCALAPPDATA\Thandy\Tor Updates" /bundleinfo/tor/win32/'
|
|
|
|
|
ExecWait '"$LOCALAPPDATA\Programs\Thandy\thandy.exe" update "--repo=$LOCALAPPDATA\Thandy\Polipo Updates" /bundleinfo/polipo/win32/'
|
|
|
|
|
ExecWait '"$LOCALAPPDATA\Programs\Thandy\thandy.exe" update "--repo=$LOCALAPPDATA\Thandy\TorButton Updates" /bundleinfo/torbutton/win32/'
|
|
|
|
|
ExecWait '"$LOCALAPPDATA\Programs\Thandy\thandy.exe" update "--repo=$LOCALAPPDATA\Thandy\Vidalia Updates" /bundleinfo/vidalia/win32/'
|
|
|
|
|
ExecWait '"$LOCALAPPDATA\Programs\Thandy\thandy.exe" update --install "--repo=$LOCALAPPDATA\Thandy\Tor Updates" /bundleinfo/tor/win32/'
|
|
|
|
|
ExecWait '"$LOCALAPPDATA\Programs\Thandy\thandy.exe" update --install "--repo=$LOCALAPPDATA\Thandy\Polipo Updates" /bundleinfo/polipo/win32/'
|
|
|
|
|
ExecWait '"$LOCALAPPDATA\Programs\Thandy\thandy.exe" update --install "--repo=$LOCALAPPDATA\Thandy\TorButton Updates" /bundleinfo/torbutton/win32/'
|
|
|
|
|
ExecWait '"$LOCALAPPDATA\Programs\Thandy\thandy.exe" update --install "--repo=$LOCALAPPDATA\Thandy\Vidalia Updates" /bundleinfo/vidalia/win32/'
|
|
|
|
|
ExpandEnvStrings $0 %COMSPEC%
|
|
|
|
|
Exec '"$0" /C "$INSTDIR\tbcheck.bat"'
|
|
|
|
|
FunctionEnd
|
|
|
|
|
|
|
|
|
|
Function LaunchVidalia
|
|
|
|
|
SetOutPath "$LOCALAPPDATA\Programs\Vidalia"
|
|
|
|
|
Exec 'vidalia.exe -loglevel info -logfile log.txt'
|
|
|
|
|
FunctionEnd
|
|
|
|
|
|
|
|
|
|
Function CleanUpTemp
|
2009-03-10 10:28:28 +01:00
|
|
|
|
ExecWait '"del" "$INSTDIR\license.msi"'
|
2009-01-16 01:00:53 +01:00
|
|
|
|
ExecWait '"del" "$INSTDIR\thandy.msi"'
|
|
|
|
|
SetOutPath $TEMP
|
|
|
|
|
RMDir /r $TEMP\TorInstTmp
|
|
|
|
|
FunctionEnd
|
|
|
|
|
|