logo separator

[mkgmap-dev] [Patch] Add Spanish to nsis installer

From Minko ligfietser at online.nl on Sat Mar 3 15:52:00 GMT 2012

I already found a partly solution to my own question:
How to compile a simple installer without my users bothering to install nsis.

I still have to use makensis.exe, but it runs standalone and I can distribute it with mkgmap
in my zip files (together with a nsis subdir called Stubs).

Mkgmap is compiled with the following
nsis template in the resources folder (I removed all the fancy GUI stuff from the default template)
http://mijndev.openstreetmap.nl/~ligfietser/diverse/installer_template.nsi

Now users can run my script and it will call makensis.exe, that
compiles a simple install.exe/uninstall.exe file.


----------
I wrote:

Speaking about the installer, is it possible to include a simple
installer.bat script or reg file to install/uninstall only the registry values 
of index, tdb, overview map and typ file in the Windows registry?

With nsis one needs to install nsis too, if mkgmap can register
the map where it is located/compiled, it will be more convenient.

Something like the output of the nsi file:

; Create MapSource registry keys
  WriteRegStr HKLM "SOFTWARE\Garmin\MapSource\Families\${REG_KEY}" "IDX" "$INSTDIR\${MAPNAME}.mdx"
  WriteRegStr HKLM "SOFTWARE\Garmin\MapSource\Families\${REG_KEY}" "MDR" "$INSTDIR\${MAPNAME}_mdr.img"

etc

with $INSTDIR = path where the img files are located and the 
batch file is executed (variabele %~dp0 in a dosbatch script)



More information about the mkgmap-dev mailing list