Solved

executing deinstall from VBA in an Access application

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
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.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

679 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