Page 1 of 1 1
Topic Options
#3864 - 2000-08-23 12:37 AM KIX32 Not Responding
Anonymous
Unregistered


On a given machine KIX32 runs fine when called from within the logon script. However, on the same machine, once inside WINDOWS, and when called from a different batch file, KIX32 seems to hang and cause the machine to lock up. Any ideas?
Top
#3865 - 2000-08-23 01:01 AM Re: KIX32 Not Responding
BoxKite Offline
Da Box
*****

Registered: 2000-05-17
Posts: 282
Loc: Vacaville,CA,USA
Are you using Win9x?

If so, it may be a problem that during logon, Kixtart can find the 16 Bit dll's (i.e. NETLOGON), but when called from another batch file, there is no pointer to the 16 Bit dll's.

or

Using NT I have sometimes found that using the %0\..\ in a batch file from the local hard drive will not work. In those cases I use \\servername\netlogon\kix32.exe to point to the kixtart program file.

I do most of my script testing in my C:\temp location. As such, my batch file looks like this:

code:
Echo off
\\servername\netlogon\kix32.exe test1.kix

Luck

------------------
BoxKite
FACTA NON VERBA

_________________________
Box
FACTA NON VERBA

Top
#3866 - 2000-08-23 04:06 PM Re: KIX32 Not Responding
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
A way I get around this is by copying the kix32.exe and necessary dll's to the %windir%\system or %windir%\system32 directory(depending on OS type).


Here is my logon.bat file that I use to do this for me.

code:

@Echo Off

CLS
ECHO Verifying / Updating Script Software Installation, Please Wait...

IF "%OS%" == "Windows_NT" GOTO WinNT

%windir%\command\XCOPY %0\..\KIX32.EXE %WINDIR%\SYSTEM\ /D /H /I /R /V > NUL
%windir%\command\XCOPY %0\..\KX16.DLL %WINDIR%\SYSTEM\ /D /H /I /R /V > NUL
%windir%\command\XCOPY %0\..\KX32.DLL %WINDIR%\SYSTEM\ /D /H /I /R /V > NUL
%windir%\command\XCOPY %0\..\KX95.DLL %WINDIR%\SYSTEM\ /D /H /I /R /V > NUL
ECHO Loading Logon Script, Please Wait...
%windir%\system\kix32.exe %0\..\logon.kix
GOTO End

:WinNT
XCOPY %0\..\KIX32.EXE %WINDIR%\SYSTEM32\ /D /H /I /R /V > NUL
ECHO Loading Logon Script, Please Wait...
%WINDIR%\SYSTEM32\KIX32.EXE %0\..\logon.KIX
GOTO end

:End


Bryce

[This message has been edited by Bryce (edited 23 August 2000).]

Top
#3867 - 2000-08-23 05:48 PM Re: KIX32 Not Responding
Anonymous
Unregistered


Thank you both for responding. We are using both Windows 95 and NT clients, however, I have only seen this behaviour on Windows 95, and only a minute percentage of clients exhibit this behaviour. Kixtart should be able to find the 16 bit dlls because we have added the location of kixtart to each clients path through an entry in the autoexec.bat file. (eg: path =c:\windows;c:\windows\system;y:\util;y:\batch) where y:\util is the location of kix files. I have also tried copying the kix files down to the local hard drive, but the problem still exists. As soon as kix32 is called, it immediately hangs. How about the kxrpc.exe? Could this executable have anything to do with what's going on?

Many thanks for all your input.

Top
#3868 - 2000-08-23 05:58 PM Re: KIX32 Not Responding
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
could you post the code?

Bryce

Top
#3869 - 2000-08-23 06:44 PM Re: KIX32 Not Responding
BoxKite Offline
Da Box
*****

Registered: 2000-05-17
Posts: 282
Loc: Vacaville,CA,USA
Take a look at page 9 of the KIXtart95 manual. I don't think adding the dll's to the path will work. You should be running KIXRPC and you need a KXRPC Environment Variable set. You can tell if the variable is set by loging on to one of the offending Win95 machines and going to the MSDOS prompt. Type set | more. If you see kxrpc then the script should work.

Go with Bryce the man;
if he can't help you;
no one can.

_________________________
Box
FACTA NON VERBA

Top
#3870 - 2000-08-23 07:03 PM Re: KIX32 Not Responding
Anonymous
Unregistered


It's not that the script doesn't work...the script works fine on 98% of our clients - clients that have kixtart dlls in the path.

The following code is an automated install for Netscape Communicator. The code gets executed when users click on a netscape shortcut we have placed in the start menu... (Remember: 1.)kix32 ran just fine during the logon script and kix32 dlls are defined in the path 3.) This install works seamlessly for 98% of our machines)

@echo off
rem set _INST_APP=Netscape Communicator 4.7
set _INST_RNAME=Netscape47
rem set _INST_DRIVE=X:
rem set _INST_PATH=X:\Source\Netscape47
set _INST_VER=1

if "%1" == "-h" goto help
if "%1" == "-H" goto help

if "%1" == "FORCE" goto continue

