aboutsummaryrefslogtreecommitdiff
path: root/contrib/tor-mingw.nsi.in
diff options
context:
space:
mode:
authorAndrew Lewman <andrew@torproject.org>2008-05-29 01:34:30 +0000
committerAndrew Lewman <andrew@torproject.org>2008-05-29 01:34:30 +0000
commit4591d931a4691ba7e2b0499467f145a7b48d278e (patch)
tree9c5c9693f2960dbd74169e39e0b90a4f388a5aa7 /contrib/tor-mingw.nsi.in
parenta335b94c8fd87c65778320f276091e52d83c8609 (diff)
downloadtor-4591d931a4691ba7e2b0499467f145a7b48d278e.tar
tor-4591d931a4691ba7e2b0499467f145a7b48d278e.tar.gz
include geoip in win32 packages.
svn:r14798
Diffstat (limited to 'contrib/tor-mingw.nsi.in')
-rw-r--r--contrib/tor-mingw.nsi.in16
1 files changed, 12 insertions, 4 deletions
diff --git a/contrib/tor-mingw.nsi.in b/contrib/tor-mingw.nsi.in
index 564588021..5cc2e3946 100644
--- a/contrib/tor-mingw.nsi.in
+++ b/contrib/tor-mingw.nsi.in
@@ -1,6 +1,6 @@
;tor.nsi - A basic win32 installer for Tor
; Originally written by J Doe.
-; Modified by Steve Topletz
+; Modified by Steve Topletz, Andrew Lewman
; See the Tor LICENSE for licensing information
;-----------------------------------------
;
@@ -9,7 +9,7 @@
!include "FileFunc.nsh"
!insertmacro GetParameters
-!define VERSION "0.2.1.0-alpha-dev"
+!define VERSION "0.2.0.26-rc-dev"
!define INSTALLER "tor-${VERSION}-win32.exe"
!define WEBSITE "https://www.torproject.org/"
!define LICENSE "LICENSE"
@@ -96,6 +96,11 @@ Section "Tor" Tor
Next:
${EndIf}
File /oname=$CONFIGFILE "..\src\config\torrc.sample"
+
+; the geoip file needs to be included and stuffed into the right directory
+; otherwise tor is unhappy
+ SetOutPath $APPDATA\Tor
+ Call ExtractGEOIP
SectionEnd
Section "Documents" Docs
@@ -113,7 +118,6 @@ Section "Start Menu" StartMenu
${If} ${FileExists} "$INSTDIR\Documents\*.*"
Call CreateDocLinks
${EndIf}
- endifdocs:
SectionEnd
Section "Desktop" Desktop
@@ -156,12 +160,15 @@ Function ExtractBinaries
File "${BIN}\tor-resolve.exe"
FunctionEnd
+Function ExtractGEOIP
+ File "${BIN}\geoip"
+FunctionEnd
+
Function ExtractIcon
File "${BIN}\tor.ico"
FunctionEnd
Function ExtractSpecs
- ;File "doc\FAQ"
File "..\doc\HACKING"
File "..\doc\spec\address-spec.txt"
File "..\doc\spec\control-spec.txt"
@@ -209,6 +216,7 @@ Function un.InstallFiles
Delete "$INSTDIR\tor.ico"
Delete "$SMSTARTUP\Tor.lnk"
Delete "$INSTDIR\Uninstall.exe"
+ Delete "$INSTDIR\geoip"
FunctionEnd
Function un.InstallDirectories