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
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.
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?
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.
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 ]
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.