code:
 
Hi All.

I have this script that I'm trying to use to run a silent install of Lotus Notes. With WIN98 I receive an msg stating "out of evironment space", but with NT and W2K I don't receive an error msg, it just doesn't install. I tested silent install w/o scripts, and it works just fine, so it must be the script.

Here's the bat that calls the script:

:START
IF EXIST "x:\nodomain.script" goto END
IF "%OS%"=="Windows_NT" GOTO WINNT
IF "%OS%"=="W2K" GOTO WINNT
IF "%OS%"=="XP" GOTO WINNT

:WIN9X
SET KIXDIR=%WINDIR%\KIX
SET KIXSCRIPT=\\test01dc\netlogon\notes.kix
SET KIXVER=KIX362
GOTO COPY

:COPY
IF NOT EXIST %KIXDIR%\NUL MKDIR %KIXDIR%
IF EXIST %KIXDIR%\%KIXVER% GOTO KIXCOPIED
COPY %0\..\KIX32.EXE %KIXDIR% /Y >NUL
COPY %0\..\KX16.DLL %KIXDIR% /Y >NUL
COPY %0\..\KX32.DLL %KIXDIR% /Y >NUL
COPY %0\..\KX95.DLL %KIXDIR% /Y >NUL
:: ECHO. >%KIXDIR%\%KIXVER%

:KIXCOPIED
IF NOT EXIST %KIXDIR%\KIX32.EXE COPY %0\..\KIX32.EXE %KIXDIR% >NUL
IF NOT EXIST %KIXDIR%\KX16.DLL COPY %0\..\KX16.DLL %KIXDIR% >NUL
IF NOT EXIST %KIXDIR%\KX32.DLL COPY %0\..\KX32.DLL %KIXDIR% >NUL
IF NOT EXIST %KIXDIR%\KX95.DLL COPY %0\..\KX95.DLL %KIXDIR% >NUL
GOTO LOGON

IF NOT EXIST %0 GOTO NOEXT
%KIXDIR%\KIX32.EXE %0 $kixscript="%KIXDIR%\KIX32.EXE %KIXSCRIPT%"
GOTO LOGON

:LOGON
\\test01dc\netlogon\KIX32.EXE %kixscript%
GOTO END

:NOEXT
%KIXDIR%\KIX32.EXE %0.BAT $kixscript="%KIXDIR%\KIX32.EXE %KIXSCRIPT%"
GOTO END

:WINNT
\\test01dc\netlogon\KIX32.EXE \\test01dc\netlogon\notes.kix

:END

Here's the kix script:

; Unattended Check and install of Lotus Notes
If SetConsole("hide")
EndIf

;-----------------------------------------------------------------------------------------------
;PC Inventory Script to gather basic user, software and system data, redirects to \\TEST01DC\Common\noteslog
;-----------------------------------------------------------------------------------------------

; Tag Script Start Time and date
$StartTime = @TIME

; ------------- Redirect output ----------------
If RedirectOutput("\\test01dc\Common\noteslog\@wksta.log", 1) = 0
? "Opened '@wksta.log' at " + @TIME ?
EndIf


; ----------- Get Available (Free) Diskspace on C: -------------
$DiskSpace = GetDiskSpace("C:\")

; ----------- Determine CPU Speed ------------------
$mhz=ReadValue("HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0","~MHz")

; ----------- Determine Drive Mappings --------------
Use list
If @ERROR=0
WriteLine(1, "[Connections]")
While $X<>"End of list."
$X=ReadLine(2)
WriteLine(1, $X)
Loop
; ------------ Display Variables and redirect to @wksta.@domain.log -------------
:write
? "--------------------------------------------"
? "System Information"
? "--------------------------------------------"
? "DOMAIN = " @DOMAIN
? "LOGON_SERVER = " @LSERVER
? "WORKSTATION = " @WKSTA
? "USERID = " @USERID
? "FULLNAME = " @FULLNAME
? "PRIVILIDGE = " @PRIV
? "IPADDRESS = " @IPADDRESS0
? "MAC_ADDRESS = " @ADDRESS
? "LOCATION = " $LOCATION
? "OS_VERSION = " $os
? "CPU_SPEED(MHz) = " $mhz
? "FREE_C:\(Bytes) = " $DiskSpace
? "KIX_VERSION = " @KIX
? "KIX_Directory = " @STARTDIR
? "DRIVE_MAPPING = " $X
? "LAST_LOGIN = " @DATE " " @TIME
? ""
;------------ Check to see if Notes is already installed --------------
$Notes="\Lotus\Notes\notes.exe"

If EXIST ($Notes)
Goto End
If $DiskSpace <= 500000
Goto End

Else
MessageBox("Lotus Notes is currently being installed on your PC. There is no user intervention required, please allow 8 minutes for completion.")
Shell "%COMSPEC% /e:1024 /c \\test02dc\notes\drivec.exe"
EndIf

:End

Any help you can give will be much appreciated.

Thx in advance.