Page 1 of 2 12>
Topic Options
#43455 - 2003-07-28 07:09 PM Delele Program Group
jhansenjr Offline
Fresh Scripter

Registered: 2002-08-31
Posts: 37
Loc: New Jersey
Can anyone tell me why this script works if I run it manually but not through the actual logon script? The script runs during the login process but it doesn't do anyhting. It just exits. The program was not installed to a common group.

If DelProgramGroup("Sentry Spelling Checker Engine", 0) = 0
?"Spell Checker Program Group Deleted...."
EndIf

Thanks

Top
#43456 - 2003-07-28 07:12 PM Re: Delele Program Group
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11162
Loc: Boston, MA, USA
Check the @ERROR/@SERROR error code, it'll tell you why it fails.
code:
$rc=DelProgramGroup("Sentry Spelling Checker Engine", 0)
? 'Error '+@ERROR+' - '+@SERROR

And take a look at the FAQ Forum!
_________________________
There are two types of vessels, submarines and targets.

Top
#43457 - 2003-07-28 07:19 PM Re: Delele Program Group
jhansenjr Offline
Fresh Scripter

Registered: 2002-08-31
Posts: 37
Loc: New Jersey
Ran your code and did not get any errors. But the program group does not delete.
Top
#43458 - 2003-07-28 07:24 PM Re: Delele Program Group
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Maybe the program group is not available at logon.

Topic: Sequence of events during logon
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#43459 - 2003-07-28 07:24 PM Re: Delele Program Group
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11162
Loc: Boston, MA, USA
You should have at least gotten an 'Error 0 - ...' !
_________________________
There are two types of vessels, submarines and targets.

Top
#43460 - 2003-07-28 07:35 PM Re: Delele Program Group
jhansenjr Offline
Fresh Scripter

Registered: 2002-08-31
Posts: 37
Loc: New Jersey
Any other suggestions?
Top
#43461 - 2003-07-28 07:37 PM Re: Delele Program Group
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Sorry, crystal ball is in the shop now. [Frown]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#43462 - 2003-07-28 07:39 PM Re: Delele Program Group
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Maybe the the problem is somewhere else in your code?
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#43463 - 2003-07-28 07:39 PM Re: Delele Program Group
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11162
Loc: Boston, MA, USA
Recommendation: The most basic of any debugging procedures.

Put a DEBUG ON into the first line of your code and step through it, you'll then see where it'll fail.
_________________________
There are two types of vessels, submarines and targets.

Top
#43464 - 2003-07-28 07:39 PM Re: Delele Program Group
jhansenjr Offline
Fresh Scripter

Registered: 2002-08-31
Posts: 37
Loc: New Jersey
Meaning?
Top
#43465 - 2003-07-28 08:31 PM Re: Delele Program Group
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Meaning that you are not providing enough information for us to help you.

Jens suggested you you check @Error. Instead of reporting back what it returned, you simply said "did not get any errors". The line had to return something but without your co-operation we can't say much more.

I suggested that it may be a "Sequence" issue but you did not acknowledge it let alone describe what you did to disprove it.

So... as you see, without your co-operation, all we have to go by is our crystal balls.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#43466 - 2003-07-28 08:40 PM Re: Delele Program Group
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11162
Loc: Boston, MA, USA
And essential things like reading the KiXtart Manual and the FAQ Forum are normally a given.
_________________________
There are two types of vessels, submarines and targets.

Top
#43467 - 2003-07-28 08:55 PM Re: Delele Program Group
jhansenjr Offline
Fresh Scripter

Registered: 2002-08-31
Posts: 37
Loc: New Jersey
I did read the manual and the example I used from the manual doesn't work. Anyway, the code below works fine.

If Exist ("%USERPROFILE%\Start Menu\Programs\Sentry Spelling Checker Engine")
Shell 'CMD /C RD /s /q "%USERPROFILE%\Start Menu\Programs\Sentry Spelling Checker Engine"'
EndIf

Top
#43468 - 2003-07-28 09:02 PM Re: Delele Program Group
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Just to understand this. The correct usage of the code to return the error is not @error. The function return zero for success and the errorcode if it fails according to the manual.

So could you run this code and tell me what happens?


? "KiXtart version: " +@kix
$rc = DelProgramGroup("Sentry Spelling Checker Engine", 0) = 0
If $rc = 0
? "Spell Checker Program Group Deleted...."
Else
? "DelProgramGroup ERROR: " + $rc
EndIf
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#43469 - 2003-07-28 09:42 PM Re: Delele Program Group
jhansenjr Offline
Fresh Scripter

Registered: 2002-08-31
Posts: 37
Loc: New Jersey
Ok. When I run your code through the script it displays Kixtart Version 4.02 Spell Checker Program Group Deleted.... But it really doesn't delete the group. When I run your code manually I get Kixtart Version 4.02 DelProgramGroup ERROR:1. Running it this way deletes the group.
Top
#43470 - 2003-07-28 09:49 PM Re: Delele Program Group
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Looks to me like you may have found a KiXtart 4.02 bug either in the function or documentation. The 4.21 docs also show it this way. Could you retest using 4.21 to see if the behavior is the same or different?

I am still confused by the fact that your behavior is different inside and outside your script. Without seeing the balance of your code I can't comment any further.

The behavior should be the same.

[ 28. July 2003, 22:02: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#43471 - 2003-07-28 09:53 PM Re: Delele Program Group
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
When you run the code in your other script is it executing in a manual mode or as a logon script during logon?

If it is during logon then you have some OS level thing happening causing the different behavior. You didn't specify what OS you were testing with in any previous post that I saw.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#43472 - 2003-07-28 10:04 PM Re: Delele Program Group
jhansenjr Offline
Fresh Scripter

Registered: 2002-08-31
Posts: 37
Loc: New Jersey
Same exact result with version 4.21.
Top
#43473 - 2003-07-28 10:05 PM Re: Delele Program Group
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11162
Loc: Boston, MA, USA
Is the following registry value implemented: W2k/XP - Keep the Window visible on login?
_________________________
There are two types of vessels, submarines and targets.

Top
#43474 - 2003-07-28 10:08 PM Re: Delele Program Group
jhansenjr Offline
Fresh Scripter

Registered: 2002-08-31
Posts: 37
Loc: New Jersey
The problem occurs with W2k SP3 and WinXP SP1. The only way it works, including your code, is manually. Maybe it is a bug.
Top
Page 1 of 2 12>


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

Who's Online
0 registered and 160 anonymous users online.
Newest Members
GBMicros, Jodey, Hiker, GTRoberts, KatieQuinn
17685 Registered Users

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

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org