Solved

executing deinstall from VBA in an Access application

Posted on 2008-10-24
4
241 Views
Last Modified: 2013-11-27
I have dug up the uninstalling  line for my application

       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.
0
Comment
Question by:Peborgh
  • 2
  • 2
4 Comments
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 total points
ID: 22803896

1. Not that it will matter, but what you posted is missing the closing double-quote at the end:

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

2. Can you post the exact error message?
Because wen I googled: "can only be run from Program Manager"
...the only hit was this same question.

3. You can try this:

  Dim varOpenApp  As Variant
  varOpenApp = Shell("C:\WINDOWS\odeunst.exe -n" & " " & "C:\Program Files\Counselog 4.0.0\ODEUNST.LOG", vbNormalFocus)

JeffCoachman

0
 

Author Comment

by:Peborgh
ID: 22811829
This try gave illegal parameter and can't continue. I tried the suggested shell line without the & " " & bit, just a space,  and that also failed.

Btw, the original message was "...it can only be run from Program Manager ICON". Any ways around that?

Onward to victory!

peter
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 22819366
Peborgh,

Are you sure that is the exact message, if so then perhaps it is an error message generated by the program itself.

It seems like the "Program Icon" (perhpas a shortcut) contains something that this program needs to run.

Go to the properties of the program shortcut and post everything you see here.

JeffCoachman
0
 

Author Comment

by:Peborgh
ID: 22995237
I tried and got nowhere. I think theer is some magic that stops programmers running de-install from their programs.
Thanks for the suggestions as far as they went. It got the question answered...

peter
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

758 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now