aboutsummaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2002-08-19 15:48:28 +0000
committerGerald Combs <gerald@wireshark.org>2002-08-19 15:48:28 +0000
commit6565c486b94f2ada7bce050152b50254f6039688 (patch)
treeb427f20c8fc79a77e1fd1b4b28194d8100a4182e /packaging
parentc1c4eef87dfc83797382164fe2ae17d1d9f1332f (diff)
From Ulf Lamping:
Generalize paths and get rid of sed-dependent ethereal.nsi.in. Remove ethereal.nsi.in, and re-add ethereal.nsi with Ulf's changes. Modify Makefile.nmake to use it. Note: You'll have to add "COMMON_FILES_GNU" path to your config.nmake that points to a directory with all of Ethereal's required DLLs. Be obnixious and set "SetShellVarContext all" so that we install for every user, like most standard Windows apps. svn path=/trunk/; revision=6020
Diffstat (limited to 'packaging')
-rw-r--r--packaging/nsis/Makefile.nmake11
-rw-r--r--packaging/nsis/ethereal.nsi (renamed from packaging/nsis/ethereal.nsi.in)40
2 files changed, 27 insertions, 24 deletions
diff --git a/packaging/nsis/Makefile.nmake b/packaging/nsis/Makefile.nmake
index 3d6852ad6e..80762783a3 100644
--- a/packaging/nsis/Makefile.nmake
+++ b/packaging/nsis/Makefile.nmake
@@ -1,5 +1,5 @@
#
-# $Id: Makefile.nmake,v 1.12 2002/07/12 22:52:38 guy Exp $
+# $Id: Makefile.nmake,v 1.13 2002/08/19 15:48:28 gerald Exp $
#
# NSIS is a free packager/installer/uninstaller program for Win32.
# It was originally written for the Winamp package, but various
@@ -30,15 +30,10 @@ PLUGINS=../../plugins/docsis/docsis.dll \
DELIVERABLES=$(EXE) $(DLL) $(DOC) $(GPL) $(PLUGINS)
ethereal-setup-$(VERSION).exe : ethereal.nsi $(DELIVERABLES)
- $(MAKENSIS) ethereal.nsi
-
-ethereal.nsi : ethereal.nsi.in
- sed -e s/@VERSION@/$(VERSION)/ \
- -e s/@WTAP_VERSION@/$(WTAP_VERSION)/ \
- < ethereal.nsi.in > ethereal.nsi
+ $(MAKENSIS) /DVERSION=$(VERSION) /DWTAP_VERSION=$(WTAP_VERSION) /DCOMMON_FILES_GNU=$(COMMON_FILES_GNU) ethereal.nsi
clean:
- rm -f ethereal.nsi ethereal-setup-$(VERSION).exe
+ rm -f ethereal-setup-$(VERSION).exe
$(DOC):
cd ../../doc
diff --git a/packaging/nsis/ethereal.nsi.in b/packaging/nsis/ethereal.nsi
index bc29e9f243..47ad6b4482 100644
--- a/packaging/nsis/ethereal.nsi.in
+++ b/packaging/nsis/ethereal.nsi
@@ -1,7 +1,7 @@
;
; ethereal.nsi
;
-; $Id: ethereal.nsi.in,v 1.16 2002/07/12 22:52:38 guy Exp $
+; $Id: ethereal.nsi,v 1.3 2002/08/19 15:48:28 gerald Exp $
; ============================================================================
; Header configuration
@@ -10,7 +10,7 @@
Name "Ethereal"
; The file to write
-OutFile "ethereal-setup-@VERSION@.exe"
+OutFile "ethereal-setup-${VERSION}.exe"
; Icon of installer
Icon "..\..\image\ethereal.ico"
@@ -52,18 +52,26 @@ InstallDirRegKey HKEY_LOCAL_MACHINE SOFTWARE\Ethereal "InstallDir"
ShowInstDetails show
+
; ============================================================================
; Installation execution commands
; ============================================================================
Section "-Required"
;-------------------------------------------
+
+;
+; Install for every user
+;
+SetShellVarContext all
+
SetOutPath $INSTDIR
-File "..\..\wiretap\wiretap-@WTAP_VERSION@.dll"
-File "c:\program files\common files\GNU\iconv-1.3.dll"
-File "c:\program files\common files\GNU\glib-1.3.dll"
-File "c:\program files\common files\GNU\gmodule-1.3.dll"
-File "c:\program files\common files\GNU\gnu-intl.dll"
+File "..\..\wiretap\wiretap-${WTAP_VERSION}.dll"
+File "${COMMON_FILES_GNU}\iconv-1.3.dll"
+File "${COMMON_FILES_GNU}\glib-1.3.dll"
+File "${COMMON_FILES_GNU}\gmodule-1.3.dll"
+File "${COMMON_FILES_GNU}\gnu-intl.dll"
+;File "${COMMON_FILES_GNU}\zlib.dll"
File "..\..\README"
File "..\..\README.win32"
File "..\..\manuf"
@@ -91,8 +99,8 @@ Section "Ethereal"
SetOutPath $INSTDIR
File "..\..\ethereal.exe"
File "..\..\doc\ethereal.html"
-File "c:\program files\common files\GNU\gtk-1.3.dll"
-File "c:\program files\common files\GNU\gdk-1.3.dll"
+File "${COMMON_FILES_GNU}\gtk-1.3.dll"
+File "${COMMON_FILES_GNU}\gdk-1.3.dll"
SectionEnd
Section "Tethereal"
@@ -126,7 +134,7 @@ SectionEnd
Section "Plugins"
;-------------------------------------------
-SetOutPath $INSTDIR\plugins\@VERSION@
+SetOutPath $INSTDIR\plugins\${VERSION}
File "..\..\plugins\docsis\docsis.dll"
File "..\..\plugins\giop\coseventcomm.dll"
File "..\..\plugins\giop\cosnaming.dll"
@@ -166,16 +174,16 @@ Delete "$INSTDIR\sunping.xml"
Delete "$INSTDIR\*.exe"
Delete "$INSTDIR\*.html"
Delete "$INSTDIR\*.dll"
-Delete "$INSTDIR\plugins\@VERSION@\coseventcomm.dll"
-Delete "$INSTDIR\plugins\@VERSION@\cosnaming.dll"
-Delete "$INSTDIR\plugins\@VERSION@\docsis.dll"
-Delete "$INSTDIR\plugins\@VERSION@\gryphon.dll"
-Delete "$INSTDIR\plugins\@VERSION@\mgcp.dll"
+Delete "$INSTDIR\plugins\${VERSION}\coseventcomm.dll"
+Delete "$INSTDIR\plugins\${VERSION}\cosnaming.dll"
+Delete "$INSTDIR\plugins\${VERSION}\docsis.dll"
+Delete "$INSTDIR\plugins\${VERSION}\gryphon.dll"
+Delete "$INSTDIR\plugins\${VERSION}\mgcp.dll"
Delete "$SMPROGRAMS\Ethereal\*.*"
Delete "$DESKTOP\Ethereal.lnk"
RMDir "$SMPROGRAMS\Ethereal"
-RMDir "$INSTDIR\plugins\@VERSION@"
+RMDir "$INSTDIR\plugins\${VERSION}"
RMDir "$INSTDIR\plugins"
RMDir "$INSTDIR"