bundle.nsi 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. !include "MUI.nsh"
  2. !include "LogicLib.nsh"
  3. !include "FileFunc.nsh"
  4. !define VERSION "0.2.1.13"
  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-2011, 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 "license.msi"
  39. File "tor.msi"
  40. File "torbutton.msi"
  41. File "thandy.msi"
  42. File "polipo.msi"
  43. File "vidalia.msi"
  44. File "tbcheck.bat"
  45. FunctionEnd
  46. Function RunInstallers
  47. ExecWait 'msiexec /i "$INSTDIR\license.msi" /qn'
  48. ExecWait 'msiexec /i "$INSTDIR\tor.msi" NOSC=1 /qn'
  49. ExecWait 'msiexec /i "$INSTDIR\thandy.msi" NOSC=1 /qn'
  50. ExecWait 'msiexec /i "$INSTDIR\polipo.msi" NOSC=1 /qn'
  51. ExecWait 'msiexec /i "$INSTDIR\torbutton.msi" /qn'
  52. ExecWait 'msiexec /i "$INSTDIR\vidalia.msi" /qn'
  53. ExpandEnvStrings $0 %COMSPEC%
  54. Exec '"$0" /C "$INSTDIR\tbcheck.bat"'
  55. FunctionEnd
  56. Function LaunchVidalia
  57. SetOutPath "$LOCALAPPDATA\Programs\Vidalia"
  58. Exec 'vidalia.exe -loglevel info -logfile log.txt'
  59. FunctionEnd