Distrib Map X
Distrib Map X
17
Chapter
MapX Customer Installation Installing MapX Installing Support for Spatial
Server Access Handlers
Installing Raster Format Installing Maps and Geosets Adding Keys to the Windows
Registry String
System dlls will also be installed in the appropriate locations (see Installing MapX on page 254). You can use setup.exe to install the default data supplied with MapX by passing it a "-data" command line argument.
Ideally you will incorporate the installation of MapX into your installation procedure so that your end user will not need to perform a separate installation to install MapX. There are four main steps to installing and distributing MapX applications:
1. Install the necessary files onto your user's computer. 2. Run utilities (such as regsvr32.exe) to register specific files on the user's system. 3. Add specific keys to the Windows registry 4. Pass in the MapX license string at application runtime.
252
Required files:
MapX DLL and its dependent DLLs Windows system files: including fonts, MFC, and OLE dlls
Optional files:
Dataset drivers (used for databinding) Import/Export raster handlers Maps and Geosets
253
Installing MapX
If you have installed MapX on your own computer, its easy to get a rough idea of how many files are used by MapX. MapX v4.x installs the program files under the following path \Program Files\Common Files\MapInfo Shared\MapX Common. MapX v5.0, by default, stores all of the required files in "\Program Files\MapInfo\MapX 5.0". This directory should be used for the MapX required files, whereas all of the files necessary for your application should go under a directory meaningful to the end-user and your specific application. Note: MapX uses some files that are not located in the MapX program directory. For example, MapX uses MFC and OLE dlls that reside in the Windows System directory. We also recommend that the MapX Program directory be: "\Program Files\MapInfo\MapX 5.0". The following table describes what files need to be installed and where they should be installed to.
Files
Other Special Requirements Do a version check before replacing these files. If older version, during replace files may be in use and require a reboot if that is the case. Must be registered using regsvr32.exe Must be registered using regsvr32.exe. Prior to registering, make sure the MapX dependent files are installed. Must be registered using regtyplib.exe
Mfc42.dll, msvcp60.dll, msvcrt.dll, ALT.dll, \Windows\System MFC42.dll, MFC42U.dll (for unicode platforms)
mdatasetint.tlb
254
Installing MapX
Files
MapX dependent files: MapX Program ALLTYPE.DLL, AllTypeRes.dll, AppSelection.dll directory ChangeManager.dll, ColLookupSystem.dll, CommandProcessor.dll, CommandProcessorRes.dll, COORDSYS.DLL, CoordSysRes.dll, CustomProperties.dll, DAENGINE.DLL, DAEngineRes.dll, DBINFO.DLL, DBInfoRes.dll, DBLAYER.DLL, DBLayerRes.dll, DELPHIMM.DLL, ExprPacket.dll, ExprPacketCreator.dll, ExprPacketCreatorRes.dll, ExprPacketRes.dll, FcnInfoServer.dll, FcnInfoServerRes.dll, FIND.DLL, FINDRES.DLL, GEO.DLL, GeoDictionaryManager50.exe, GeoDictionaryManagerIntl50.dll, GeoObject.dll, GeoObjectProcess.dll, GeoObjectProcessRes.dll, GeoObjectRes.dll, GEORES.DLL, GEOSET.DLL, GeosetManager50.exe, GeosetManagerIntl50.dll, GeosetRes.dll, GRIDDLL.DLL, LEGEND.DLL, LegendRes.dll, libspw_mi.dll, MapBasicInternalFcn.dll, MapBasicInternalFcnRes.dll, MapBasicTranslator.dll, MapBasicTranslatorRes.dll, MAPINFOW.FNT, MAPINFOW.PRJ, MAPPER.DLL, MapperRes.dll, MAPX.ABB, MAPX.PEN, MAPX50.DLL, MapXADODS.dll, MapXDAODS.dll, MapXRDODS.dll, mapxstate.dll, mapxstateres.dll, mdatasetint.tlb, MIAPP.DLL, MIAPPRES.DLL, MIDLG50.DLL, MIDLIN50.DLL, MILEXER.DLL, MILexerRes.dll, MIMetadata.dll, MIOCI.DLL, MIODBC.DLL, MIRDB.DLL, MIRDBRES.DLL, mirdbspatial.dll, mirdbspatialRes.dll, MIWINDOW.DLL, MIWindowRes.dll, MOCIDataset50.dll, MODBCDataset.dll, MSafeArrayDataset.dll, MXINTL50.DLL, mxmldataset.dll, RASTER.DLL, RasterRes.dll, REGSVR32.EXE, RegTypLib.exe, STYLES.DLL, TextFileReader.dll, TextFileReaderRes.dll Thematics.dll, ThematicsRes.dll, TOKENS.DLL, TOOLS.DLL, UTILITY.DLL, UtilityRes.dll, WINMGR.DLL, WinMgrRes.dll, XMLUTIL.DLL, XMLUTILRES.DLL,
255
Files
Other Special Requirements These fonts have to be installed and registered with the operating system. Please see below for more information. Only required if using layers with the NAD 27 and NAD 83 coordinate systems.
MapX font files; Windows\Fonts ARIAL.TTF, MAPIS___.TTF, MAPSYM.TTF, directory TTMIAR__.TTF, TTMICG__.TTF, TTMIMI__.TTF, TTMIOG__.TTF, TTMIOS__.TTF, TTMIRE__.TTF, TTMITC__.TTF, TTMIWE__.TTF Nadcon support files: ALASKA.LAS, ALASKA.LOS, CONUS.LAS, CONUS.LOS, HAWAII.LAS, HAWAII.LOS, PRVI.LAS, PRVI.LOS, STGEORGE.LAS, STGEORGE.LOS, STLRNC.LAS, STLRNC.LOS, STPAUL.LAS, STPAUL.LOS Bitmap symbols: TOWE1-32.BMP, POLI1-32.BMP, MBOX232.BMP, GOLF1-32.BMP, TOWE2-32.BMP, RAIL1-32.BMP, MOSQ1-32.BMP, HOSP132.BMP, IEL2-32.BMP, RAIL2-32.BMP, ONEW132.BMP, HOUS1-32.BMP, ADG1-32.BMP, ONEW2-32.BMP, HOUS2-32.BMP, ADG232.BMP, HOUS3-32.BMP, ANK1-32.BMP, ANK232.BMP, OOK1-32.BMP, AMP1-32.BMP, TRAF132.BMP, AR1-32.BMP, TRUC1-32.BMP, RAIL332.BMP, AUT1-32.BMP, TRUC2-32.BMP, REST132.BMP, PENC1-32.BMP, HUR1-32.BMP, YIEL132.BMP, STAT1-32.BMP, PIN1-32.BMP, HYDR132.BMP, AMBU1-32.BMP, STOP1-32.BMP,PIN232.BMP, INTE1-32.BMP, COMP1-32.BMP, SYNA1-32.BMP, PIN3-32.BMP, LITE1-32.BMP, FARM1-32.BMP, TARG1-32.BMP, PIN4-32.BMP, LITE2-32.BMP, FAST1-32.BMP, TAXI1-32.BMP, PIN5-32.BMP, MAIL1-32.BMP, FIRE1-32.BMP, TEMP1-32.BMP, PIN6-32.BMP, MBOX1-32.BMP, GLOB1-32.BMP, MapX Program directory
Underneath the MapX Only required if using Program directory, in a custom bitmap symbols. directory called Custsymb. For example: \Program Files\MapInfo\MapX\ Custsymb
256
Installing MapX
Installing Fonts
MapX also uses some TrueType fonts. These font files (*.ttf) must be copied to Windows Font Folder. Fonts must also be registered with Windows. If you are using a third-party software package to create your installer, that package might handle font registration for you. Otherwise, you can register fonts manually, by calling the Win32 AddFontResource routine. Once a font is properly registered, the registry contains a corresponding key under: -or HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Fonts
257
If your application uses the ODBC data driver, you must register MODBCDataset.dll. If your application uses the Notes data driver, you must register MNotesDataset.dll and MMapXColumnInfo.dll. If your application uses either the ODBC or the Notes data driver, you must register the type library as follows: regtyplib <filespec of mdatasetint.tlb> MapX allows you to bind data to a map layer. Please see,Chapter 9: Putting Your Data On The Map on page 99 for additional information. Note: All of these dataset drivers should be installed in the same directory as MapX. This table illustrates the various options for data binding and what the installation requirements are. All of the files below must be registered with ressup32.exe. Dataset source type Lotus Notes ODBC Delphi v3 Delphi v4 Dataset drivers Mnotesdataset.dll MODBCDataset.dll MgenDSetDrvr.dll, Dslibp.dll MgenDSetDrvr.dll, Dslibp4.dll Installation Requirements Nnotes.dll must be in the system path Odbc32.dll must be in the system path Delphimm.dll must be in the system path Borlndmm.dll must be in the system path. Run RegisterDS4.exe on Dslibp4.dll
258
Delphi v6
MgenDSetDrvr.dll, Dslibp6.dll
MsafeArrayDataset.dll MapXADODS.dll, ATL.dll MapXRDODS.dll, ATL.dll MOCIDataset50.dll MapXDAODS.dll mxmldataset.dll ADO must be installed RDO must be installed Oracle client, mioci.dll, and mirdb.dll must be installed MDAC v2.5 or greater msxml4 must be installed
259
260
TIFF.RHL Spot.rhd ECW.RHL NCSCNET.DLL NCSECW.DLL NCSECWEX.DLL NCSUTIL.DLL MIGRID.DLL ( MIGRIDU.DLL for Unicode) MIRASTER.DLL (MIRASTERU.DLL - for Unicode) GRIDDLL.DLL, MIG.GHL ADAGASRP.RHL CADRGCIB.RHL VMGRID.DLL, NWGRD30.GHL DTED.GHL
GRD
MIG ADRG, ASRP CADRG, CIB, NITF GRD DT? DEM DEM
261
262
Note: The GeoDictionary path is used when adding a geoset to the MapX object without specifying the full path of the Geoset and when using autobinding. In addition, the SearchPaths key is not necessary if not using the GeoDictionary. See Installing Maps and Geosets to determine whether or not these keys are necessary for your application.
263
Visual C++
Again, if using MapX in a dialog in Visual C++, you do not need to perform this step. In order to successfully create the MapX object, you must pass the license string as the bstrLicKey parameter to CMapx::Create().
264
265
266