Solved

executing deinstall from VBA in an Access application

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

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…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
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…
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…

739 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