Please forgive me...Im still new to scripting. What does...
"run the code with the splitted lines?"
mean? This is all of the code in the script.
code:
SETCONSOLE("show")
$ProgramFilesDir=ReadValue ("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion", "ProgramFilesDir")
$ICAVer=GETFILEVERSION ("$ProgramFilesDir\citrix\icaweb32\wfica.ocx")
IF @ProductType="Windows 2000 Professional" OR @ProductType="Windows XP Professional"
IF $ICAVer<>"6.30.1050"
IF @Priv<>"ADMIN"
RUN "%COMSPEC% /c runas /user:DOMAIN\username %logonserver%\netlogon\ica32t.exe"
sleep 2
SENDKEYS ("password")
SENDKEYS ("{ENTER}")
ELSE
RUN "%logonserver%\netlogon\ica32t.exe"
ENDIF
ENDIF
ENDIF
IF @ProductType="Windows NT Workstation" OR @ProductType="Windows 95" OR @ProductType="Windows 98" OR @ProductType="Windows ME"
IF $ICAVer<>"6.30.1050"
RUN "%logonserver%\netlogon\ica32t.exe"
ENDIF
ENDIF
SETCONSOLE("hide")