Success!!!

The install finally worked. It looks like my messagebox was causing the script not to execute the install. Now I need one more thing:
When I run the script with a PC that has less than the 500MB required, it still tries to run the install. Any suggestions?

code:
 

; 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
$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 @lt;@gt; "End of list."
$X=ReadLine(2)
WriteLine(1, $X)
LOOP
ENDIF
; ------------ 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="c:\Lotus\Notes\notes.exe"

IF EXIST ($Notes) = 0
IF $DiskSpace @gt; 500000
IF $DiskSpace > 500000
; 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:2048 /c \\test02dc\inclient$\Setup.exe -s -f1 setup.iss"
ELSE
; MessageBox("Installation of Lotus Notes is not possible, please contact x5260.")
ENDIF
ENDIF

:End