| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 | !include "MUI.nsh"!include "LogicLib.nsh"!include "FileFunc.nsh"  !define VERSION "0.2.1.10"!define INSTALLER "TorBundle.exe"!define WEBSITE "https://www.torproject.org/"!define LICENSE "LICENSE" SetCompressor /SOLID BZIP2RequestExecutionLevel userOutFile ${INSTALLER}InstallDir "$LOCALAPPDATA\TorInstPkgs"SetOverWrite onName "Tor ${VERSION} Bundle"Caption "Tor ${VERSION} Bundle Setup"BrandingText "Tor Bundle Installer"CRCCheck onXPStyle onShowInstDetails hideVIProductVersion "${VERSION}"VIAddVersionKey "ProductName" "Tor"VIAddVersionKey "Comments" "${WEBSITE}"VIAddVersionKey "LegalTrademarks" "Three line BSD"VIAddVersionKey "LegalCopyright" "©2004-2009, Roger Dingledine, Nick Mathewson, The Tor Project, Inc."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 LaunchVidaliaSectionEndFunction ExtractPackages	File "tor.msi"	File "torbutton.msi"	File "thandy.msi"	File "polipo.msi"	File "vidalia.msi"        File "tbcheck.bat"FunctionEndFunction RunInstallers	ExecWait 'msiexec /i "$INSTDIR\tor.msi" NOSC=1 /qn'	ExecWait 'msiexec /i "$INSTDIR\thandy.msi" NOSC=1 /qn'	ExecWait 'msiexec /i "$INSTDIR\polipo.msi" NOSC=1 /qn'	ExecWait 'msiexec /i "$INSTDIR\torbutton.msi" /qn'	ExecWait 'msiexec /i "$INSTDIR\vidalia.msi" /qn'        ExpandEnvStrings $0 %COMSPEC%        Exec '"$0" /C "$INSTDIR\tbcheck.bat"'FunctionEndFunction LaunchVidalia	SetOutPath "$LOCALAPPDATA\Programs\Vidalia"	Exec 'vidalia.exe -loglevel info -logfile log.txt'FunctionEnd
 |