bundle.nsi 1.8 KB

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