Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 4 of 4

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 Desktop 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 ...

  1. #1
    dew1969 is offline 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.

  2. #2
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60

    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

  3. #3
    Matrices is offline 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

  4. #4
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. C#: How to find out if MapPoint is installed?
    By MD2000 in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 05-25-2006, 12:58 PM
  2. MapPoint 2004 must be installed
    By Hollywod07 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-03-2006, 07:32 PM
  3. mappoint installed detection
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-29-2004, 04:47 PM
  4. Installed Street & Trips 2003 won't run!
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 02-24-2004, 10:27 AM
  5. installed mp 2002 from cds, but does not run! help?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-19-2003, 07:40 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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