tSimple installer for Win32 systems added - vaccinewars - be a doctor and try to vaccinate the world
 (HTM) git clone git://src.adamsgaard.dk/vaccinewars
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 7abd217d37be938230eb1cc567faf11f87945732
 (DIR) parent f9bb1a00231cba2fb81329110c8fdfae02005770
 (HTM) Author: Ben Webb <ben@salilab.org>
       Date:   Fri, 21 Sep 2001 17:27:47 +0000
       
       Simple installer for Win32 systems added
       
       
       Diffstat:
         M ChangeLog                           |       1 +
         A win32/Makefile                      |      22 ++++++++++++++++++++++
         A win32/README                        |       7 +++++++
         A win32/contid.h                      |       9 +++++++++
         A win32/dialogs.rc                    |      58 ++++++++++++++++++++++++++++++
         A win32/filelist                      |      20 ++++++++++++++++++++
         A win32/setup.ico                     |       0 
         A win32/setup.rc                      |       6 ++++++
         A win32/uninstall.rc                  |       1 +
         A win32/zlib/Makefile.nocygwin        |     155 +++++++++++++++++++++++++++++++
         A win32/zlib/README.zlib              |       6 ++++++
       
       11 files changed, 285 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/ChangeLog b/ChangeLog
       t@@ -9,6 +9,7 @@ cvs
              dopewars to overwrite random files writeable by group "games" - use
              the -C option to convert old high score files to the new format
            - GNU long command line options now accepted on platforms with getopt_long
       +    - Simple installer now in place for Win32 systems
        
        1.5.1   19-06-2001
            - Improved logging in server via. LogLevel and LogTimestamp variables
 (DIR) diff --git a/win32/Makefile b/win32/Makefile
       t@@ -0,0 +1,22 @@
       +all: setup makeinstall uninstall
       +
       +setup: setup.o setup.res
       +        gcc -Wall -mno-cygwin -mwindows -o setup setup.o setup.res zlib/libz.a -lcomctl32 -lole32 -luuid
       +
       +uninstall: uninstall.o uninstall.res
       +        gcc -Wall -mno-cygwin -o uninstall uninstall.o uninstall.res 
       +
       +uninstall.o: uninstall.c
       +        gcc -Wall -mno-cygwin -c uninstall.c
       +
       +uninstall.res: uninstall.rc
       +        windres -O coff -o uninstall.res uninstall.rc
       +
       +setup.o: setup.c contid.h
       +        gcc -Wall -mno-cygwin -c setup.c
       +
       +setup.res: setup.rc dialogs.rc contid.h manifest installfiles.gz
       +        windres -O coff -o setup.res setup.rc
       +
       +makeinstall: makeinstall.c
       +        gcc -Wall -mno-cygwin -o makeinstall makeinstall.c zlib/libz.a
 (DIR) diff --git a/win32/README b/win32/README
       t@@ -0,0 +1,7 @@
       +This directory contains the code for a simple Windows install/uninstall
       +package. The "makeinstall" program takes a list of files (in "filelist") to
       +install, and produces a compressed copy of these files, which are placed
       +into the resources of the "setup" program. This program installs the listed
       +files to a target machine, and sets up the necessary registry keys for the
       +"uninstall" program to then be able to remove those files again. The only
       +file that should need to be distributed, therefore, is "setup.exe".
 (DIR) diff --git a/win32/contid.h b/win32/contid.h
       t@@ -0,0 +1,9 @@
       +#define BT_BACK     201
       +#define BT_NEXT     202
       +#define BT_CANCEL   203
       +#define BT_FINISH   204
       +#define BT_BROWSE   205
       +#define ED_LICENCE  206
       +#define ST_FILELIST 207
       +#define ST_COMPLETE 208
       +#define ST_EXIT     209
 (DIR) diff --git a/win32/dialogs.rc b/win32/dialogs.rc
       t@@ -0,0 +1,58 @@
       +#include "contid.h"
       +1 DIALOG 17, 40, 239, 162
       +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
       +CAPTION "dopewars-1.5.2 installation"
       +BEGIN
       +        CONTROL "", 101, "WC_GTKSEP", 2 | WS_CHILD | WS_VISIBLE, 7, 135, 225, 2
       +        CONTROL "< &Back", BT_BACK, "BUTTON", BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_DISABLED | WS_TABSTOP, 105, 143, 39, 13
       +        PUSHBUTTON "&Next >", BT_NEXT, 144, 143, 39, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
       +        PUSHBUTTON "Cancel", BT_CANCEL, 191, 143, 39, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
       +        LTEXT "Welcome to the dopewars-1.5.2 installation program.\nThis program will install dopewars-1.5.2 on your computer.", -1, 22, 14, 195, 17, WS_CHILD | WS_VISIBLE | WS_GROUP
       +        LTEXT "Use the ""Back"" and ""Next"" buttons at the bottom of the dialog to control the installation. You can quit at any time using the ""Cancel"" button.", -1, 22, 51, 195, 25, WS_CHILD | WS_VISIBLE | WS_GROUP
       +        LTEXT "Newer versions of this program, when available, can be obtained from the dopewars website, http://dopewars.sf.net/", -1, 22, 94, 195, 18, WS_CHILD | WS_VISIBLE | WS_GROUP
       +END
       +2 DIALOG 17, 40, 239, 162
       +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
       +CAPTION "License"
       +BEGIN
       +        CONTROL "", 101, "WC_GTKSEP", 2 | WS_CHILD | WS_VISIBLE, 7, 135, 225, 2
       +        PUSHBUTTON "< &Back", BT_BACK, 105, 143, 39, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
       +        PUSHBUTTON "&Next >", BT_NEXT, 144, 143, 39, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
       +        PUSHBUTTON "Cancel", BT_CANCEL, 191, 143, 39, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
       +        LTEXT "dopewars is released under the terms of the GNU General Public License (GPL). Please take a moment to review the terms of this license before continuing.", -1, 22, 14, 195, 25, WS_CHILD | WS_VISIBLE | WS_GROUP
       +        CONTROL "", ED_LICENCE, "EDIT", ES_LEFT | ES_MULTILINE | ES_AUTOVSCROLL | ES_READONLY | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP | WS_VSCROLL, 22, 45, 195, 75
       +END
       +
       +3 DIALOG 17, 40, 239, 162
       +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
       +CAPTION "Installation directory"
       +BEGIN
       +        CONTROL "", 101, "WC_GTKSEP", 2 | WS_CHILD | WS_VISIBLE, 7, 135, 225, 2
       +        PUSHBUTTON "< &Back", BT_BACK, 105, 143, 39, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
       +        PUSHBUTTON "&Next >", BT_NEXT, 144, 143, 39, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
       +        PUSHBUTTON "Cancel", BT_CANCEL, 191, 143, 39, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
       +        LTEXT "dopewars will be installed into the directory given below.", -1, 22, 14, 195, 9, WS_CHILD | WS_VISIBLE | WS_GROUP
       +        LTEXT "To install in this directory, select ""Next"".", -1, 22, 33, 195, 9, WS_CHILD | WS_VISIBLE | WS_GROUP
       +        LTEXT "To install in a different directory, select ""Browse"" and select the desired location.", -1, 22, 51, 195, 18, WS_CHILD | WS_VISIBLE | WS_GROUP
       +        GROUPBOX "Destination directory", 105, 22, 84, 195, 35, WS_CHILD | WS_VISIBLE | WS_TABSTOP
       +        LTEXT "C:\\Windows\\Program Files\\dopewars-1.5.2\\", -1, 28, 100, 142, 8, WS_CHILD | WS_VISIBLE | WS_GROUP
       +        PUSHBUTTON "B&rowse...", BT_BROWSE, 171, 98, 39, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
       +END
       +
       +
       +4 DIALOG 17, 40, 239, 162
       +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
       +CAPTION "Installing..."
       +BEGIN
       +        CONTROL "", 101, "WC_GTKSEP", 2 | WS_CHILD | WS_VISIBLE, 7, 135, 225, 2
       +        CONTROL "< &Back", BT_BACK, "BUTTON", BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_DISABLED | WS_TABSTOP, 105, 143, 39, 13
       +        PUSHBUTTON "&Finish", BT_FINISH, 144, 143, 39, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
       +        CONTROL "Cancel", BT_CANCEL, "BUTTON", BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_DISABLED | WS_TABSTOP, 191, 143, 39, 13
       +        LTEXT "Please wait while all program files are installed.", -1, 22, 14, 195, 12, WS_CHILD | WS_VISIBLE | WS_GROUP
       +        LTEXT "Installing file:", ST_FILELIST, 22, 38, 195, 16, WS_CHILD | WS_VISIBLE | WS_GROUP
       +        LTEXT "dopewars installation is complete. Click the ""Finish"" button to leave the installation program.", ST_COMPLETE, 22, 63, 195, 18, WS_CHILD | WS_GROUP
       +        LTEXT "Don't forget to check the dopewars website, http://dopewars.sf.net/, for further information and for newer versions of this software. Hope you enjoy the game!", ST_EXIT, 22, 92, 195, 26, WS_CHILD | WS_GROUP
       +END
       +
       +mainicon ICON "setup.ico"
       +
 (DIR) diff --git a/win32/filelist b/win32/filelist
       t@@ -0,0 +1,20 @@
       +licence.txt
       +aiplayer.html
       +clientplay.html
       +commandline.html
       +configfile.html
       +credits.html
       +developer.html
       +dopewars-config.txt
       +dopewars.exe
       +example-cfg.txt
       +glib-1.3.dll
       +i18n.html
       +index.html
       +installation.html
       +metaserver.html
       +readme.txt
       +server.html
       +servercommands.html
       +windows.html
       +uninstall.exe
 (DIR) diff --git a/win32/setup.ico b/win32/setup.ico
       Binary files differ.
 (DIR) diff --git a/win32/setup.rc b/win32/setup.rc
       t@@ -0,0 +1,6 @@
       +#include <windows.h>
       +
       +0   INSTLIST  "manifest"
       +1   INSTFILE  "installfiles.gz"
       +
       +#include "dialogs.rc"
 (DIR) diff --git a/win32/uninstall.rc b/win32/uninstall.rc
       t@@ -0,0 +1 @@
       +mainicon ICON "setup.ico"
 (DIR) diff --git a/win32/zlib/Makefile.nocygwin b/win32/zlib/Makefile.nocygwin
       t@@ -0,0 +1,155 @@
       +# Makefile for zlib
       +# Copyright (C) 1995-1998 Jean-loup Gailly.
       +# For conditions of distribution and use, see copyright notice in zlib.h 
       +
       +# To compile and test, type:
       +#   ./configure; make test
       +# The call of configure is optional if you don't have special requirements
       +# If you wish to build zlib as a shared library, use: ./configure -s
       +
       +# To install /usr/local/lib/libz.* and /usr/local/include/zlib.h, type:
       +#    make install
       +# To install in $HOME instead of /usr/local, use:
       +#    make install prefix=$HOME
       +
       +CC=gcc -mno-cygwin
       +
       +CFLAGS=-O
       +#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
       +#CFLAGS=-g -DDEBUG
       +#CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
       +#           -Wstrict-prototypes -Wmissing-prototypes
       +
       +LDFLAGS=-L. -lz
       +LDSHARED=$(CC)
       +CPP=$(CC) -E
       +
       +VER=1.1.3
       +LIBS=libz.a
       +SHAREDLIB=libz.so
       +
       +AR=ar rc
       +RANLIB=ranlib
       +TAR=tar
       +SHELL=/bin/sh
       +
       +prefix = /usr/local
       +exec_prefix = ${prefix}
       +libdir = ${exec_prefix}/lib
       +includedir = ${prefix}/include
       +
       +OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
       +       zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o
       +
       +OBJA =
       +# to use the asm code: make OBJA=match.o
       +
       +DISTFILES = README FAQ INDEX ChangeLog configure Make*[a-z0-9] *.[ch] *.mms \
       +  algorithm.txt zlib.3 msdos/Make*[a-z0-9] msdos/zlib.def msdos/zlib.rc \
       +  nt/Make*[a-z0-9] nt/zlib.dnt amiga/Make*.??? os2/M*.os2 os2/zlib.def \
       +  contrib/RE*.contrib contrib/*.txt contrib/asm386/*.asm contrib/asm386/*.c \
       +  contrib/asm386/*.bat contrib/asm386/zlibvc.d?? contrib/asm[56]86/*.?86 \
       +  contrib/asm[56]86/*.S contrib/iostream/*.cpp \
       +  contrib/iostream/*.h  contrib/iostream2/*.h contrib/iostream2/*.cpp \
       +  contrib/untgz/Makefile contrib/untgz/*.c contrib/untgz/*.w32 \
       +  contrib/minizip/[CM]*[pe] contrib/minizip/*.[ch] contrib/minizip/*.[td]?? \
       +  contrib/delphi*/*.???
       +
       +all: libz.a
       +
       +libz.a: $(OBJS) $(OBJA)
       +        $(AR) $@ $(OBJS) $(OBJA)
       +        -@ ($(RANLIB) $@ || true) >/dev/null 2>&1
       +
       +match.o: match.S
       +        $(CPP) match.S > _match.s
       +        $(CC) -c _match.s
       +        mv _match.o match.o
       +        rm -f _match.s
       +
       +$(SHAREDLIB).$(VER): $(OBJS)
       +        $(LDSHARED) -o $@ $(OBJS)
       +        rm -f $(SHAREDLIB) $(SHAREDLIB).1
       +        ln -s $@ $(SHAREDLIB)
       +        ln -s $@ $(SHAREDLIB).1
       +
       +install: $(LIBS)
       +        -@if [ ! -d $(includedir)  ]; then mkdir $(includedir); fi
       +        -@if [ ! -d $(libdir) ]; then mkdir $(libdir); fi
       +        cp zlib.h zconf.h $(includedir)
       +        chmod 644 $(includedir)/zlib.h $(includedir)/zconf.h
       +        cp $(LIBS) $(libdir)
       +        cd $(libdir); chmod 755 $(LIBS)
       +        -@(cd $(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1
       +        cd $(libdir); if test -f $(SHAREDLIB).$(VER); then \
       +          rm -f $(SHAREDLIB) $(SHAREDLIB).1; \
       +          ln -s $(SHAREDLIB).$(VER) $(SHAREDLIB); \
       +          ln -s $(SHAREDLIB).$(VER) $(SHAREDLIB).1; \
       +          (ldconfig || true)  >/dev/null 2>&1; \
       +        fi
       +# The ranlib in install is needed on NeXTSTEP which checks file times
       +# ldconfig is for Linux
       +
       +uninstall:
       +        cd $(includedir); \
       +        v=$(VER); \
       +        if test -f zlib.h; then \
       +          v=`sed -n '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`; \
       +          rm -f zlib.h zconf.h; \
       +        fi; \
       +        cd $(libdir); rm -f libz.a; \
       +        if test -f $(SHAREDLIB).$$v; then \
       +          rm -f $(SHAREDLIB).$$v $(SHAREDLIB) $(SHAREDLIB).1; \
       +        fi
       +
       +clean:
       +        rm -f *.o *~ libz.a libz.so* foo.gz so_locations \
       +           _match.s maketree
       +
       +distclean:        clean
       +
       +zip:
       +        mv Makefile Makefile~; cp -p Makefile.in Makefile
       +        rm -f test.c ztest*.c contrib/minizip/test.zip
       +        v=`sed -n -e 's/\.//g' -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`;\
       +        zip -ul9 zlib$$v $(DISTFILES)
       +        mv Makefile~ Makefile
       +
       +dist:
       +        mv Makefile Makefile~; cp -p Makefile.in Makefile
       +        rm -f test.c ztest*.c contrib/minizip/test.zip
       +        d=zlib-`sed -n '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`;\
       +        rm -f $$d.tar.gz; \
       +        if test ! -d ../$$d; then rm -f ../$$d; ln -s `pwd` ../$$d; fi; \
       +        files=""; \
       +        for f in $(DISTFILES); do files="$$files $$d/$$f"; done; \
       +        cd ..; \
       +        GZIP=-9 $(TAR) chofz $$d/$$d.tar.gz $$files; \
       +        if test ! -d $$d; then rm -f $$d; fi
       +        mv Makefile~ Makefile
       +
       +tags:        
       +        etags *.[ch]
       +
       +depend:
       +        makedepend -- $(CFLAGS) -- *.[ch]
       +
       +# DO NOT DELETE THIS LINE -- make depend depends on it.
       +
       +adler32.o: zlib.h zconf.h
       +compress.o: zlib.h zconf.h
       +crc32.o: zlib.h zconf.h
       +deflate.o: deflate.h zutil.h zlib.h zconf.h
       +gzio.o: zutil.h zlib.h zconf.h
       +infblock.o: infblock.h inftrees.h infcodes.h infutil.h zutil.h zlib.h zconf.h
       +infcodes.o: zutil.h zlib.h zconf.h
       +infcodes.o: inftrees.h infblock.h infcodes.h infutil.h inffast.h
       +inffast.o: zutil.h zlib.h zconf.h inftrees.h
       +inffast.o: infblock.h infcodes.h infutil.h inffast.h
       +inflate.o: zutil.h zlib.h zconf.h infblock.h
       +inftrees.o: zutil.h zlib.h zconf.h inftrees.h
       +infutil.o: zutil.h zlib.h zconf.h infblock.h inftrees.h infcodes.h infutil.h
       +minigzip.o:  zlib.h zconf.h 
       +trees.o: deflate.h zutil.h zlib.h zconf.h trees.h
       +uncompr.o: zlib.h zconf.h
       +zutil.o: zutil.h zlib.h zconf.h  
 (DIR) diff --git a/win32/zlib/README.zlib b/win32/zlib/README.zlib
       t@@ -0,0 +1,6 @@
       +If you are intending to build the Win32 installer for dopewars, then place
       +the zlib distribution into this directory. The installer expects to
       +statically link with the file libz.a in this directory; the libz.a file
       +included in the Cygwin distribution should _not_ be used, as this requires
       +the CYGWIN.DLL file, which is not a standard Windows DLL. Use the
       +Makefile.nocygwin file to compile zlib, as this adds in the -mno-cygwin flag.