home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1995 November
/
PCWK1195.iso
/
novell
/
win31
/
powin30
/
sumsc_l.001
/
POSETUP.NNA
< prev
next >
Wrap
Text File
|
1994-12-09
|
2KB
|
77 lines
*----------------------------------------------------------------------------------------
*
* POSETUP.NNA (Script used by NetWare Navigator to install PerfectOffice)
*
* This NetWare Navigator Script is used to install PerfectOffice
* version 3.0 to a client, to act as a WORKSTATION off of a server.
* This script is provided only as a template.
*
* To customize this script, change the "NNWIN SCHED" line below
* to specify the location of the POSETUP.EXE program.
*
* To use this script, a package must be built within Navigator. First, copy
* this file to the NETNAV\PACKAGES directory on the server. Second, specify this
* file to be the script. Third, specify the WAIT.EXE program that was shipped with
* this script to be included in the package contents. Finally, create an user
* list and then distribute the package.
*
* Written by Brian S. Morgan, 28-NOV-1994 11:55:00
*----------------------------------------------------------------------------------------
*
* Check for WIN.COM to exist, simple attempt to locate the MS Windows directory
* If not found then goto error message, Windows is required for POSETUP.
*
%ONERROR :nowindows
%LPATH=WIN.COM
*
* Check for WAIT.EXE in NETNAV receive path
* If not this install would take forever, therefore goto error message.
*
%ONERROR :nowaitexe
%IF EXISTS %RPATH\WAIT.EXE
*
* This is the big kludge, schedule POSETUP event to occur immediately
* if not successful then goto error message.
*
%ONERROR :schederr
NNWIN SCHED ADD POSETUP COM="m:\office\shared\posetup.exe" PAR="/auto=workstation" APP=WINDOWS
*
* Now lets wait and then check to see if POSETUP log file exists
* If no file then stay in the loop.
*
:LOOP
%RPATH\WAIT.EXE 5
%ONERROR :LOOP
%IF EXISTS %lpath\posetup.log
*
* If POSETUP flag file exists then type out the log and then delete it.
*
TYPE %lpath\posetup.log
NNDEL %lpath\posetup.log
*
* Before exiting, deschedule the POSETUP event.
*
%ONERROR :deschederr
NNWIN SCHED REMOVE POSETUP
%LOGMSG SUCCESS, POSETUP completed successfully.
%EXIT 0
:SCHEDERR
%LOGMSG ERROR, POSETUP failed to schedule POSETUP event.
%EXIT 1000
:DESCHEDERR
%LOGMSG WARNING, POSETUP failed to deschedule POSETUP event.
%EXIT 1001
:NOWINDOWS
%LOGMSG ERROR, POSETUP installation failed, no MS-Windows found.
%EXIT 1002
:NOWAITEXE
%LOGMSG ERROR, POSETUP installation has no wait program (WAIT.EXE).
%EXIT 1003