InstallShield 6x Silent Uninstall
I have tried to add
I also tried with the original setup.exe and added
Answers (41)
First, create the ISS file by running:
RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\engine\6\INTEL3~1\Ctor.dll,LaunchSetup "C:\Program Files\InstallShield Installation Information\{B7BAB8FE-C3FF-4FB3-80EC-DAD76EC1BF4A}\Setup.exe" -r
(I'm assuming your app is in fact currently installed.)
If you've never done this, the setup (or uninstall in my case) will proceed as it normally would, but a setup.iss file will also be created in %WINDIR%.
Then, after reinstalling the app to test my uninstall, I used this command in my WiseScript to successfully uninstall the app:
"C:\Program Files\InstallShield Installation Information\{B7BAB8FE-C3FF-4FB3-80EC-DAD76EC1BF4A}\Setup.exe" /s /x -f1c:\windows\setup.iss
You can also move the setup.iss file to another location and just change the path, if that's more convenient for you than copying it to C:\Windows prior to running the uninstall command in your script:
"C:\Program Files\InstallShield Installation Information\{B7BAB8FE-C3FF-4FB3-80EC-DAD76EC1BF4A}\Setup.exe" /s /x -f1d:\installer\setup.iss
Comments:
-
Worked for me in a totally different issue! - Syntaggs 5 years ago
As others have stated here there seem to be several options. But here is what worked for me.
- record the uninstall
-then find the uninstall string in the registry
-add the the custom uninstall.iss to your installation files folder
-and in the same folder create a .bat file that copies the custom uninstall.iss to %windir% and then add in the same file the uinstall string followed by -x -r -f1%windir%\custom uininstall.iss
The app will uninstall. Enjoy took me a while but it works. Also works very well if you are uninstalling multiple files like and additional patch or whatever.
Good luck
Comments:
-
That's the way it works for me too after trying every constallation, thanks a lot - TomD 11 years ago
I followed the same path that Anjana did by using autoit. Instead of trying to guess where the controls were going to be, I just sent the key strokes.
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=..\logo1.ico
#AutoIt3Wrapper_Res_Language=1033
#AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
Opt("WinWaitDelay",500)
Opt("WinDetectHiddenText",1)
Func _WinWaitActivate($title,$text,$timeout=0)
WinWait($title,$text,$timeout)
If Not WinActive($title,$text) Then WinActivate($title,$text)
WinWaitActive($title,$text,$timeout)
EndFunc
Run('RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\engine\6\INTEL3~1\Ctor.dll,LaunchSetup "C:\Program Files\InstallShield Installation Information\{E0000650-0650-0650-0650-000000000650}\Setup.exe" -l0x9 -uninst')
_WinWaitActivate("PureEdge Viewer","")
Send ( "!y" )
_WinWaitActivate("PureEdge Viewer","PureEdge Viewer has been successfully uninstalled from your machine.")
Send ( "{SPACE}" )
It worked like a champ for me. Compiled, it should work when done remotely with something like psexec as the hidden window/text should still be captured. Honestly, I didn't try it yet, but I've done similar work in the past where hidden windows were captured successfully.
In the uninstall log I get the following:
[InstallShield Silent]
Version=v6.00.000
File=Log File
[ResponseResult]
ResultCode=-8
I used the following uninstall line:
When I used the uninstall line:
I get a prompt, therefore not silent.
ORIGINAL: Francoisracine
This is a sample of command line:
RunDll32 ctor.dll,LaunchSetup "%programfiles%\InstallShield Installation Information\{AB6FFA58-F491-11D3-8951-000000009611}\setup.exe" -s -f1%systemdrive%\setup.iss
I've tried that command line but unfortunately without the -uninst the applicaiton does not initiate and uninstall. I would still like an answer but this application is going to be manually deployed in our environment now because a silent install method cannot be found and it's taken too long. Thanks for the suggestions and the assistance.
RunDll32 ctor.dll,LaunchSetup "%programfiles%\InstallShield Installation Information\{AB6FFA58-F491-11D3-8951-000000009611}\setup.exe" -r to create an uninstall iss?
[InstallShield Silent]
Version=v6.00.000
File=Response File
[File Transfer]
OverwrittenReadOnly=NoToAll
[{AB6FFA58-F491-11D3-8951-000000009611}-DlgOrder]
Dlg0={AB6FFA58-F491-11D3-8951-000000009611}-SdWelcomeMaint-0
Count=4
Dlg1={AB6FFA58-F491-11D3-8951-000000009611}-SprintfBox-0
Dlg2={AB6FFA58-F491-11D3-8951-000000009611}-SprintfBox-1
Dlg3={AB6FFA58-F491-11D3-8951-000000009611}-SdFinish-0
[{AB6FFA58-F491-11D3-8951-000000009611}-SdWelcomeMaint-0]
Result=303
[{AB6FFA58-F491-11D3-8951-000000009611}-SprintfBox-0]
Result=1
[{AB6FFA58-F491-11D3-8951-000000009611}-SprintfBox-1]
Result=1
[Application]
Name=Global Roaming - itinérance mondiale
Version=2.22.00
Company=iPass
Lang=040c
[{AB6FFA58-F491-11D3-8951-000000009611}-SdFinish-0]
Result=1
bOpt1=0
bOpt2=0
ORIGINAL: akhlaque
Hi Rikx2:
Can you tell me the procedure to the create the winbatch script for simulation of buttons.
run (not runwait) the uninstallkey and use the winwaitexist command to wait for the prompt to appear then use the sendkey to simulate the pressing of YES. not an awful lot but it works [;)]
Just create the uninstall answer file iss and then at the command line try putting this :
RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\engine\6\INTEL3~1\Ctor.dll,LaunchSetup "C:\Program Files\InstallShield Installation Information\{5CE1EF14-2595-4320-A638-A627EE1D1BB9}\Setup.exe" -l0x9 -uninst -s
Try this if it works since I know I have tried this on an application and it worked but let me know in case it doesnt so that I will again check my KB.
ORIGINAL: wiseapp
Hi Blueboy:
Just create the uninstall answer file iss and then at the command line try putting this :
RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\engine\6\INTEL3~1\Ctor.dll,LaunchSetup "C:\Program Files\InstallShield Installation Information\{5CE1EF14-2595-4320-A638-A627EE1D1BB9}\Setup.exe" -l0x9 -uninst -s
Try this if it works since I know I have tried this on an application and it worked but let me know in case it doesnt so that I will again check my KB.
This did not work for the other application I was working on but I have a new application now that I require the same thing. Java 2 Runtime 1.4.1_07.
The uninstall line nearly the same:
RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\engine\6\INTEL3~1\Ctor.dll,LaunchSetup "C:\\Program Files\\InstallShield Installation Information\{CA532E73-1BB7-11D8-9D6A-00010240CE95}\Setup.exe" Anytext
I have removed the Anytext at the end of this line and replaced it with -l0x9 -uninst -s and it does not seem to uninstall the application.
A little Winbatch script for you to do an automated uninstall..hope this helps
Run("C:\Program Files\Ares\uninstall.exe", "")
Timedelay(5)
SendKeysTo("Ares 1.8.6 Uninstall: Confirmation","!u")
Timedelay(10)
SendKeysTo("Ares 1.8.6 Uninstall: Completed","!c")
Let me know if you need any explanation on that
Enjoy:)
Chaitra
I installed the setup.iss (answer file for the uninstall) to the %win% folder of my target computer. Then I captured the uninstall string for the app I wanted to remove from the registry of the target computer. In my case that string was: "C:\PROGRA~1\COMMON~1\INSTAL~1\Driver\7\INTEL3~1\IDriver.exe /M{F9F82B3D-F2CE-47D4-9312-10B8C7840483} ".
All I had to do was execute that command with -x -s at the end.
I also prefer to copy the %ProgramFiles%\\InstallShield Installation Information\{<guid>} to some temp folder before starting setup.exe from that new location. Saves me getting setup.exe added to PFO's.
[font="times new roman"]
Comments:
-
<Path to setup>Setup.exe /uninst is silent uninstallation? - jay25oct 11 years ago
Comments:
-
I can confirm. I was removing Nice Screen Agent 9.10.09.34 which had this uninstall string and finally by adding -noquestion on the end, it silently uninstalled. - mtouch01 9 years ago
The installation should be silent since I am using /qn....But I still get the warning box -it is in the program when a person doesnt have xyz setup it just gives a warning and they can proceed with the installation by clicking ok...
I want to automate the whole installation but I get the above warning modal box and the installation completes only after I click OK.... I am not sure how to overcome this....I want the complete installation to be automated and I am not finding the right solution....
Thanks in advance..
I jus t tried with Autoit.recorded the uninstall action.and created exe from the au3 script.But is there any way to hide that uninstallation window?code is mentioning below
#region ---Au3Recorder generated code Start ---
Opt("WinWaitDelay",100)
Opt("WinDetectHiddenText",1)
Opt("MouseCoordMode",0)
Run('C:\Program Files\Sage P11D\SETUP\Setup.exe -uninst')
_WinWaitActivate("Sage P11D","")
MouseClick("left",183,100,1)
MouseClick("left",146,85,1)
#region --- Internal functions Au3Recorder Start ---
Func _WinWaitActivate($title,$text,$timeout=0)
WinWait($title,$text,$timeout)
If Not WinActive($title,$text) Then WinActivate($title,$text)
WinWaitActive($title,$text,$timeout)
EndFunc
#endregion --- Internal functions Au3Recorder End ---
#endregion --- Au3Recorder generated code End ---
http://itninja.com/blog/view/installshield-setup-parameters
so that the conversation will remain readable.