MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




How do I check to see if there is mappoint installed on a sy

This is a discussion on How do I check to see if there is mappoint installed on a sy within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I have a vb 6 app that uses mappoint. How do I check to see if there is mappoint installed ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-13-2004
Junior Member
White Belt
 
Join Date: Jan 2004
Posts: 2
How do I check to see if there is mappoint installed on a sy

I have a vb 6 app that uses mappoint. How do I check to see if there is mappoint installed on a system so the app doesn't crash if the user doesn't have mappoint installed.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 02-14-2004
Winwaed's Avatar
Mapping-Tools.com
Black Belt
 
Join Date: Feb 2004
Posts: 1,142
Blog Entries: 22
Can you get at the Registry?

Hmmm, I thought I'd replied to this yesterday but it doesn't seem to have appeared.

Can you get at the Registry?

Another way might be to attempt to create a MapPoint.Application object, and trap it for an exception. This is how I'd be tempted to do it in C++. Does VB have exception handling, or somekind of error return?

Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
See the Geoweb Guru for online mapping
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 02-17-2004
Member
Yellow Belt
 
Join Date: Sep 2003
Posts: 44
you could probably use a try stream. Something lilke

Code:
try
create mappoint object
catch(ex as exception)
msgbox("Mappoint not installed")
end try
Thats how I'd do it in VB.net though I think VB6 has try things too

M
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 02-18-2004
Bug's Avatar
Bug Bug is offline
Junior Member
White Belt
 
Join Date: Feb 2004
Posts: 6
I do it like this.

'//Check for properly installed mappoint
Dim rk As RegistryKey
rk = Registry.CurrentUser
rk = rk.OpenSubKey("Software\Microsoft\MapPoint")

'//If properly installed
If Not rk Is Nothing Then
'Me.WindowState = FormWindowState.Minimized
Map = New frmMap
Map.Show()
Else
'//If NOT properly installed
MsgBox("Mapping feature only works if you have mappoint installed" & vbCrLf & _
"If Mappoint is installed on the machine, please run it once, before accessing this feature", _
MsgBoxStyle.Critical, "Mappoint error")
End If
__________________
Best Regards.
Bug
Microsoft Certified Solutions Developer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
check, installed, mappoint


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
C#: How to find out if MapPoint is installed? MD2000 MapPoint 2006/2009 Discussion 3 05-25-2006 11:58 AM
MapPoint 2004 must be installed Hollywod07 MapPoint 2006/2009 Discussion 1 04-03-2006 06:32 PM
mappoint installed detection Anonymous MapPoint 2006/2009 Discussion 1 10-29-2004 03:47 PM
Installed Street & Trips 2003 won't run! Anonymous MapPoint 2006/2009 Discussion 1 02-24-2004 09:27 AM
installed mp 2002 from cds, but does not run! help? Anonymous MapPoint 2006/2009 Discussion 1 01-19-2003 06:40 PM


All times are GMT -5. The time now is 11:51 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Luxor Holiday
Book your Luxor holiday through UlookUbook and visit this destination stooped in history.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59