#173911 - 2007-02-14 04:44 PM
MY SendKey command wont respond
|
selormquarshie
Getting the hang of it
Registered: 2006-12-24
Posts: 85
|
I am trying to use SENDKEY to answer ok after the SHELL command and continue but it doesn't respond......any idead........
Shell 'C:\WINDOWS\uninst.exe /s -y -f"C:\Program Files\Pivotal\Relation\DeIsl1.isu"'
$rc = SendKeys ("{Enter}")
$RC = Shutdown("","System is being rebooted to enable new settings.", 10, 1, 1)
Else
Quit
EndIf
Edited by selormquarshie (2007-02-15 04:27 PM)
|
Top
|
|
|
|
#173940 - 2007-02-15 04:30 PM
Re: n
[Re: Sealeopard]
|
selormquarshie
Getting the hang of it
Registered: 2006-12-24
Posts: 85
|
my point is to have the SENDKEY option automatically answer OK after the install instead of the dialogue box sitting there and displaying "uninstall was successful" and waiting on user to press the ENTER key
|
Top
|
|
|
|
#173942 - 2007-02-15 04:40 PM
Re: n
[Re: Björn]
|
selormquarshie
Getting the hang of it
Registered: 2006-12-24
Posts: 85
|
Here is the full code......my point is to have the SENDKEY option automatically answer OK after the install instead of the dialogue box sitting there and displaying "uninstall was successful" and waiting on user to press the ENTER key
If Exist ("C:\Program Files\Pivotal\Relation")
If Exist ("C:\Documents and Settings\All Users\Start Menu\Programs\Relationship 99")
Run '"regsvr32 /u Rn1colan.dll",4160,2' Run '"regsvr32 /u RsMorMSoutlook.exe",4160,2'
Del "C:\Program Files\Pivotal\Relation\Imsync.dll" Del "C:\Program Files\Pivotal\Relation\Isyncps.dll" Del "C:\Program Files\Pivotal\Relation\Isysmps.dll" Del "C:\Program Files\Pivotal\Relation\NserverCa.dll" Del "C:\Program Files\Pivotal\Relation\NserverCps.dll" Del "C:\Program Files\Pivotal\Relation\Rn1cdata.dll" Del "C:\Program Files\Pivotal\Relation\Rn1colan.dll" Del "C:\Program Files\Pivotal\Relation\Rn1dobj.dll" Del "C:\Program Files\Pivotal\Relation\Info.exe" Del "C:\Program Files\Pivotal\Relation\RSMforMSOutlook.exe" Del "C:\Program Files\Pivotal\Relation\NserverC.exe"
DelProgramItem ("Relationship 99")
;This command line uninstalls Relationship from user computer.
$Msg = MessageBox('Please wait while Relationship is uninstalled','ESI International',,5)
Shell 'C:\WINDOWS\uninst.exe /s -y -f"C:\Program Files\Pivotal\Relation\DeIsl1.isu"'
$rc = SendKeys ("{Enter}")
;This command line will Reboot the computer within 10 seconds after completion of uninstallation
$RC = Shutdown("","System is being rebooted to enable new settings.", 10, 1, 1)
Else
Quit
EndIf
|
Top
|
|
|
|
#173996 - 2007-02-17 03:09 AM
Re: n
[Re: Björn]
|
selormquarshie
Getting the hang of it
Registered: 2006-12-24
Posts: 85
|
I first deleted all the .DLL files...and then SHELL the uninstall command. that works fine.....all i need now is to use SETOPTION and SEDKEY to answer yes after the uninstall does its thing....and i also tried deleting the folder by and it wont!!
NB: how would you rewrite the code to delete the folder and also use sendkey to answer OK after uninstall??
IF EXIST('C:\program files\pivotal') RD 'C:\program files\pivotal' EndIF ...........................
If Exist ("C:\Program Files\Pivotal\Relation")
If Exist ("C:\Documents and Settings\All Users\Start Menu\Programs\Relationship 99")
Run '"regsvr32 /u Rn1colan.dll",4160,2' Run '"regsvr32 /u RsMorMSoutlook.exe",4160,2'
Del "C:\Program Files\Pivotal\Relation\Imsync.dll" Del "C:\Program Files\Pivotal\Relation\Isyncps.dll" Del "C:\Program Files\Pivotal\Relation\Isysmps.dll" Del "C:\Program Files\Pivotal\Relation\NserverCa.dll" Del "C:\Program Files\Pivotal\Relation\NserverCps.dll" Del "C:\Program Files\Pivotal\Relation\Rn1cdata.dll" Del "C:\Program Files\Pivotal\Relation\Rn1colan.dll" Del "C:\Program Files\Pivotal\Relation\Rn1dobj.dll" Del "C:\Program Files\Pivotal\Relation\Info.exe" Del "C:\Program Files\Pivotal\Relation\RSMforMSOutlook.exe" Del "C:\Program Files\Pivotal\Relation\NserverC.exe"
DelProgramItem ("Relationship 99")
;This command line uninstalls Relationship from user computer.
$Msg = MessageBox('Please wait while Relationship is uninstalled','ESI International',,5)
Shell 'C:\WINDOWS\uninst.exe /s -y -f"C:\Program Files\Pivotal\Relation\DeIsl1.isu"'
$rc = SendKeys ("{Enter}")
;This command line will Reboot the computer within 10 seconds after completion of uninstallation
$RC = Shutdown("","System is being rebooted to enable new settings.", 10, 1, 1)
Else
Quit
EndIf
|
Top
|
|
|
|
#173998 - 2007-02-17 03:45 AM
Re: n
[Re: Les]
|
selormquarshie
Getting the hang of it
Registered: 2006-12-24
Posts: 85
|
when the uninstaller completes, it pops up the OK button and i press ENTER before it continues.....someone had suggested AutoIt but that didn't come out too smooth either. How would i use brute force to remove the folder for the program folder cause what i scripted didn't do the trick..which is...
IF EXIST('C:\program files\pivotal') RD 'C:\program files\pivotal' EndIF
|
Top
|
|
|
|
#174000 - 2007-02-17 04:24 AM
Re: n
[Re: Les]
|
selormquarshie
Getting the hang of it
Registered: 2006-12-24
Posts: 85
|
i'm awfully new to kixtart so......this is the entire script...please, anyone look out for any syntax and advice.........What it does is..Remove all .DLL files, use SHELL to uninstall, and remove the progrma folder...
$Msg,$SetOption
If Exist ("C:\Program Files\Pivotal\Relation")
Run '"regsvr32 /u Rn1colan.dll",4160,2' Run '"regsvr32 /u RsMorMSoutlook.exe",4160,2'
Del "C:\Program Files\Pivotal\Relation\Imsync.dll" Del "C:\Program Files\Pivotal\Relation\Isyncps.dll" Del "C:\Program Files\Pivotal\Relation\Isysmps.dll" Del "C:\Program Files\Pivotal\Relation\NserverCa.dll" Del "C:\Program Files\Pivotal\Relation\NserverCps.dll" Del "C:\Program Files\Pivotal\Relation\Rn1cdata.dll" Del "C:\Program Files\Pivotal\Relation\Rn1colan.dll" Del "C:\Program Files\Pivotal\Relation\Rn1dobj.dll" Del "C:\Program Files\Pivotal\Relation\Info.exe" Del "C:\Program Files\Pivotal\Relation\RSMforMSOutlook.exe" Del "C:\Program Files\Pivotal\Relation\NserverC.exe" Del "%AllUsersProfile%\Start Menu\Programs\Relationship 99" Del "%AllUsersProfile%\Start Menu\Programs\Relationship"
;This command line uninstalls Relationship from user computer.
$Msg = MessageBox('Please wait while Relationship is uninstalled','ESI International',,5)
Shell 'C:\WINDOWS\uninst.exe /s -y -f"C:\Program Files\Pivotal\Relation\DeIsl1.isu"'
RD '"C:\Program Files\Pivotal\Relation" /s'
$ = SetOption ("SendKey","On")
$rc = SendKeys ("{~Enter}")
Else
? "Error Code = " @Error " Error Details = " @Serror
EndIf
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 323 anonymous users online.
|
|
|