
Attached patch adds Spanish to nsis installer template and extends "AlreadyInstalled" message for the three languages currently available. One issue found is that when reinstalling a map, the "AlreadyInstalled" message shows estrange symbols instead of the special characters such as ó, á or similar. Tested on windows xp and linux (wine).

Now the patch, not the complete file. :-[ El 29/02/12 22:41, Carlos Dávila escribió:
Attached patch adds Spanish to nsis installer template and extends "AlreadyInstalled" message for the three languages currently available. One issue found is that when reinstalling a map, the "AlreadyInstalled" message shows estrange symbols instead of the special characters such as ó, á or similar. Tested on windows xp and linux (wine).

These would be the lines for german: !insertmacro MUI_LANGUAGE "German" LangString AlreadyInstalled ${LANG_GERMAN} "${INSTALLER_NAME} ist bereits installiert. $\n$\nKlick `OK` um die alte Verison zu deinstallieren oder `Abbrechen` um die Installation abzubrechen." Maybe someone is able to integrate this too. Henning

Here is the Dutch translation: !insertmacro MUI_LANGUAGE "Dutch" LangString AlreadyInstalled ${LANG_DUTCH} "${INSTALLER_NAME} is reeds geinstalleerd. $\n$\nKlik op `OK` om de oude versie te verwijderen of `Annuleren` om deze update te onderbreken." 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)

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)

On 03/03/12 15:52, Minko wrote:
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
It is worth adding that it quite reasonable that mkgmap should write a .reg file to go along with all the other windows files. It wouldn't be hard to do. ..Steve

Sorry, there is a tiny little spelling mistake in my text ;) !insertmacro MUI_LANGUAGE "German" LangString AlreadyInstalled ${LANG_GERMAN} "${INSTALLER_NAME} ist bereits installiert. $\n$\nKlick `OK` um die alte Version zu deinstallieren oder `Abbrechen` um die Installation abzubrechen."
participants (4)
-
aighes
-
Carlos Dávila
-
Minko
-
Steve Ratcliffe