#78951 - 2002-06-13 12:13 AM
"error starting program" on Win98
|
ANOA
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
|
|
|
|
#78953 - 2002-06-13 02:55 AM
Re: "error starting program" on Win98
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
well, my guess is that he/she noticed the first posting was a poll 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.
|
|
Top
|
|
|
|
#78955 - 2002-06-13 11:36 AM
Re: "error starting program" on Win98
|
ANOA
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
|
|
|
|
#78957 - 2002-06-13 02:50 PM
Re: "error starting program" on Win98
|
ANOA
Fresh Scripter
Registered: 2002-06-12
Posts: 19
Loc: UK
|
The version on Netlogon is 4.02
|
|
Top
|
|
|
|
#78959 - 2002-06-14 12:40 AM
Re: "error starting program" on Win98
|
ANOA
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
|
|
|
|
#78965 - 2002-06-14 09:29 AM
Re: "error starting program" on Win98
|
ANOA
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
|
|
|
|
#78967 - 2002-06-14 10:04 AM
Re: "error starting program" on Win98
|
ANOA
Fresh Scripter
Registered: 2002-06-12
Posts: 19
Loc: UK
|
Yes, Thanks for pointing that mistake out
|
|
Top
|
|
|
|
#78969 - 2002-06-16 01:27 AM
Re: "error starting program" on Win98
|
MCA
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.
|
|
Top
|
|
|
|
Moderator: ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart
|
0 registered
and 2419 anonymous users online.
|
|
|