/build/static/layout/Breadcrumb_cap_w.png

Silent Uninstall of .iss setup.exe

I have an installshiled setup.exe. Created an answer file and can do silent install with -s -f1answer.iss.

Then recorded uninstall.iss file. However when i run "setup.exe -s f1uninstall.iss" i do get a window to select uninstall.

Tried re-recording uninstall.iss. Same story.

App name: genesys ccpulse 8.0

Thanks for the help.


1 Comment   [ + ] Show comment
  • Problem Statement:
    uninstall.iss file was not working and during un-installation application was giving pop-up with uninstall options and User interaction was required to uninstall the application.
    Root Cause:
    Application generates different product code on every install in HKLM registry hive. So unistall.iss was not helpful because when we install application 2nd time it generates another product code and that previous uninstall.iss didn't work.

    Solution:
    This application create registry hive to uninstall application with product code which is different on every install. So we have written the custom action (VB script) which will read this changed product code from “SOFTWARE\Wow6432Node\GCTI\Installation Wizard\Instances\IntWorkspace\” hive for this application and then it will read uninstall string from that hive. This uninstall string will be passed as command line during un-installation of app. - Tejashri 9 years ago
    • Is it possible
      1. Share this custom VB script of yours
      2. Share this commandline of yours to uninstall this app

      Thanks

      Regards

      Paul - nzpcman 9 years ago

Answers (12)

Posted by: dunnpy 10 years ago
Red Belt
4

This link to Flexera shows some of the common switches: http://kb.flexerasoftware.com/doc/Helpnet/installshield12helplib/IHelpSetup_EXECmdLine.htm

Are you re-running the original setup to uninstall? Does that work if you do it manually with prompts?

The uninstall command in the registry is likely pointing to an installed file to uninstall - can you do anything with that uninstaller?

Other switches to try are:

-uninst

-x

-s

-S

/s

/S

-VerySilent (I know, odd but I've had this one work for me)

/VerySilent

 

Also running setup.exe /? 'should' give you the supported switches.

 

Hope that helps,

Dunnpy

Posted by: deepali 10 years ago
Second Degree Brown Belt
3

I just packaged an install shield application with same scenario.It had setup.exe file in this location : C:\Program Files\InstallShield Installation Information\{E137CCD2-91AD-4072-B3AB-42DB66ECBBEB}\setup.exe.This setup.exe file was uninstalling the application.In this case as well, it was not a silent uninstall.I created uninstall.iss using this command : setup.exe -r -f1uninstall.iss......I used this switch "-r" to record all the user interface changes while uninstall(in other words to make it silent).

This created uninstall.iss for the application.Now run this with this command : setup.exe /S /f1uninstall.iss (It will run silently this time).

You may try this out.This worked for me.

Posted by: Tejashri 9 years ago
White Belt
1

I was facing below issue during uninstalation:

uninstall.iss file was not working and during un-installation application was giving pop-up with uninstall options and User interaction was required to uninstall the application.

Root Cause:

Application generates different product code on every install in HKLM registry hive. So unistall.iss was not helpful because when we install application 2nd time it generates another product code and that previous uninstall.iss didn't work.

Solution:

This application create registry hive to uninstall application with product code which is different on every install. So we have written the custom action (VB script) which will read this changed product code from “SOFTWARE\Wow6432Node\GCTI\Installation Wizard\Instances\IntWorkspace\” hive for this application and then it will read uninstall string from that hive. This uninstall string will be passed as command line during un-installation of app.

Additional information:

If any of the client having appsense install on their VMs this application will not install or un-install silently from system account, so to perform installation/ uninstallation we need to stop appsense services first and then we can perform this task.

Hope this will be help in future. :)

 

Posted by: piyushnasa 10 years ago
Red Belt
0

If you cannot uninstall it silently then dont use this method. Capture it if it is not an MSI.

did you try editing the .iss file and see if you can amend something by yourself to suppress the uninstall prompt

Posted by: jagadeish 10 years ago
Red Belt
0

Can you try with this

"<SomePath>\setup.exe" -s -f1"<SomePath>\uninstall.iss"

Posted by: dj_xest 10 years ago
5th Degree Black Belt
0

Locate the registry entry under HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall. YOu should be able to track down the location of another setup.exe which could have another paramaters. Use that path of setup.exe along with some parameters like uninst or something and use your newly created ISS file for uninstall. It should do the trick.

Posted by: ogeccut 10 years ago
Black Belt
0

piyushnasa thank you for the useless comment. I was asking a very direct question. Not a workaround. 

I have tired this "<SomePath>\setup.exe" -s -f1"<SomePath>\uninstall.iss" and the string from the registry with the silent switch. Same result. It runs Installer windows silent and then comes up with "Genesys Installation Wizard" window. I still cant find a way to make it silent.

Thanks for the help.

Posted by: ogeccut 10 years ago
Black Belt
0

I have tried all of those switches/commands

 -remove -s -f1c:\Uninstall.iss

/s /f1c:\Uninstall.iss

 -uninst -s

 -remove -s -f1C:\Source\CCPulse-8.0\windows\uninst.iss

