Pitney Bowes MapXtreme User Manual

Page 459

Advertising
background image

Appendix A: How to Create and Deploy a MapXtreme Application

Building a Desktop Application

MapXtreme v7.1

466

Developer Guide

5. In the Add > File dialog box, select All Files from the dropdown list in the Files of Type box, then

navigate to the location of your data files.

6. Select all of the files you need to add to the setup project.

7. Click Open. The files are added to the Solution Explorer, under the ThemeLegendVB project.

8. Repeat steps 5-8 if you have files in different paths to add to your setup project.

L

If you are deploying this application to another machine, the absolute paths for the data
on the development computer and the deployment computer must be identical.

To view or change the path that the setup file is written to:

1. Right-click on the setup project and choose Properties from the menu.

2. In the Setup Property Pages, the Output File Name can be changed. This is also where you

choose the configuration (debug or release) to build into the setup file.

If you wish to place your built application in the Start menu, on the File System Tab, right click on the
User’s Programs Menu and click Create shortcut to User’s Programs Menu and set the name and
properties as needed. Alternatively, a script can be written to place the program on the start menu
exactly where you would like it placed (for example, in a sub-menu).

Similarly, to place a shortcut on the user’s desktop, right click on the User’s Desktop and click
Create shortcut to User’s Programs Menu and set the name and properties as needed. Alternatively,
a script can be written to create the shortcut and place it on the user's desktop.

Add a License File

Next, you’ll need to supply a desktop license file with your application (MapXtremeDesktop.lic) so
that your users will be able to use it. See

Runtime Licenses for Deployment

.

To illustrate how to add a license file, we will include a copy of the Trial license in the package.

1

When you package your own applications, you will need to supply the runtime license.

1. From the Visual Studio interface, click on the File System(Setup) tab.

2. Right-click on the Application Folder icon, and choose Add > File.

3. In the Add Files dialog box, navigate to C:\Program Files\Common

Files\MapInfo\MapXtreme\7.x.x), and select MapXtremeTrial.lic. Click Open.

The file is now added to your setup project and will be installed with the other application files into
your application folder.

1.

MapXtremeTrial.lic must come from an SDK or runtime installation of MapXtreme in order to create a
package for deployment. You cannot create a setup project using the Evaluation version of MapXtreme.

Advertising