GPSFileDepot.com
 

News:

Welcome to GPSFileDepot!

Main Menu

Creating an installer with custom types

Started by Boyd, January 01, 2010, 08:48:03 PM

Previous topic - Next topic

Boyd

First time trying to create my own installer.  :)

Using Mapset Toolkit, I can install my map and custom types file and everything works fine. I removed this, and created an installer with NSIS using the tutorial here. The maps are installed, but the custom type is not. So the map works in Mapsource, but it looks completely wrong because it is displaying in the default style.

I don't understand what is needed in the .nsi script here:

!define MAP_TYPE            11224          ; only if using custom types

I assume that this number should be replaced with my custom type file? In mapset toolkit, I used a custom type file named 123109.typ, so I changed this line to read

!define MAP_TYPE            123109

I assume this is wrong? How do I make the custom type file install correctly?

Boyd

Aha, that did it. Actually the installer script was a little different, looks like you had your .typ file in another directory.

File /a "..\garmin\types\${MAP_TYPE}.typ"    ; only if using custom type

I changed this to be the same as your example above, and that did the trick. Thanks!