Page 1 of 1 1
Topic Options
#172637 - 2007-01-10 07:24 PM I'M TRYING TO UNINSTALL A PROGRAM BUT THIS SCRIPT WONT RUN...PLEASE HELP...
selormquarshie Offline
Getting the hang of it

Registered: 2006-12-24
Posts: 85

:Relationuninstall
If KeyExist ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Relationship 98")
Call '%ComSpec% /c %systemroot%\IsUninst.exe -y -f"C:\Program Files\Pivotal\Relationship\Uninst.isu" >NUL 2>NUL'
Sleep 6
Shell "\\william\admin\users\Office 2003 Removal Wizard\kill.exe -f isuninst.exe"
EndIf

Top
#172640 - 2007-01-10 07:52 PM Re: I'M TRYING TO UNINSTALL A PROGRAM BUT THIS SCRIPT WONT RUN...PLEASE HELP... [Re: selormquarshie]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
CALL is for CALLing scripts, not programs.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#172642 - 2007-01-10 08:07 PM Re: I'M TRYING TO UNINSTALL A PROGRAM BUT THIS SCRIPT WONT RUN...PLEASE HELP... [Re: Les]
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
use shell
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#172643 - 2007-01-10 08:43 PM Re: I'M TRYING TO UNINSTALL A PROGRAM BUT THIS SCRIPT WONT RUN...PLEASE HELP... [Re: Radimus]
selormquarshie Offline
Getting the hang of it

Registered: 2006-12-24
Posts: 85
this doesn't seem to be debugging correctly......

:Relationuninstall
If KeyExist ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Relationship 98")
Shell '%ComSpec% /c %systemroot%\IsUninst.exe -y -f"C:\Program Files\Pivotal\Relationship\Uninst.isu" >NUL 2>NUL'
Sleep 6
Shell "\\william\admin\users\Office 2003 Removal Wizard\kill.exe -f isuninst.exe"
EndIf

Top
#172644 - 2007-01-10 08:52 PM Re: I'M TRYING TO UNINSTALL A PROGRAM BUT THIS SCRIPT WONT RUN...PLEASE HELP... [Re: selormquarshie]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
What debugging?
_________________________
Today is the tomorrow you worried about yesterday.

Top
#172645 - 2007-01-10 08:54 PM Re: I'M TRYING TO UNINSTALL A PROGRAM BUT THIS SCRIPT WONT RUN...PLEASE HELP... [Re: Gargoyle]
selormquarshie Offline
Getting the hang of it

Registered: 2006-12-24
Posts: 85
i mean it's not running when i test it
Top
#172647 - 2007-01-10 09:40 PM Re: I'M TRYING TO UNINSTALL A PROGRAM BUT THIS SCRIPT WONT RUN...PLEASE HELP... [Re: selormquarshie]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
So try this...

Code:
If KeyExist ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Relationship 98") = 0
  Shell '%ComSpec% /c %systemroot%\IsUninst.exe -y -f"C:\Program Files\Pivotal\Relationship\Uninst.isu" >NUL 2>NUL'
 ? "Uninstall command Issued, Return Code = " @Serror
  Sleep 6
  Shell "\\william\admin\users\Office 2003 Removal Wizard\kill.exe -f isuninst.exe"
 ? "Kill Command sent, Return Code = " @Serror
Else
  ? "Error Code = " @Error " Error Details = " @Serror
EndIf 

[edit] added a few more debugging items [/edit]


Edited by Gargoyle (2007-01-10 09:51 PM)
_________________________
Today is the tomorrow you worried about yesterday.

Top
#172650 - 2007-01-10 11:13 PM Re: I'M TRYING TO UNINSTALL A PROGRAM BUT THIS SCRIPT WONT RUN...PLEASE HELP... [Re: Gargoyle]
selormquarshie Offline
Getting the hang of it

Registered: 2006-12-24
Posts: 85
doesn;t make sense.....consider u r given the resposibility of wrinting a script in kixtart to remove Relationship from conputers...and all you have at your disposal are.....how would your final product look.......

"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"

C:\WINDOWS\uninst.exe-y -f"C:\Program Files\Pivotal\Relation\DeIsL2.isu" >NUL 2>NUL

