Solved

executing deinstall from VBA in an Access application

Posted on 2008-10-24
4
276 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

829 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