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 |
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...
This saves the iss file to D:\Temp\SA9app.iss I then copied this file to D:\temp on the target system:
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. |
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:
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:
You can do the same for the installation. Record it using:
This will also create a file setup.iss that you can use in subsequent silent installs. |
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 |