Test for installed application?

June 19th, 2012 - 06:40 am ET by Charlotte E. | Report spam
Hi,


Is it possible to test, if the user has a certain application installed
on this computer?

Or, to be specific, is it possible to test, if the user has "Google
Earth" installed on his windows-PC?

VBA Code?


Thanks in advance...


CE
email Follow the discussionReplies 5 repliesReplies Make a reply

Similar topics

Replies

#1 Auric__
June 19th, 2012 - 06:50 am ET | Report spam
Charlotte E. wrote:

Is it possible to test, if the user has a certain application installed
on this computer?

Or, to be specific, is it possible to test, if the user has "Google
Earth" installed on his windows-PC?

VBA Code?



Go to a computer that doesn't have Google Earth installed. Dump the registry.
(Yes, the whole thing.) Install Google Earth. Dump the registry again.
Compare. (There are tools that will do the dumping and comparing
automagically for you.)

Chances are, Google Earth sets something in the registry, even if it's
something as simple as the uninstaller's info. (I don't use it so I can't
tell you what.)

Fear is the penalty of consciousness.
There's no weakness in fear... only in showing it.
Replies Reply to this message
#2 Mike S
June 19th, 2012 - 08:14 am ET | Report spam
On 6/19/2012 3:50 AM, Auric__ wrote:
Charlotte E. wrote:

Is it possible to test, if the user has a certain application installed
on this computer?

Or, to be specific, is it possible to test, if the user has "Google
Earth" installed on his windows-PC?

VBA Code?



Go to a computer that doesn't have Google Earth installed. Dump the registry.
(Yes, the whole thing.) Install Google Earth. Dump the registry again.
Compare. (There are tools that will do the dumping and comparing
automagically for you.)

Chances are, Google Earth sets something in the registry, even if it's
something as simple as the uninstaller's info. (I don't use it so I can't
tell you what.)



This approach might work:

"See if Google Earth is the handler for .kml files:"

http://stackoverflow.com/questions/...on-windows

There are some registry entries here, not sure if they will work for
you, the recommended testing is a good idea:

[HKEY_CURRENT_USER\Software\Google\Google Earth Plus]

http://offlinegoogleearth.blogspot.com/
Replies Reply to this message
#3 GS
June 19th, 2012 - 11:29 am ET | Report spam
Perhaps...

Function bGoogleEarthAvailable() As Boolean
Dim x As Object
On Error Resume Next
Set x = CreateObject("Google Earth.Application") 'edit to suit
bGoogleEarthAvailable = (Err = 0)
x.Quit: Set x = Nothing
End Function

Usage example:

If bGoogleEarthAvailable Then DoSomething Else Do SomethingElse

Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion
Replies Reply to this message
#4 GS
June 19th, 2012 - 11:30 am ET | Report spam
GS made a 'typo':

Function bGoogleEarthAvailable() As Boolean
Dim x As Object
On Error Resume Next
Set x = CreateObject("Google Earth.Application") 'edit to suit
bGoogleEarthAvailable = (Err = 0)
x.Quit: Set x = Nothing
End Function

Usage example:



If bGoogleEarthAvailable Then DoSomething Else DoSomethingElse

Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion
Replies Reply to this message
#5 Charlotte E.
June 20th, 2012 - 08:53 am ET | Report spam
Thanks for your suggestions, guys...

However, I decided on a web-map based solution instead - but thanks for
your effort anyway.


CE

Den 19.06.2012 12:40, Charlotte E. skrev:
Hi,


Is it possible to test, if the user has a certain application installed
on this computer?

Or, to be specific, is it possible to test, if the user has "Google
Earth" installed on his windows-PC?

VBA Code?


Thanks in advance...


CE
email Follow the discussion Replies Reply to this message
Help Create a new topicReplies Make a reply
Search Make your own search