GPSFileDepot Forums

General Category => Map Making Support => Topic started by: Boyd on January 01, 2010, 08:48:03 PM

Title: Creating an installer with custom types
Post by: Boyd on January 01, 2010, 08:48:03 PM
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?
Title: Re: Creating an installer with custom types
Post by: Boyd on January 01, 2010, 09:28:38 PM
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!