Skip to content
⌘ NSIS Forum Archive

NSISDT Unicode

3 posts

flizebogen#

NSISDT Unicode

With NSIS 3.07 defaulting to unicode I checked my scripts and found errors because i use the nsisdt plugin. Unfortunately there is no unicode version of the plugin.

Has anyone a working example getting the date via windows API?

this is the code snippet I use for ANSI builds

    StrCpy $0 "%d.%m.%Y - %H.%M Uhr"
    nsisdt::currentdate
    StrCpy "$Datum" "$0" 
Anders#
Just because the default changed does not mean you cannot use ANSI anymore but all installers should be Unicode these days.

Your options are:

- Use FileFunc.nsh
- Use the CallAnsi plug-in
- Use System::Call on the time functions in kernel32
- Recompile the plug-in with Unicode support