/s /f1C:\Source\CCPulse-8.0\windows\uninst.iss

 -uninst -s

 /removeonly

This is the registry string and when i try -s the installer window is silent, but that dialog window still comes up.

"C:\Program Files\InstallShield Installation Information\{E137CCD2-91AD-4072-B3AB-42DB66ECBBEB}\setup.exe" -runfromtemp -l0x0009 -removeonly

I will try verySilent in few min

Thank you

Posted by: ogeccut 10 years ago
Black Belt
0

-verysilent comes up as a wrong command. And running setup.exe /? does nothing :))

First thing i tired 
:)) 

Posted by: jagadeish 10 years ago
Red Belt
0

If you have response file for uninstallation then you don't have to mention "remove" or "uninst" in the command line

Just run like this

Create a fresh uninstall.iss like this

 

"<SomePath>\Setup.exe" -r -f1"<SomePath>\Uninstall.iss" -f2"%Temp%\MyPackage_Uninstall.log"

and execute the created uninstall.iss file as given below

"<SomePath>\Setup.exe" -s -f1"<SomePath>\Uninstall.iss" -f2"%Temp%\MyPackage_Uninstall.log"

 

 


Comments:
  • Please take a look at my original post. That is the command i was running. - ogeccut 10 years ago
  • hmmm.. Can you post your uninstall.iss content - jagadeish 10 years ago
Posted by: ogeccut 10 years ago
Black Belt
0

[InstallShield Silent]

Version=v7.00

File=Response File

[File Transfer]

OverwrittenReadOnly=NoToAll

[{91A48591-4506-4F85-B50C-7ED0D2C4A0F6}-DlgOrder]

Count=0

[{4F305BE9-C598-4F08-BD6D-B934754DBC53}-DlgOrder]

Count=0

 

Comments:
  • This is incomplete - jagadeish 10 years ago
  • Thats the file that ws created with "setup.exe -r f1c:\uninstall.iss" what am i missing? I did it twice with the same result. - ogeccut 10 years ago
  • ok.. Can you post your installation iss content.. - jagadeish 10 years ago
  • [InstallShield Silent]
    Version=v7.00
    File=Response File
    [File Transfer]
    OverwrittenReadOnly=NoToAll
    [{91A48591-4506-4F85-B50C-7ED0D2C4A0F6}-DlgOrder]
    Dlg0={91A48591-4506-4F85-B50C-7ED0D2C4A0F6}-gctiGdWelcome-0
    Count=6
    Dlg1={91A48591-4506-4F85-B50C-7ED0D2C4A0F6}-gctiGdAskPath-0
    Dlg2={91A48591-4506-4F85-B50C-7ED0D2C4A0F6}-gctiGdRadioButton3-0
    Dlg3={91A48591-4506-4F85-B50C-7ED0D2C4A0F6}-gctiGdReadyToInstall-0
    Dlg4={91A48591-4506-4F85-B50C-7ED0D2C4A0F6}-SprintfBox-0
    Dlg5={91A48591-4506-4F85-B50C-7ED0D2C4A0F6}-gctiGdFinish-0
    [{91A48591-4506-4F85-B50C-7ED0D2C4A0F6}-gctiGdWelcome-0]
    Direction=1
    [{91A48591-4506-4F85-B50C-7ED0D2C4A0F6}-gctiGdAskPath-0]
    Direction=1
    Path=C:\Program Files\GCTI\CCPulse+
    [{91A48591-4506-4F85-B50C-7ED0D2C4A0F6}-gctiGdRadioButton3-0]
    Direction=1
    Choice=1
    [{91A48591-4506-4F85-B50C-7ED0D2C4A0F6}-gctiGdReadyToInstall-0]
    Direction=1
    [{91A48591-4506-4F85-B50C-7ED0D2C4A0F6}-SprintfBox-0]
    Result=1
    [{91A48591-4506-4F85-B50C-7ED0D2C4A0F6}-gctiGdFinish-0]
    Reboot=0
    [{4F305BE9-C598-4F08-BD6D-B934754DBC53}-DlgOrder]
    Count=0 - ogeccut 10 years ago
Posted by: asman 10 years ago
Purple Belt
0

Create a "uninstall.iss" from "C:\Program Files\InstallShield Installation Information\{E137CCD2-91AD-4072-B3AB-42DB66ECBBEB}\setup.exe" instead of your original setup.exe.

Then run:

"C:\Program Files\InstallShield Installation Information\{E137CCD2-91AD-4072-B3AB-42DB66ECBBEB}\setup.exe -S -f1"<random>\uninstall.iss"


Comments:
  • The problem is that i cant run C:\Program Files\InstallShield Installation Information\{E137CCD2-91AD-4072-B3AB-42DB66ECBBEB}\setup.exe" silent as well. Same dialog box comes up as in setup.exe. I will try it and post feedback. Thank you - ogeccut 10 years ago
    • same thing works for me it now its suppress all dialogs including Remove all features and reboot. :) - yasheshlele 9 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