MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




MapPoint Library Redistribution

This is a discussion on MapPoint Library Redistribution within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; We're looking to integrate MapPoint into a .NET WinForms application that will be used internally by our salespeople for mapping ...


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-24-2005
Junior Member
White Belt
 
Join Date: Feb 2005
Posts: 1
Send a message via MSN to Hamaze
MapPoint Library Redistribution

We're looking to integrate MapPoint into a .NET WinForms application that will be used internally by our salespeople for mapping car dealership territories. This application will integrate the MapPoint COM object library into the application and there isn't really any need for the salesperson to ever use the actual MapPoint application.

My question is whether we can re-distribute (with respect to per-seat licensing) the MapPoint COM object libaries without needing to install MapPoint. I realize that would require the registration of the object library along with the necessary program files typically installed, I was just curiuos as to if someone has taken this approach before. Thanks!

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

You can eather buy a runtime licence of mappoint or thry to check witch component/library/file is neededto get your program running and include it in your setup. Of course it has to contain licence or it is illegal. I dont know if there is a price difference between the 2 licences (until now I always do the full since it is not expencive).

I just found this topic in the help:

Code:
Create an installation disc for an application created using the MapPoint Control
Note  Each computer on which your application is installed must have either a full MapPoint license or a MapPoint run-time license; otherwise, your application's calls to MapPoint will fail.

Purchase run-time licenses for MapPoint for recipients of your application. 
Create your application and compile it. 
Create the Setup file for your compiled application, making sure that it calls the MapPoint setup.exe. 
To use the Visual Basic Package & Deployment Wizard to have your Setup file call the MapPoint setup.exe

Create a backup of the PDWizard folder before making any changes.
Use the Package & Deployment Wizard to have your Setup file call MapPoint setup.exe. (This assumes that you are using Visual Basic 6.0 with service pack 5) 
Open setup1.vbp that was installed with Visual Basic from the Wizards\PDWizard\Setup1 folder. 
Add the following code to the Form_Load event of setup1.frm after the code that installs data access: 
'=======Beginning of call to MapPoint setup
Dim zSetupOptions As String
'Note: Chr(34) represents a quotation mark (")
zSetupOptions = " USERNAME=" & Chr(34) & "User Name" & Chr(34)
zSetupOptions = zSetupOptions & " COMPANYNAME=" & Chr(34) & "User Company" & Chr(34)
zSetupOptions = zSetupOptions & " INSTALLLEVEL=500" 'Full installation is 500; typical installation is 100
zSetupOptions = zSetupOptions & " INSTALLDIR=" & Chr(34) & "C:\Program Files\Microsoft MapPoint" & Chr(34) 'installation location
zSetupOptions = zSetupOptions & " /qb" 'silent installation
ShowStaticMessageDialog "Installing MapPoint Control Run-time"
SyncShell gstrSrcPath & "mpcsetup.exe" & zSetupOptions
HideStaticMessageDialog
'=======End of call to MapPoint setupNote  Your code can also prompt the user to enter setup information such as name, installation location, or the level of installation. You can also include the MapPoint disk requirements in the calculation of disk requirements for your application. For more information on how to modify setup1.vbp, see the Visual Basic online Help or the Microsoft Developer Network (MSDN) Library.

Save the project and compile it to create setup1.exe, replacing the existing setup1.exe. 
Launch the Package & Deployment Wizard. 
Note  The Package & Deployment Wizard does not recognize the MapPoint Control and will ask for a dependency (.dep) file, which doesn't exist. Therefore, clear the option to install the Control.

The Package & Deployment Wizard uses the setup1.exe you just compiled and creates the following three files: setup.exe, setup.lst, and a CAB file with the name of your project.



Copy all files, including subfolders, from the MapPoint Setup disc to a folder (<New Folder>) on your computer. 
Delete the following files from <New Folder>: 
autorun.inf

cd1run.exe

mp.ico

setup.ini

Rename the following files in <New Folder>: 
readme.wri to mpcreadme.wri

setup.exe to mpcsetup.exe

Copy setup.ini from the Runtime folder to <New Folder>, and rename it to mpcsetup.ini. 
Replace <New Folder>\MSMap\data.msi with the file of the same name from the Runtime folder. 
Remove the following folders, along with the files and subfolders within them: 
Runtime

PStreets

Copy your application Setup files to <New Folder>, including at least setup.exe, setup.lst, and your project's CAB file created by the Package & Deployment Wizard. 
Copy any other application files, such as autorun.inf, icons, executable, data, or other utilities or files that you want to include. 
Create your application installation disc (such as a CD or DVD) with <New Folder> as the root folder of the disc. 
Note  The root folder must include your application setup.exe and the MapPoint mpcsetup.exe.

Distribute a copy of the MapPoint Run disc along with your installation disc, keeping the same volume name and file structure. 
Note  The MapPoint Run disc contains data that is necessary either for installation or at run-time, depending on the installation option selected.

Note  You can also deploy your application over a network.
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
library, mappoint, redistribution


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
mppoint object library Anonymous MP2K Magazine Articles 1 10-21-2004 07:19 AM
I can't find the MapPoint COM library Anonymous MapPoint Web Service and Virtual Earth 4 10-05-2004 07:16 AM
Control vs. Object Library Labtek MapPoint 2006/2009 Discussion 0 05-24-2003 01:39 AM
MP2K Object Library JPeters MapPoint 2006/2009 Discussion 0 07-23-2002 10:30 AM


All times are GMT -5. The time now is 10:14 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