Page 1 of 1 1
Topic Options
#88315 - 2002-09-26 06:28 PM KixForms ?
cmarti Offline
Hey THIS is FUN

Registered: 2001-02-26
Posts: 297
Loc: Little Rock, AR
I'm tired of beating my head on the wall w/ this one...

I keep getting this error at the start of the script on a brand new windows 2000 server...

code:
  Script error : unknown command !
$FORM.CAPTION = "Server Utilities Install"

I don't run into any problems registering the dll file from an admin share.

Here's my batch that kicks off the script
code:
  
@ECHO OFF
CLS
REM This will run the Server Config tool to install NAV, Service Packs, RCMD, etc..

:CHECKFORKIX32402
ECHO Checking for kix32.exe file...
If EXIST %WINDIR%\KIX32.EXE goto CHECKFORKIXGUIDLL
ECHO Copying kix32.exe file...
COPY "\\server1\netlogon\cwy\kix32.exe" "%WINDIR%\KIX32.EXE"
COPY "\\server1\netlogon\cwy\kX95.DLL" "%WINDIR%\KX95.DLL"
COPY "\\server1\netlogon\cwy\KX16.DLL" "%WINDIR%\KX16.DLL"

:CHECKFORKIXGUIDLL
ECHO Checking for kixgui.dll file...
If EXIST %WINDIR%\system32\kixgui.dll goto RUNSCRIPT
ECHO Copying kixgui.dll file...
COPY "\\server1\LANBATS$\SCRIPTS\kixgui.dll" "%WINDIR%\system32\kixgui.dll"
ECHO Registering kixgui.dll file...
regsvr32 "%WINDIR%\system32\kixgui.dll"
ECHO.

:RUNSCRIPT
KIX32 \\server1\LANBATS$\SCRIPTS\SRVUTILS.SCR

:THEEND
REM @EXIT

Here's the first few lines of my script..
code:
  
Break On
CLS

$TITLE = SETTITLE("Server Utilites")
;---------------------------Create Form---------------------------------------------------------------
:CREATEFORM
$FORM = CREATEOBJECT("Kixtart.FORM")
$FORM.CAPTION = "Server Utilities Install"
$FORM.SCALEHEIGHT = 330
$FORM.SCALEWIDTH = 700
$FORM.FONTNAME = "Tahoma"
$FORM.FONTSIZE = 9
$FORM.CENTER

HELP!!! [Confused]

Top
#88316 - 2002-09-26 06:32 PM Re: KixForms ?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
put error check right after the createobject line.

it just seems that the dll hasn't registered afterall...
_________________________
!

download KiXnet

Top
#88317 - 2002-09-26 06:35 PM Re: KixForms ?
cmarti Offline
Hey THIS is FUN

Registered: 2001-02-26
Posts: 297
Loc: Little Rock, AR
That was quick [Eek!] ...I'll try that and let you know...
Top
#88318 - 2002-09-26 06:38 PM Re: KixForms ?
cmarti Offline
Hey THIS is FUN

Registered: 2001-02-26
Posts: 297
Loc: Little Rock, AR
This is what I get when I check the error code..

-2147221005 Invalid class string [Confused]

What does that mean?

Top
#88319 - 2002-09-26 06:46 PM Re: KixForms ?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
have you any typelibrary viewer?
there you should see the registered kixforms library.

if you don't then you need to search for kixforms in the registry and see if it really is registered.

I just can't think further from the start:
it is not registered at all or fully...
_________________________
!

download KiXnet

Top
#88320 - 2002-09-26 06:57 PM Re: KixForms ?
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Look in HKEY_CLASSES_ROOT to see if you have a key called "Kixtart.Form"

Also noticed that your regsitering KixGUI and running KixForms.

Top
#88321 - 2002-09-26 07:12 PM Re: KixForms ?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
how I missed that?
didn't even check that part!
 
_________________________
!

download KiXnet

Top
#88322 - 2002-09-26 07:44 PM Re: KixForms ?
cmarti Offline
Hey THIS is FUN

Registered: 2001-02-26
Posts: 297
Loc: Little Rock, AR
OH MY GOD!!! [Eek!] I'm registering kixgui and creating a kixform!!! Pass me the "I'm stupid.." sign so I can hold it up over my head. Geez...Thank both of you for pointing me in the right direction...

I would've kept looking over that...thank you.. [Big Grin]

Top
#88323 - 2002-09-26 07:52 PM Re: KixForms ?
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
You may want to consider adding the /s option to regsvr32 if you want to hide the dialog boxes.

regsvr32 /s "%WINDIR%\system32\kixforms.dll"

Top
#88324 - 2002-09-26 07:58 PM Re: KixForms ?
cmarti Offline
Hey THIS is FUN

Registered: 2001-02-26
Posts: 297
Loc: Little Rock, AR
Thanks, I did think about adding that, but since only domain admins are going to use it so I'll just let the pop up box let them know if it works or not, I don't want to make this script any longer than it already is..

That's lazy isn't it? [Big Grin]

Top
Page 1 of 1 1


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

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

Generated in 0.058 seconds in which 0.024 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