Solved

executing deinstall from VBA in an Access application

Posted on 2008-10-24
4
295 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
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 different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

632 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