From 0e5973dec27c5c9d4e711423ab1257bb53bdb875 Mon Sep 17 00:00:00 2001 From: Martin Peck Date: Fri, 16 Jan 2009 00:00:53 +0000 Subject: [PATCH] Add the front end installer exe NSIS scripts for the bundle and net installer packages. And icon used for them. svn:r18123 --- contrib/bundle.nsi | 65 ++++++++++++++++++++++++++++++++++++++ contrib/netinst.nsi | 71 ++++++++++++++++++++++++++++++++++++++++++ contrib/torinst32.ico | Bin 0 -> 4286 bytes 3 files changed, 136 insertions(+) create mode 100644 contrib/bundle.nsi create mode 100644 contrib/netinst.nsi create mode 100644 contrib/torinst32.ico diff --git a/contrib/bundle.nsi b/contrib/bundle.nsi new file mode 100644 index 000000000..639a29e41 --- /dev/null +++ b/contrib/bundle.nsi @@ -0,0 +1,65 @@ +!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 BZIP2 +RequestExecutionLevel user +OutFile ${INSTALLER} +InstallDir "$LOCALAPPDATA\TorInstPkgs" +SetOverWrite on +Name "Tor ${VERSION} Bundle" +Caption "Tor ${VERSION} Bundle Setup" +BrandingText "Tor Bundle Installer" +CRCCheck on +XPStyle on +ShowInstDetails hide +VIProductVersion "${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 LaunchVidalia +SectionEnd + +Function ExtractPackages + File "tor.msi" + File "torbutton.msi" + File "thandy.msi" + File "polipo.msi" + File "vidalia.msi" + File "tbcheck.bat" +FunctionEnd + +Function 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"' +FunctionEnd + +Function LaunchVidalia + SetOutPath "$LOCALAPPDATA\Programs\Vidalia" + Exec 'vidalia.exe -loglevel info -logfile log.txt' +FunctionEnd + diff --git a/contrib/netinst.nsi b/contrib/netinst.nsi new file mode 100644 index 000000000..8e3e53a40 --- /dev/null +++ b/contrib/netinst.nsi @@ -0,0 +1,71 @@ +!include "MUI.nsh" +!include "LogicLib.nsh" +!include "FileFunc.nsh" + +!define VERSION "0.2.1.10" +!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" +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 LaunchVidalia + Call CleanUpTemp +SectionEnd + +Function ExtractPackages + File "thandy.msi" +FunctionEnd + +Function RunInstallers + 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 + ExecWait '"del" "$INSTDIR\thandy.msi"' + SetOutPath $TEMP + RMDir /r $TEMP\TorInstTmp +FunctionEnd + diff --git a/contrib/torinst32.ico b/contrib/torinst32.ico new file mode 100644 index 0000000000000000000000000000000000000000..ccbad9b152a23ddf7a7caabf99d4d8df017e52d6 GIT binary patch literal 4286 zcmb`J4NTMN9mh*+ZP5aSn}=^xdgRpGM59LM%T8S~BypZ2XW&9aBd~x07N7xg=;%R! zCIzwrBLxy#SfH?22pF!sj7CBsfCR}9W-%fI3CQsh5b*^qeD{0)r5qBs6Su#4Z2R#1 zpU>~*`};i)kLN)DJUn>pf8O7uJl>}~9&aBFn&O?M!RG%D&j#9KI}IP9Kp3}KB29CW zZpoFnxK;55!Va4685$g%X>4eKUav<%;xg{B&uj6-xr^`(j=5O1udBDQi;JMuYEe*7 z0F6e2oSYn})oRG)a>h^mK)wU5^C4gB&j(zcIqU1c6c81Uuw)ggA3TIYTY?NjHO>bH zW8dKu=FMc+VtnyW z#($eg?D&^UVUf>TC#IpgRfR&683`IKnnuUbzXTM}Z+&|g+Gl2=C@RIZ1O4!Vw@pr?qUQlJD{7EcRg2R0 zd+4_U4~d^#T!v<{rG0u9X=MgPDAgEwI*!W9%6D>ZkGo2xLRwlHA|fK-EOGvOQ+b2v zKiJ^rx&J_qX=ns}Z>)&V)uP7o2uZp!Sl(JW{sa0{=t|M^ash4AGf%>) zxh@fHVl}<`+0N$+>dj*l=v{cj`QAA*hr&CpsDC`P!e{Z<)S0;Ww~^1v@=Bx>m1Ao5 z8CUzP&eiHnTh5o+%=e_EB!q^9LMC=wBxt@^D5h>@dnyXb9h@DV{P!O@@xvq9zq;=s z>AjkmODJx=i~5IyD|{A%M#@iVYbV+8lgth=7Gz;e)FWs?|n_| zKPn`OPy9cgIe+mv%YXN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