@set TEMPv=14
@REM set TEMPv=13 - 2009-12-02  - not sure what changed???
@REM set TEMPv=12 - FIX20081024 - added magnify, swish, oval, square, but problems
@REM set TEMPv=11 - FIX20081019 - added color under cursor to status line
@REM set TEMPv=10 - FIX22080720 - avoid multiple error dialogs, sort of - see LASTERR struct ...
@REM set TEMPv=09 - FIX20080316 - fix Window size/pos, and load by sibling ...
@REM set TEMPv=08 - FIX20071201 - improve CLIP sizeing with mouse, and moving ...
@REM set TEMPv=07 - FIX20061106 - in Dell01 using MSVC8
@REM @set TEMPv=06 - FIX20051128 First build in MSVC7.1, and ADDED mouse modification of clip
@set TEMP2=%TEMPB%-%TEMPV%.zip
@set TEMP3=%TEMPB%e%TEMPV%.zip
@if NOT EXIST %TEMP2% goto CREATE
@echo	Update EXISTING ZIP, %TEMP2%, and
@goto DNCHK
:CREATE
@echo	Create NEW ZIP, %TEMP2%, and
:DNCHK
@echo	update the INSTALLED version?
@echo	That is, run ZIPUP.bat and then INST.bat ... Version %TEMPv% ...
@call ask "Enter Y to continue ..., else abort ..."
@if ERRORLEVEL 1 goto DoUpdate
@goto DoNothing

:DoUpdate
@echo	Doing update ...
@if NOT EXIST ZIPUP.BAT goto Err1
@if NOT EXIST INST.BAT goto ERR2
call ZIPUP
call INST
@goto END

:DoNothing
@echo	Update aborted.
@goto END

:Err1
@echo	ERROR: Can NOT locate ZIPUP.BAT ...
@goto END
:Err2
@echo	ERROR: Can NOT locate inst.BAT ...
@goto END

:END
