Page 1 of 1 1
Topic Options
#78951 - 2002-06-13 12:13 AM "error starting program" on Win98
ANOA Offline
Fresh Scripter

Registered: 2002-06-12
Posts: 19
Loc: UK
After upgrading to kix402 a dialogue pops up with the following message:

Title: Error Starting Program
Message: A required .DLL file, Z:\KIX32.EXE, was not found.

I was running KIX363 in emulation mode on Win98. I replaced the original Lmscript.exe and used kix402update.exe to update.

I tried replacing IPHLPAPI.DLL from Mobile95.cab of IE55 to no avail

I specify kixlogin in User Manager

***kixlogin.bat
@echo off
if not exist %windir%\kix402.ok %0\..\kix402update.exe /q
if not exist %windir%\kix402.ok goto networklogin
%windir%\kix32 %0\..\kixlogin.kix

:networklogin
%0\..\KIX32 %0\..\kixlogin.kix
exit
_________________

***kixlogin.kix
****;Version info only - Move Comments to bottom of script
$Version="31.05.2002-17.59"

Break Off
If Exist ("%windir%\kix402.ok") = 0
@SCRIPTDIR + "\kix402update.exe /q"
EndIf

If Exist ("C:\WINDOWS\SYSTEM\LMSCRIPT.EXE")
$LMVER = GetFileVersion ("C:\WINDOWS\SYSTEM\LMSCRIPT.EXE",InternalName)
If InStr ($LMVER, "KIX")
Copy "@SCRIPTDIR\Configs\lmscript\Lmscript.exe" "%windir%\Lmscript.nat"
WriteValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run","NLMSCRIPT",'command.com /c copy "%windir%\Lmscript.nat" "C:\WINDOWS\SYSTEM\LMSCRIPT.EXE" /Y',"REG_SZ")
$ExitMessage = MessageBox ("Your machine is being updated in order run new logon scripts. Please logoff and log back on for the new logon scripts to take effect", "Configuring machine for new logon scripts...", 016, 10)
Cookie1
Exit
Else
DelValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run","NLMSCRIPT")
Del "%windir%\Lmscript.nat"
EndIf
EndIf

$Product = @PRODUCTTYPE ; New macros version 4.02
$Suite = @PRODUCTSUITE

? "@startdir"

If Exist (c:\debuglog.flg) = 1
Debug On
EndIf

:DATETIME ;Set up date and time variables for logging functions
$DD = @mdayno
If Len("$DD") = 1
$DD = "0" + $DD
EndIf
$MM = @monthno
If Len("$MM") = 1
$MM = "0" + $MM
EndIf
$YYYY = @year
$date = "$DD/$MM/$YYYY"
$time = SubStr(@time,1,5)
:ENDDATETIME

Select
Case $product = "Windows NT Server" OR $product = "Windows NT Domain Controller" OR $product = "Windows 2000 Server" OR $product = "Windows 2000 Domain Controller" OR $product = "Windows .Net Server" OR $product = "Windows .Net Domain Controller" OR $suite > 0
$ExitMessage = MessageBox ("Your account is not configured to allow the running of a login script on Server products", "Exiting Login script process ...", 016, 3)
Exit
Case $product = "Windows Me" OR $product = "Windows 2000 Professional" OR $product = "Windows XP Home Edition" OR $product = "Windows XP Professional"
$ExitMessage = MessageBox ("Your account is not configured to allow the running of a login script on this type of Operating System", "Non Supported Product Type - Exiting Login script process ...", 016, 3)
Exit
Case $product = "Windows 95" OR $product = "Windows 98"
Goto Commonstart
Case $product = "Windows NT Workstation"
;**** Machine Environment variable i.e. GCC image does not have ?
If "%BusinessUnit%"="IT"
$ExitMessage = MessageBox ("Image to Account mismatch", "Exiting Login script process ...", 016, 3)
Exit
EndIf
Goto Commonstart
EndSelect

:Commonstart

SetTime "\\GBCWCOM1D002"

$BU = "NoBU" ; Business Unit Check only and carry over to site.bat

