logo separator

[mkgmap-dev] adding current date to NSIS installer

From WanMil wmgcnfg at web.de on Fri Oct 7 21:01:26 BST 2011

Your input is piped through a formatter which interprets the %d %m and 
%Y as format instructions for a date object which is not available.

Add a second % before each %. Then it should work:
!define /date MyTIMESTAMP "%%d-%%m-%%Y"

Bug? I think the NsisBuilder should be changed not to use a formatter at 
this place because there is nothing to format. But maybe there are 
reasons for that I don't see.

WanMil


> I'm trying to add the current date to the installer file (like osm_map_07-10-2011.exe) and the (un)install information.
> I use the script from this example, http://nsis.sourceforge.net/Date_and_time_in_installer_or_application_name
>
> !define /date MyTIMESTAMP "%d-%m-%Y"
>
> Name "${INSTALLER_DESCRIPTION}${MyTIMESTAMP}"
>
> OutFile "${INSTALLER_NAME}_${MyTIMESTAMP}.exe"
>
>
> Unfortunately, the nsis builder from mkgmap crashes on this !define /date MyTIMESTAMP "%d-%m-%Y" line, see attachment.
> If I add those lines later to the nsi file, it works well. Is this a bug?
>
>
>
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev




More information about the mkgmap-dev mailing list