Top
#172654 - 2007-01-10 11:21 PM Re: I'M TRYING TO UNINSTALL A PROGRAM BUT THIS SCRIPT WONT RUN...PLEASE HELP... [Re: selormquarshie]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
I don't understand your reply at all.

All I provided was some error codes to help debug the underlying issue.
_________________________
Today is the tomorrow you worried about yesterday.

Top
#172655 - 2007-01-10 11:27 PM Re: I'M TRYING TO UNINSTALL A PROGRAM BUT THIS SCRIPT WONT RUN...PLEASE HELP... [Re: Gargoyle]
selormquarshie Offline
Getting the hang of it

Registered: 2006-12-24
Posts: 85
i guess i'm so new to kixtart i keep making silly mistakes...consider u r given the resposibility of wrinting a script in kixtart to remove Relationship from conputers.how would you do this,.........any help??
Top
#172656 - 2007-01-10 11:32 PM Re: I'M TRYING TO UNINSTALL A PROGRAM BUT THIS SCRIPT WONT RUN...PLEASE HEL [Re: selormquarshie]
NTDOC Administrator Online   content
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
1. Is this a single stand alone script or is it part of a larger script ?
2. Is it a LOGON script ?
3. What version of KiXtart are you using ?
4. Are you using GOTO from another portion of a larger script ?

.

Top
#172657 - 2007-01-11 12:03 AM Re: I'M TRYING TO UNINSTALL A PROGRAM BUT THIS SCRIPT WONT RUN...PLEASE HEL [Re: NTDOC]
selormquarshie Offline
Getting the hang of it

Registered: 2006-12-24
Posts: 85
It is a stand alone script
yes it's a logon script
i'm using the ASE version 2.4
I am not using GOTO

Top
#172661 - 2007-01-11 12:50 AM Re: I'M TRYING TO UNINSTALL A PROGRAM BUT THIS SCRIPT WONT RUN...PLEASE HEL [Re: selormquarshie]
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
Quote:

i'm using the ASE version 2.4

this is the ver of ASE not the ver of KiXtart.
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#172663 - 2007-01-11 01:10 AM Re: I'M TRYING TO UNINSTALL A PROGRAM BUT THIS SCRIPT WONT RUN...PLEASE HEL [Re: selormquarshie]
NTDOC Administrator Online   content
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
If this is a logon script then normal user won't be able to run it. They would need local admin rights to run it.

What is the version of KiXtart that is running the logon script ?

KIX32.EXE or WKIX32.EXE

.

Top
#172667 - 2007-01-11 02:10 AM Re: I'M TRYING TO UNINSTALL A PROGRAM BUT THIS SCRIPT WONT RUN...PLEASE HEL [Re: NTDOC]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I assume the ASE is so he can run it with alternate creds.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#172671 - 2007-01-11 02:48 AM Re: I'M TRYING TO UNINSTALL A PROGRAM BUT THIS SCRIPT WONT RUN...PLEASE HEL [Re: Les]
NTDOC Administrator Online   content
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Possible but he may not know how to do it from ASE either so good to get some more details.

Sure looks like GOTO or batch file type coding, thus could be a lot of other things stopping the code from working at that point.

.

Top
#172693 - 2007-01-11 04:22 PM Re: I'M TRYING TO UNINSTALL A PROGRAM BUT THIS SCRIPT WONT RUN...PLEASE HEL [Re: NTDOC]
selormquarshie Offline
Getting the hang of it

Registered: 2006-12-24
Posts: 85
we are running KIX32.EXE. It's a logon script and yes they are all local admins on the PC i guess it will be deployed thru GPO upon logon and have to kix auto remove the program (Relationship) if it's on the PC. how would anyone go about it...

Edited by selormquarshie (2007-01-11 05:41 PM)

Top
#172699 - 2007-01-11 08:37 PM Re: I'M TRYING TO UNINSTALL A PROGRAM BUT THIS SCRIPT WONT RUN...PLEASE HEL [Re: selormquarshie]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
To get the version of KIX from a command prompt just type in kix32.exe and it will tell you the version.

This is important, as dependent on the version what commands are available to use.
_________________________
Today is the tomorrow you worried about yesterday.

Top
Page 1 of 1 1


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

Who's Online
0 registered and 1471 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.075 seconds in which 0.029 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