the script is below: we want install a software for the users in special region.
This is the first time I use kixtart. Thanks
Code:
;===============================================================================================
;**** Last Modified on 5/5/2006 at 11:15:29 PM by El ****
;===============================================================================================
;*** Check Region from User Manager Comment Field
$RegionCheck = Lcase(SubStr (@COMMENT, 1, 1))
; Found in User Manager Comment (First Letter)
If InStr($RegionCheck, "m")
;*** Determine which version of windows is installed
$WindowsVersion = $WindowsVersion + SubStr ( @PRODUCTTYPE, 9, Len (@PRODUCTTYPE) )
If @CSD <> ""
$WindowsVersion = $WindowsVersion + " (" + @CSD + ")"
EndIf
;*** If Machine is a server, do not upgrade
If NOT InStr($WindowsVersion, "Server") AND NOT InStr($WindowsVersion, "Domain")
;*** Assign Installation Directory
$HostLocation = "\\OMOF003\Netlogon\"
;*** Run application to install
run "%comspec% /c \\OMOF003\Netlogon\Drade\Ge32.exe /a"
EndIf
EndIf
[Edited by NTDOC to add code tags for formatting]