Select
Case InGroup ("Business2k") ; Is this Business Unit Still necessary
$BU = "IT"
$Dlevelscript = "2k.kix" ;Currently 2k.bat
Case InGroup ("BusinessBI")
$BU = "Bi"
$Dlevelscript = "bi.kix" ;Currently bi.bat
Case InGroup ("BusinessBS")
$BU = "Bs"
$Dlevelscript = "bs.kix" ;Currently bs.bat
Case InGroup ("BusinessCC")
$BU = "CC"
$Dlevelscript = "cc.kix" ;Currently cc.bat
Case InGroup ("BusinessCP")
$BU = "CP"
$Dlevelscript = "cp.kix" ;Currently cp.bat
Case InGroup ("BusinessCS")
$BU = "CS"
$Dlevelscript = "cs.kix" ;Currently cs.bat
Case InGroup ("BusinessFN")
$BU = "FN"
$Dlevelscript = "fn.kix" ;Currently fn.bat
Case InGroup ("BusinessHR")
$BU = "HR"
$Dlevelscript = "hr.kix" ;Currently hr.bat
Case InGroup ("BusinessIP")
$BU = "IP"
$Dlevelscript = "ip.kix" ;Currently ip.bat
Case InGroup ("BusinessIT")
$BU = "IT"
$Dlevelscript = "it.kix" ;Currently it.bat
Case InGroup ("BusinessLG")
$BU = "LG"
$Dlevelscript = "lg.kix" ;Currently lg.bat
Case InGroup ("BusinessOP")
$BU = "OP"
$Dlevelscript = "op.kix" ;Currently op.bat
EndSelect

If $BU <> "NoBU"
ReDirectOutput ("H:\BUOK.TXT",1) = 1
? "Membership of Business Unit is OK"
ReDirectOutput ("") = 1
Else
ReDirectOutput ("\\gbcwcom1sw02\logs$\gbcwcom1\NoBU\@USERID.txt",1) = 1
? @address + "~" + @wksta + "~" + $OS + "~" + $GetVersion + "~" + @ipaddress0 + "~" + @userid + "~" + @fullname + "~" + $date + "~" + $time + "~" + @domain
ReDirectOutput ("") = 1
$ExitMessage = MessageBox ("Your account is not configured with a Business Unit Group. Please contact the helpdesk on 7774 and inform that your Domain logon account does not have a Business Unit assigned to it.", "No Business Unit ...", 016, 20)
Exit
EndIf

$Site = "Nosite"

Select
Case InGroup ("SITEAPO") ; Think about taking users out of this group i.e. No customers at this site
$Site = "SITEAPO"
;**** - Case ingroup ("SITEBAG") 1 User needs to be moved to SITEWAR1 or similar
;**** - $Site = "SITEBAG"
Case InGroup ("SITEBCO")
$Site = "SITEBCO"
Case InGroup ("SITEBEQ")
$Site = "SITEBEQ"
Case InGroup ("SITEBLE")
$Site = "SITEBLE"
Case InGroup ("SITEBLF")
$Site = "SITEBLF"
Case InGroup ("SITEBRK1")
$Site = "SITEBRK1"
Case InGroup ("SITEBRK2")
$Site = "SITEBRK2"
Case InGroup ("SITEBRT1")
$Site = "SITEBRT1"
;**** - Case ingroup ("SITEBRT2") Users need to be moved to SITEBRT1
;**** - $Site = "SITEBRT2"
Case InGroup ("SITEBRT3")
$Site = "SITEBRT3"
Case InGroup ("SITEBSH")
$Site = "SITEBSH"
;**** - Case ingroup ("SITEDOC") 1 User needs to be moved to SITERLS or similar
;**** - $Site = "SITEDOC"
Case InGroup ("SITEDUB")
$Site = "SITEDUB"
Case InGroup ("SITEGCC")
$Site = "SITEGCC"
;**** - Case ingroup ("SITEGLB1") 1 User needs to be moved to SITEGLB2
;**** - $Site = "SITEGLB1"
Case InGroup ("SITEGLB2")
$Site = "SITEGLB2"
Case InGroup ("SITELAC") ; Think about taking users out of this group i.e. No customers at this site
$Site = "SITELAC"
;**** - Delete SITELAN Group - Only IBMers left in
;**** - Case ingroup ("SITELEE") Users need to be moved to SITEWAR1 or similar
;**** - $Site = "SITELEE"
;**** - Case ingroup ("SITELEW1") Users need to be moved to SITERLS or similar
;**** - $Site = "SITELEW1"
;**** - Case ingroup ("SITEMNW") Users need to be moved to SITEGCC
;**** - $Site = "SITEMNW"
;**** - Case ingroup ("SITEMSH") 1 User needs to be moved to SITEWAR1 or similar
;**** - $Site = "SITEMSH"
Case InGroup ("SITERKS")
$Site = "SITERKS"
Case InGroup ("SITERLS")
$Site = "SITERLS"
Case InGroup ("SITESMH")
$Site = "SITESMH"
;**** - Delete SITESSX Group - Only IBMers left in
;**** - Delete SITESWA1 Group - Only IBMers left in
Case InGroup ("SITESWI")
$Site = "SITESWI"
Case InGroup ("SITEWAR1")
$Site = "SITEWAR1"
Case InGroup ("SITEWAR2")
$Site = "SITEWAR2"
Case InGroup ("SITEWAT")
$Site = "SITEWAT"
Case InGroup ("SITEWBP")
$Site = "SITEWBP"
Case InGroup ("SITEWEA")
$Site = "SITEWEA"
;**** - Case ingroup ("SITEWTR") Users need to be moved to SITEBRT1 or similar
;**** - $Site = "SITEWTR"
EndSelect

