diff options
author | Andrew Lewman <andrew@torproject.org> | 2006-10-20 00:25:03 +0000 |
---|---|---|
committer | Andrew Lewman <andrew@torproject.org> | 2006-10-20 00:25:03 +0000 |
commit | 6b21ac6b114afe8d762056c9884fa87a174454f4 (patch) | |
tree | 38718b13ea6ec005d6bf46a3ffa99799600b2c6c /contrib | |
parent | dcd33ef599c67991e85b51591b89c5b8e4e6dbf0 (diff) | |
download | tor-6b21ac6b114afe8d762056c9884fa87a174454f4.tar.gz tor-6b21ac6b114afe8d762056c9884fa87a174454f4.zip |
Include torbutton in the base tor installation. If Firefox exists,
install torbutton for all profiles.
svn:r8768
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/package_nsis-mingw.sh | 2 | ||||
-rw-r--r-- | contrib/tor-mingw.nsi.in | 17 |
2 files changed, 7 insertions, 12 deletions
diff --git a/contrib/package_nsis-mingw.sh b/contrib/package_nsis-mingw.sh index e2563f23b8..1776c1c3c8 100644 --- a/contrib/package_nsis-mingw.sh +++ b/contrib/package_nsis-mingw.sh @@ -23,6 +23,8 @@ cp src/tools/tor-resolve.exe win_tmp/bin/ cp /usr/local/ssl/lib/libcrypto.a win_tmp/bin/ cp /usr/local/ssl/lib/libssl.a win_tmp/bin/ cp contrib/tor.ico win_tmp/bin/ + +# YOU must copy torbutton xpi into the contrib dir cp contrib/torbutton-1.0.4-fx+tb.xpi win_tmp/bin/ # There is no man2html in mingw. diff --git a/contrib/tor-mingw.nsi.in b/contrib/tor-mingw.nsi.in index f3273084c4..1c3641ec85 100644 --- a/contrib/tor-mingw.nsi.in +++ b/contrib/tor-mingw.nsi.in @@ -10,12 +10,10 @@ !define WEBSITE "http://tor.eff.org/" !define LICENSE "LICENSE" -;BIN is where it expects to find tor.exe, tor-resolve.exe, libcrypto.a -;and libssl.a +;BIN is where it expects to find tor.exe, tor-resolve.exe, libcrypto.a and libssl.a !define BIN "..\bin" SetCompressor lzma -;SetCompressor zlib OutFile ${INSTALLER} InstallDir $PROGRAMFILES\Tor SetOverWrite ifnewer @@ -33,9 +31,6 @@ VIAddVersionKey "LegalCopyright" "©2004-2006, Roger Dingledine, Nick Mathewson" VIAddVersionKey "FileDescription" "Tor is an implementation of Onion Routing. You can read more at http://tor.eff.org/" VIAddVersionKey "FileVersion" "${VERSION}" -;Use upx on the installer header to shrink the size. -;!packhdr header.dat "upx --best header.dat" - !define MUI_WELCOMEPAGE_TITLE "Welcome to the Tor ${VERSION} Setup Wizard" !define MUI_WELCOMEPAGE_TEXT "This wizard will guide you through the installation of Tor ${VERSION}.\r\n\r\nIf you have previously installed Tor and it is currently running, please exit Tor first before continuing this installation.\r\n\r\n$_CLICK" !define MUI_ABORTWARNING @@ -130,14 +125,12 @@ Section "TorButton for FireFox" Torbutton File "${BIN}\torbutton-1.0.4-fx+tb.xpi" ReadRegStr $1 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\firefox.exe" "Path" - ; This message box is for debugging - MessageBox MB_OK "Firefox is installed at $1" - StrCmp $1 "" +4 0 ; if Path is empty or null, then skip to an error, otherwise proceed normally - ; This message box is for debugging - MessageBox MB_OK "I'm going to run $1firefox.exe --install-global-extension $INSTDIR\torbutton" - Exec '"$1firefox.exe" -install-global-extension $INSTDIR\torbutton-1.0.4-fx+tb.xpi' + StrCmp $1 "" +2 0 ; if Path is empty or null, then skip to an error, otherwise proceed + Exec '"$1firefox.exe" -install-global-extension "$INSTDIR\torbutton-1.0.4-fx+tb.xpi"' + DetailPrint "Torbutton installed" Goto +2 MessageBox MB_OK|MB_ICONSTOP "FireFox wasn't found on your system. Not installing Torbutton." + DetailPrint "Firefox NOT found." SectionEnd SubSection /e "Shortcuts" Shortcuts |