[Patch] Add Spanish to nsis installer

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[Patch] Add Spanish to nsis installer

Carlos Dávila-2
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).

_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

installer_template.nsi (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Patch] Add Spanish to nsis installer

Carlos Dávila-2
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).

_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

add_spanish_nsis_installer.patch (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Patch] Add Spanish to nsis installer

osm-8
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

_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Patch] Add Spanish to nsis installer

ligfietser
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)
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Patch] Add Spanish to nsis installer

osm-8
In reply to this post by osm-8
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."



_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Patch] Add Spanish to nsis installer

ligfietser
In reply to this post by ligfietser
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)
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Patch] Add Spanish to nsis installer

Steve Ratcliffe
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
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev