Can someone tell me how to uninstall SQL Anywhere 9 from the command line without requiring user input?

I've determined that the Uninstall String (from the registry) is as follows:

RunDll32 C:PROGRA~1COMMON~1INSTAL~1PROFES~1RunTime0701Intel32Ctor.dll,LaunchSetup "C:Program FilesInstallShield Installation Information{F653AB56-DB37-415B-8DDD-EF5BC1982150}is_setup.exe" -l0x09 UNINSTALLING

But when I run that I'm promted with a "Confirm Uninstall" window.

Is there a switch to avoid this so there is no input required?

Thanks UkiwiS

asked 15 Apr '11, 15:02

UkiwiS's gravatar image

UkiwiS
46237
accept rate: 50%

edited 20 Sep '11, 17:35

Volker%20Barth's gravatar image

Volker Barth
30.3k300452659


Thanks José. Your response is similar to how I resolved the problem but not exactly the same. I looked at the uninstall String in the registry then came up with the following...

  1. Change directory to C:\Program Files\InstallShield Installation Information\{F653AB56-DB37-415B-8DDD-EF5BC1982150}
  2. Record removal using "is_setup.exe -l0x09 UNINSTALLING -r -f1D:\temp\SA9app.iss"

This saves the iss file to D:\Temp\SA9app.iss

I then copied this file to D:\temp on the target system:

  1. Change directory to C:\Program Files\InstallShield Installation Information\{F653AB56-DB37-415B-8DDD-EF5BC1982150}
  2. Remove App using "is_setup.exe -l0x09 UNINSTALLING /s /f1D:\temp\sa9app.iss /f2D:\temp\sa9app.log"

The /f2 switch creates the log.

One problem I encountered is that some files could not be removed and I received the following message:

Setup has detected that some items have not been removed. Setup can present a list of items which can be selected individually for removal. Click YES to see the List. Click NO to skip viewing the list"

I tried selecting YES and then some additional options but the responses are never correctly recorded. The only acceptable response seemed to be to select NO to the prompt, otherwise the .iss response file would not generate a silent uninstall and the same question would be present when the Uninstall was run.

If anyone knows how to resolve this additional little annoyance, please let me know.

permanent link

answered 19 Apr '11, 17:01

UkiwiS's gravatar image

UkiwiS
46237
accept rate: 50%

edited 19 Apr '11, 17:08

I believe you need to record the uninstall first to create the response file. You can then pass that response file to the uninstall command. For example, run the following to create the uninstall response file:

RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\PROFES~1\RunTime\0701\Intel32\Ctor.dll,LaunchSetup "C:\Program Files\InstallShield Installation Information\{F653AB56-DB37-415B-8DDD-EF5BC1982150}\is_setup.exe" -r -l0x09 UNINSTALLING

This will create the file setup.iss in your C:Windows folder. Note that at this point SQL Anywhere 9 was removed from your system.

To uninstall the product, run the same command but use different parameters:

RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\PROFES~1\RunTime\0701\Intel32\Ctor.dll,LaunchSetup "C:\Program Files\InstallShield Installation Information\{F653AB56-DB37-415B-8DDD-EF5BC1982150}\is_setup.exe" -s -f1"c:\windows\setup.iss" -l0x09 UNINSTALLING

You can do the same for the installation. Record it using:

setup -r

This will also create a file setup.iss that you can use in subsequent silent installs.

permanent link

answered 18 Apr '11, 12:17

Jos%C3%A9%20Ramos's gravatar image

José Ramos
1.0k51524
accept rate: 30%

I figured out that there was a running process (scjview.exe) causing the prompt and the message about files that could not be removed. I resolved it by running the following command prior to attempting the uninstall...

taskkill /IM scjview.exe /F

permanent link

answered 19 Apr '11, 19:27

UkiwiS's gravatar image

UkiwiS
46237
accept rate: 50%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×97
×41

question asked: 15 Apr '11, 15:02

question was seen: 1,992 times

last updated: 20 Sep '11, 17:35