MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




C#: How to find out if MapPoint is installed?

This is a discussion on C#: How to find out if MapPoint is installed? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hello, How can I find out from within a C# program whether MapPoint is installed or not? Bye, MD2000...


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

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-22-2005
Member
Yellow Belt
 
Join Date: Feb 2005
Posts: 32
C#: How to find out if MapPoint is installed?

Hello,
How can I find out from within a C# program whether MapPoint is installed or not?

Bye,

MD2000
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-23-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
Hi,

Something like this:

Code:
        public Main()
        {
            InitializeComponent();
            try {
                MP.NewMap(GeoMapRegion.geoMapEurope);
            } catch (Exception e) {
                MessageBox.Show("Mappoint not installed or incorrect version");
                //Application.Exit(); does not work at this point
                Win32.PostMessage(Handle, WM_QUIT, 0, 0);
            }
        }
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-26-2005
Member
Yellow Belt
 
Join Date: Feb 2005
Posts: 32
thank you!
I'll test it.

Bye,

MD
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 05-25-2006
Junior Member
White Belt
 
Join Date: May 2006
Posts: 6
I have tried something similar in my code:

catch (Exception e)
{
MessageBox.Show("Error loading Mappoint: " + e.Message+". Are you sure it is installed?");
}

However this line generates:

"AccessViolationException was unhandled"
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

Any suggestions?

(I have been testing different ways to have mappoint corrupted/not installed, in this case I renamed "MapPoint.exe", to "asdf.exe" which correctly generates a FileNotFoundException)

Thanks
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
find, 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
MapPoint 2004 must be installed Hollywod07 MapPoint 2006/2009 Discussion 1 04-03-2006 07:32 PM
mappoint installed detection Anonymous MapPoint 2006/2009 Discussion 1 10-29-2004 04:47 PM
Installed Street & Trips 2003 won't run! Anonymous MapPoint 2006/2009 Discussion 1 02-24-2004 10:27 AM
How do I check to see if there is mappoint installed on a sy dew1969 MapPoint 2006/2009 Discussion 3 02-18-2004 11:05 AM
installed mp 2002 from cds, but does not run! help? Anonymous MapPoint 2006/2009 Discussion 1 01-19-2003 07:40 PM


All times are GMT -5. The time now is 10:32 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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