Page 1 of 1 1
Topic Options
#161754 - 2006-05-08 05:14 PM can anybody help me to check this script to see if it has any mistakes? tha
hikingauto Offline
Lurker

Registered: 2006-05-08
Posts: 4
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]


Edited by NTDOC (2006-05-08 07:15 PM)

Top
#161755 - 2006-05-08 05:30 PM Re: can anybody help me to check this script to see if it has any mistakes? tha
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
InStr() will find in any position. You may want to use Left() instead.
Please use code tags in the future to preserve indenting.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 927 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.091 seconds in which 0.063 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org