If $Site <> "Nosite"
Call @scriptdir + "\Site.kix"
Else
ReDirectOutput ("\\gbcwcom1sw02\logs$\gbcwcom1\Nosite\@USERID.txt",1) = 1
? @address + "~" + @wksta + "~" + $OS + "~" + $GetVersion + "~" + @ipaddress0 + "~" + @userid + "~" + @fullname + "~" + $date + "~" + $time + "~" + @domain
ReDirectOutput ("") = 1
$ExitMessage = MessageBox ("Your account is not configured with a Site Group. Please contact the helpdesk on 7774 and inform that your Domain logon account does not have a Site Group assigned to it.", "No Site Group ...", 016, 20)
Exit
EndIf

:NTstart
If ($product = "Windows NT Workstation")

EndIf
:NTend

:9xstart
If ($product = "Windows 95" OR $product = "Windows 98") ; Map H-drive for Win9x clients

If @homeshr <> ""
Use H: /d
Use H: @homeshr
EndIf

;**** - if exist c:\network.reg del c:\network.reg
;**** - START /MIN %0\..\PATCHME.BAT 95
EndIf
:9xend

:AVstart
Call @scriptdir + "\Av.kix"
:AVend

:Wsfixesstart
Call @scriptdir + "\Wsfixes.kix"
:Wsfixesend

:Quickfixwsstart
Call @scriptdir + "\Quickfixws.kix"
:Quickfixwend

if ($product = "Windows 95" OR $product = "Windows 98")
cookie1
endif

Exit
;Ensure that @lDomain is not used unless on NT

Any ideas ? on why I am receiving this error

Top
#78952 - 2002-06-13 02:47 AM Re: "error starting program" on Win98
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Are you trying to double your chances of an answer?

4.02 is no longer in beta so this really should have not been posted to this forum.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#78953 - 2002-06-13 02:55 AM Re: "error starting program" on Win98
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
well, my guess is that he/she noticed the first posting was a poll [Eek!] and posted again as a message.

So 1/3 point for noticing the mistake. Would have been 2/3 had he/she actually deleted the poll.

A full point had this been actually in the correct forum.

However, bonus points need to be awarded, due to actually stating the error AND posting the code AND unsucessful T/S steps had been attempted.

So I rate the overall effort as 1 1/3 out of 2.
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#78954 - 2002-06-13 10:00 AM Re: "error starting program" on Win98
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ANOA,
so have you tried locate the problem?
it says that it can't locate kix32.exe in the error...
_________________________
!

download KiXnet

Top
#78955 - 2002-06-13 11:36 AM Re: "error starting program" on Win98
ANOA Offline
Fresh Scripter

Registered: 2002-06-12
Posts: 19
Loc: UK
Sorry all.....this was my first time!!! I'll give myself 0/3 and let's start again.

May I rephrase the question as:

What would generate a dialogue box with Title=Error Starting Program and Message=A required .DLL file, Z:\KIX32.EXE, was not found.
The dialogue box contains the yellow warning sign.

The script is running in the first place so it must no where KIX32.EXE is, do I presume that some new function in 4.02 requires a DLL I don't have.

As mentioned I tried replacing IPHLPAPI.DLL from Mobile95.cab of IE55 to no avail

Top
#78956 - 2002-06-14 12:03 AM Re: "error starting program" on Win98
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
uttleast add one line to prevent executing both:
code:
***kixlogin.bat
@echo off
if not exist %windir%\kix402.ok %0\..\kix402update.exe /q
if not exist %windir%\kix402.ok goto networklogin
%windir%\kix32 %0\..\kixlogin.kix
exit

