How to use UNC paths instead of hard paths in config files

By default, the CMSi installer will reference file locations with mapped drive paths. However there are times when UNC paths need to be used instead as the mapped drives that a user sees may be different to those on the server where CMSi is being installed. 

The key files to customise are:

  • CMSI-MDI.exe.config
  • map/CMSI_LAYER_STUB.inc (especially if you get map errors saying there is no map object found but you do not have the rights to create one)
  • map/base_layers.inc
  • map/mylayers.inc

In the CMSI-MDI.exe.config, there are a number of lines to edit relating to the location of the map files, report library and startup icon. 

In the CMSI_LAYER_STUB.inc, you need to edit the line that points to the msplugin_mssql2008.dll

In the base_layers.inc and mylayers.inc, you may need to edit the lines that point to physical files. 

 

There is a key difference to how you add the UNC paths in CMSI-MDI.exe.config and CMSI_LAYER_STUB.inc compared to the mapping files. In the former, you add a UNC path as normal with two backslashes at the start e.g.  "\\Myserver\CMSi" but with the mapping files, the path must start with four backslashes

Find out more