Solved

Has uninstall.exe got a command line interface?

Posted on 2008-10-23
7
1,174 Views
Last Modified: 2013-11-27
I want to uninstall an application from VBA in Access. Is there a way to invoke uninstall with, as a parameter, the name of the program to be un-installed. There probably is but it may not be documented widely... Or maybe ther is an API?

Many thanks.
0
Comment
Question by:Peborgh
  • 3
  • 3
7 Comments
 
LVL 8

Expert Comment

by:fabriciofonseca
ID: 22786129
If you can do it from the comand prompt window (Windows black screen -  like DOS) then you can use the Shell comand and run the uninstall.

call Shell("your command")

Regards
0
 
LVL 18

Accepted Solution

by:
sk_raja_raja earned 500 total points
ID: 22786416
Take a look in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and find the section for your program
The UninstallString should tell us the default uninstall option, and from there we might be able to find a quiet uninstall.

For example, the default uninstall string for one of our apps is "C:\WINDOWS\isuninst.exe -fC:\Unisys\Clients\Uninst.isu"

Since that is an old Install Shield program the command line to silently uninstall that we use is....

C:\WINDOWS\isuninst.exe -y -a -fC:\Unisys\Clients\Uninst.isu

http://support.installshield.com/kb/view.asp?articleid=q100021
0
 

Author Comment

by:Peborgh
ID: 22786929
That looks useful, Mr skrr! I will play with this and let you know how it went.
Btw, is InstallShield the installer used by MS in the Office Access Packager?

Many thanks,

pvp
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 18

Expert Comment

by:sk_raja_raja
ID: 22787011
NoNo this is completely different, check this
http://www.acresso.com/
0
 

Author Comment

by:Peborgh
ID: 22795619
skrr,

I have dug up the uninstalling  line

       C:\WINDOWS\odeunst.exe -n "C:\Program Files\Counselog 4.0.0\ODEUNST.LOG

from the registry but when I try to run it in a DOS prompt window it complains it can only be run from Program Manager.

Do you know if there is a way to run this command line from an application written in VBA?

Many thanks,

peter
0
 
LVL 18

Expert Comment

by:sk_raja_raja
ID: 22796396
No....probably you should check in VB zone
0
 

Author Comment

by:Peborgh
ID: 22797016
Thanks, skrr.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Documents and settings folder 30 78
Modal form 11 30
Trying to force an answer in a combobox 7 18
Modify report 8 11
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question