How to determine if software is installed within VBA

M

Matt Kisasonak

I guess the subject says it. I need to determine if a certain software is
installed before running a piece of code. How do I do that?
 
C

Cindy M -WordMVP-

Hi Matt,
I guess the subject says it. I need to determine if a certain software is
installed before running a piece of code. How do I do that?
I'd either search the drive for the *.exe file or, if you're certain it's
software that registers itself, check for its presence in the HKCR part of
the Registry.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
K

Klaus Linke

Or if you want to know which COM AddIns are up and running, use something like the code below (which I probably copied from some KB article).

Regards,
Klaus

Dim MyAddin As COMAddIn
Dim msg As String
For Each MyAddin In Application.COMAddIns
msg = msg & MyAddin.Description & " - " & _
MyAddin.ProgID & vbCrLf
Next
MsgBox msg
 
H

Howard Kaikow

You can use VBA to:

1. Check for the pesence of the relevant registry keys.
2. Use WMI to check, among other things, whether the ProgId, ComponentId and
LocalServer32 keys are set.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top