Page 1 of 1 1
Topic Options
#39862 - 2003-05-03 12:51 AM Running kix on W2k
Stephen Wintle Offline
Seasoned Scripter

Registered: 2001-04-10
Posts: 444
Loc: England
Hello!

Im experiencing problems running kix on wk2, it works fine on my win9x workstations. Also I did the following to get it installing on either 9x or 2000 but kix still dosent seem to install on my wk2 stations:
code:
If @Inwin=1
Copy %0\..\kix32.exe c:\winnt
Copy %0\..\kix32.dll c:\winnt
Copy %0\..\kix16.dll c:\winnt
Endif

If @Inwin=2
Copy %0\..\kix32.exe c:\windows
Copy %0\..\kix32.dll c:\windows
Copy %0\..\kix16.dll c:\windows
Copy %0\..\kix95.dll c:\windows
Endif

Is it something im doing? My login script usally maps drives etc and shows a GUI. Im using kix ver 4.10...

Steve.
_________________________
Dont worry because a rival imitates you. As long as they follow in your tracks they cant pass you!

Top
#39863 - 2003-05-02 01:08 PM Re: Running kix on W2k
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
The copying of the KiXtart binaries can not be done from within a KiXtart script. You need Kixtart to run the script? This should be done in a batch file.

Please review the Kixtart manual again. You only need Kix32.exe for NT and higher. The supporting DLLs are needed for Win9x.

Please see the Kixtart Starter's Guide for sam examples of batchfiles.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#39864 - 2003-05-02 02:36 PM Re: Running kix on W2k
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
The copying of KiX binaries can be done within a KiX script provided the copy of KiX that is running the script is not involved in either side of the copy process. One should use the Netlogon copy of KiX to copy from a separate seed location.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#39865 - 2003-05-02 02:40 PM Re: Running kix on W2k
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Also, only copy KiX95.dll if you use the RPC service.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#39866 - 2003-05-02 02:45 PM Re: Running kix on W2k
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Additionally, by default, Windows NT/2000/XP/2003 prohibits users from writing to most %WINDIR% folders. The DLLs are not neccesary for Windows NT/2000/XP/2003 and only necessary for Windows 9x when used in conjunction with the KiXtart RPC Service.

Finally, the BBS already contains batch files to update clients, please search the board for 'login.bat' and take a look at the FAQ Forum and the KiXtart Manual which also list examples fo login batch files..