:networklogin
%0\..\KIX32 %0\..\kixlogin.kix
exit

without the other exit it will also try to run the networklogin.

what is the version of the kix on the network share? and the dll's...
_________________________
!

download KiXnet

Top
#78957 - 2002-06-13 02:50 PM Re: "error starting program" on Win98
ANOA Offline
Fresh Scripter

Registered: 2002-06-12
Posts: 19
Loc: UK
The version on Netlogon is 4.02
Top
#78958 - 2002-06-13 06:33 PM Re: "error starting program" on Win98
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Make sure that the NETLOGON folder also contains all KiXtart DLLs. Might help.
_________________________
There are two types of vessels, submarines and targets.

Top
#78959 - 2002-06-14 12:40 AM Re: "error starting program" on Win98
ANOA Offline
Fresh Scripter

Registered: 2002-06-12
Posts: 19
Loc: UK
Netlogon and local 98 machine have all 402 files?

Any word on what initiates the dialogue box?

Top
#78960 - 2002-06-14 12:48 AM Re: "error starting program" on Win98
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
In your KiXLogin.bat, do you have anything between the two following lines?

%windir%\kix32 %0\..\kixlogin.kix

:networklogin

If not, then you are first running KiX from %windir% and then running it again from NetLogon.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#78961 - 2002-06-14 01:00 AM Re: "error starting program" on Win98
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
les, thank you for repeating...
you never know how many times it needs to be said...
last one took three from me and if I recall correctly, one from jens before being actually read.
_________________________
!

download KiXnet

Top
#78962 - 2002-06-14 01:03 AM Re: "error starting program" on Win98
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Helps our post count too. [Wink]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#78963 - 2002-06-14 01:30 AM Re: "error starting program" on Win98
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Do you actually need to replace LMSCRIPT.EXE with KIX32.EXE if you still use a LOGON.BAT file?

It seems that's what ANOA wrote. [Confused]

[ 14 June 2002, 01:31: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#78964 - 2002-06-14 01:45 AM Re: "error starting program" on Win98
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
that was actually what I was wondering about too when posting my first reply but then figured, "no, he can't mean that. he probably is saying that he uses the original with it's replacement original..."

didn't want to believe it, but now you said it.

{edit}
wow, look the magic post count.
now I can take a break.

[ 14 June 2002, 01:46: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#78965 - 2002-06-14 09:29 AM Re: "error starting program" on Win98
ANOA Offline
Fresh Scripter

Registered: 2002-06-12
Posts: 19
Loc: UK
Hhmmm!!! "I was running KIX363 in emulation mode on Win98. I replaced the original Lmscript.exe and used kix402update.exe to update."

Guys you are right, the above could be misleading. I am not using emulation now, I was but have decided to get rid of this for update purposes. Using an Iexpress package however I am runing kix32.exe (and all dll's before someone asks!) from %windir% on the local Win98 machine.

Top
#78966 - 2002-06-14 09:38 AM Re: "error starting program" on Win98
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
did you change the bat allready?
_________________________
!

download KiXnet

Top
#78967 - 2002-06-14 10:04 AM Re: "error starting program" on Win98
ANOA Offline
Fresh Scripter

Registered: 2002-06-12
Posts: 19
Loc: UK
Yes, Thanks for pointing that mistake out
Top
#78968 - 2002-06-14 10:21 AM Re: "error starting program" on Win98
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
mmm....

did this solve the problem?
_________________________
!

download KiXnet

Top
#78969 - 2002-06-16 01:27 AM Re: "error starting program" on Win98
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Also welcome to the board.

The kix402update.exe package is the final release of KiXtart 4.02.
We advise you: don't run it from a kixtart script. The problem is that
the possible files to replace are in use, which results in an incorrrect
kixtart version on your clients.

A good one is indeed your BATch file.
code:
@echo off
if not exist %windir%\kix402.ok %0\..\kix402update.exe /q
if not exist %windir%\kix402.ok goto networklogin
kix32 %0\..\kixlogin.kix
goto end
:networklogin
%0\..\kix32 %0\..\kixlogin.kix
:end
exit
@echo off

only in your version the script can be running twice. we are
missing the goto end part.
Lonkero solve it with an additional exit statement.
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
Page 1 of 1 1


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

Who's Online
0 registered and 1179 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

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