rem kix32 Y:\Util\PFCregck.SCR $MODE=QUERY $ITEM=%_INST_RNAME% $VERSION=%_INST_VER%
rem if errorlevel 1 goto continue
rem goto installed

:continue
kix32 Y:\Util\PFCregck.SCR $MODE=QUERY $ITEM=rmNetscape461 $VERSION=1
if errorlevel 1 goto oldnetscape

:start
echo Installing Netscape Communicator 4.7 (%_INST_VER%)...

mkdir c:\temp
mkdir c:\temp\nscache
xcopy "X:\Source\Netscape47\Plugins\*.*" C:\temp

if "%OS%" == "Windows_NT" goto winnt_1

C:
X:\Source\Netscape47\source95\setup.exe

:win95_1
kill95 |find /i "X:\SOURCE\NETSCA~1\source95\SETUP.EXE"
if errorlevel 1 goto win95_2
sleep 10
goto win95_1

:win95_2
kill95 |find /i "X:\SOURCE\NETSCA~1\source95\_ISDEL.EXE"
if errorlevel 1 goto custom
sleep 10
goto win95_2

:winnt_1
C:
X:\Source\Netscape47\sourceNT\setup.exe
xcopy /C "X:\Source\Netscape47\tlist.exe" C:\Winnt
goto winnt_2

:winnt_2
sleep 8
tlist |find /i "_INS0432._MP"
if %errorlevel% EQU 0 goto winnt_2
goto custom
kix32 Y:\UTIL\WINMSG.SCR $MESSAGE="Your Netscape Navigator web browser needs upgrading. Please contact the Informatics group... Thank you!"
goto done

:custom
echo Copying files...
for /d %%i in ("%USERPROFILE%\start menu\programs\netscape*") do rmdir /s /q "%%i"
for /d %%i in ("%systemroot%\profiles\all users\start menu\programs\netscape*") do rmdir /s /q "%%i"
deltree /Y "c:\windows\startm~1\programs\netscape*.*"
deltree /Y "c:\windows\startm~1\netscape*.*"
del "c:\progra~1\netscape\commun~1\program\talkback.*"
mkdir "C:\Downloads"
xcopy /S /C /H /K "C:\_Navplug" "c:\progra~1\netscape\commun~1\program\plugins"
xcopy /S /C /H /K "C:\_Complug" "c:\progra~1\netscape\commun~1\program\plugins"
del "C:\Winnt\Profiles\All Users\Desktop\netscape*.lnk"
del "p:\explorer\desktop\netscape*.lnk"
del "p:\explorer\desktop\aolins~1.lnk"
rem del "C:\_Navplug"
rem del "C:\_Complug"

kix32 Y:\Util\PFCregck.SCR $MODE=ADD $ITEM=%_INST_RNAME% $VERSION=%_INST_VER% $VALUE=_SYSTEM_DATE
kix32 Y:\util\PFCuplog.scr $ITEM=Netscape $VERSION=%_INST_VER%
goto done

:installed
goto done

ldnetscape
kix32 Y:\util\winmsg.scr $MESSAGE="There was a problem updating your netscape. Please contact the informatics group"
kix32 Y:\util\PFCuplog.scr $ITEM=!Netscape47-RMOLD $VERSION=%_INST_VER%
goto done


:done
echo done

Thanks again!

Top
#3871 - 2000-08-23 07:48 PM Re: KIX32 Not Responding
Anonymous
Unregistered


Here's the kixtart script code:

PFCregck:

; Registry check script
; Variables passed to program
$INTVER="1.1"

; $MODE Action to perform
; $ITEM Registry entry to check
; $VERSION Value to check against
; $VALUE
;
; program returns 1 is value is correct, 0 if not

; Make sure proper variables were passed to the system
;
if ($MODE = "" OR $ITEM = "" OR $VERSION = "")
goto "help"
endif

; pad the $VERSION to four digits
;
$VERSION = "" + $VERSION
:loop1
If len($VERSION) < 3
$VERSION = "0" + $VERSION
goto loop1
Endif

if $MODE = "QUERY"
goto "queryreg"
else
if $MODE = "ADD"
goto "addreg"
else
if $MODE = "REMOVE"
goto "removereg"
endif

goto "help"

:queryreg
$Exist = ReadValue("HKEY_LOCAL_MACHINE\Software\PFC Informatics",$ITEM +"."+ $VERSION)
If @ERROR = 0
EXIT 0
else
EXIT 1
endif
goto "done"


:addreg
IF ($VALUE = "" OR $VALUE="_SYSTEM_DATE")
$VALUE="@DATE @TIME"
endif

$Exist = ExistKey("HKEY_LOCAL_MACHINE\Software\PFC Informatics")
if $Exist > 0
$Error = AddKey("HKEY_LOCAL_MACHINE\Software\PFC Informatics")
if $Error > 0
EXIT 1
endif
endif
$Error = WriteValue("HKEY_LOCAL_MACHINE\Software\PFC Informatics",$ITEM +"."+ $VERSION,"$VALUE","REG_SZ")
If $Error = 0
EXIT 0
Else
EXIT 1
Endif
goto "done"


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 1046 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.053 seconds in which 0.023 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