[ 02. May 2003, 14:45: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#39867 - 2003-05-02 03:05 PM Re: Running kix on W2k
Stephen Wintle Offline
Seasoned Scripter

Registered: 2001-04-10
Posts: 444
Loc: England
I have installed both kix32.exe and kixforms, yet the script is still crashing on the following script:
code:
BREAK OFF
SETCONSOLE("HIDE")
CLS

If @Inwin=1
Copy %0\..\kix32.exe c:\winnt
Copy %0\..\kix32.dll c:\winnt
Copy %0\..\kix16.dll c:\winnt
Endif

If @Inwin=2
Copy %0\..\kix32.exe c:\windows
Copy %0\..\kix32.dll c:\windows
Copy %0\..\kix16.dll c:\windows
Copy %0\..\kix95.dll c:\windows
Endif


if @inwin = "1"
shell "%COMSPEC% /c Regsvr32 /s %WINDIR%\KiXFORMS.dll"
else
copy %0\..\kixforms.dll c:\winnt\system
shell "%COMSPEC% /c %WINDIR%\System\Regsvr32 /s %WINDIR%\SYSTEM\KiXFORMS.dll"
endif


break on



$Form = createobject("KiXtart.Form")
$Form.Size = 450,300
$Form.Center
$Form.Caption="LOGON SCREEN - Please wait....."
$Form.BackColor = "deepskyblue"
$Form.Fontsize = 8
$Form.Fontbold = 1

$Label1 = $Form.Label("LOADING",130,230,140,80)
$Label1.Fontsize = 12
$Label1.Forecolor = "yellow"

$Multi = $Form.TextBox("",30,30,300,150)
$Multi.MultiLine = true
$Multi.Scrollbars = 3

$i = 0
do
$Groups = $Groups + enumgroup($i) + ","
$i = $i + 1
until len(enumgroup($i)) = 0

$Groups = join(split(left($Groups,len($Groups)-1),","), @crlf)

$Multi.caption = "Hello, " + @fullname + "." + @crlf
+ "The time is " + @TIME + ", and your computer is " + @WKSTA + "." + @crlf
+ "WELCOME TO HOLTE SCHOOL!!" + @crlf + @crlf
+ "You are currently a member of the following groups:" + @crlf + @crlf
+ $Groups

$Image = $Form.Image("\\Dick\c$\WINNT\system32\Repl\Export\Scripts\holte1.bmp",350,30,80,87)

$Form.Show

;----------------- loadKey from LDRIVE ---------------------------------------------
$email = LoadKey("HKEY_CURRENT_USER\Identities", "@LDRIVE\outlook.reg")
If $email = 0
? "key loaded"
Endif
if @inwin = "1"
shell "%COMSPEC% /c Regsvr32 /s %WINDIR%\KiXFORMS.dll"
else
shell "%COMSPEC% /c %WINDIR%\System\Regsvr32 /s %WINDIR%\SYSTEM\KiXFORMS.dll"
endif
;----------------- Syncs time of all stations to login server ------------------------
SETTIME "@LSERVER"
COPY @LDRIVE\HIDDRV.KIX C:\WINDOWS
;----------------- Set the header and the footer in Internet Explorer to read the users name------------------------------
; This helps with printout collection.
$rs=WriteValue ("Software\Microsoft\Internet Explorer\PageSetup", "header", "@FULLNAME&bPage &p of &P", "REG_SZ")
$rs=WriteValue ("Software\Microsoft\Internet Explorer\PageSetup", "footer", "&u", "REG_SZ")
;-------------------------------Change My Computer Name to UserID------------------------
$rs=WriteValue ("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}","","@UserID","REG_SZ")
;-------------------------------Change Network Neighbourhood name------------------------
$rs=WriteValue ("HKEY_CLASSES_ROOT\CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}","","Holte NetWork","REG_SZ")
;-------------------------------Change display after login-------------------------------
$rs=WriteValue ("HKEY_CURRENT_USER\Display\Settings", "Resolution", "800,600", "REG_SZ")
;-------------------------------Change display before login-------------------------------
$rs=WriteValue ("HKEY_LOCAL_MACHINE\Config\0001\Display\Settings", "Resolution", "800,600", "REG_SZ")
;-------------------------------Make Internet Explorer Favorites Personal-------------------------=
$iKey="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"
IF (ExistKey($iKey)=0)
$rs=WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Favorites","H:\Favorites","REG_SZ")
ENDIF
;----------------------Sets central policy file, and deletes cache from local machines-------------------

WriteValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Winlogon", "DeleteRoamingCache", "1","REG_DWORD")
$iKey="HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Update"
IF (ExistKey($iKey)=0)
$rs=WriteValue("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Update", "UpdateMode", "1","REG_DWORD")
$rs=WriteValue("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Update", "NetworkPath", "\\dick\netlogon\config.pol","REG_SZ")
ENDIF
;------------------------------------------------------------------------------------------------


; - mapping drive -
CLS
IF (Exist("h:\NUL") = 1)
USE h: /delete
ENDIF
$nul=DelKey("HKEY_CURRENT_USER\Network\Persistent\H")
USE h: \\DICK\+@userid+"$"
IF (@error <> 0)
$message="** Warning MAPPING "+@error+" for 'H: \\\"+@userid+"$': "+@serror+$eol
GOSUB log_message
ENDIF


$prgProgressBar = $Form.ProgressBar("",30,200,300,15)
For $lProgress = 0 to 100
$prgProgressBar.Value = $lProgress
Sleep 0.05
Next

exit 1

cookie1
EXIT

ive copied the error im getting:

code:
 

Script error: unknown or unexpected command []! Command, <F5>= Go, <Esc>= Quit
$Form.Size = 450,300


Regards
Steve
_________________________
Dont worry because a rival imitates you. As long as they follow in your tracks they cant pass you!

Top
#39868 - 2003-05-02 03:13 PM Re: Running kix on W2k
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
did you miss the part where NT or better OS's do not need ANY dll's??

Did you also miss the part where you cannot copy a file that is being used at the time.

Your error has nothing to do with the above issues, but is probably due to a mismatched quote or parenthesis.

BTW, if you are deploying kix, use 4.12 not 4.10
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#39869 - 2003-05-02 03:13 PM Re: Running kix on W2k
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Steve:

Might actually be time to READ the KiXtart Manual and the FAQ Forum.

First of all, you're mixing batch script and KiXtart script within the same file. Secondly, as we already pointed out to you, you might encounter permissions problems under Windows NT/2000/XP/2003. You also copy DLLs which are not necessary under Windows NT/2000/XP/2003.

Thirdly, please take a look at LOGON.BAT (the overkill version) for an example login batch file. We already told you to look these up on the BBS.

And read the Manual and the FAQ Forum. There are a couple of mistakes in your code. Read for example the FAQ about LOADKEY!

And make yourself familiar with permissions, HKEY_LOCAL_MACHINE requires administrative rights in order to write to it.

[ 02. May 2003, 15:19: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#39870 - 2003-05-02 04:38 PM Re: Running kix on W2k
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
You should also be aware that the "current_user" registry hive doesn't exist on Win9x stations until after logon completes. Catch-22! [Frown]

With Win9x stations, the only way to access the "current user" hive is to split your script in 2 & run the 2nd part accessing the current user hive from the runonce key which runs after the current user hive is activated.
_________________________
Jack

Top
Page 1 of 1 1


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

Who's Online
0 registered and 1636 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.06 seconds in which 0.027 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