Old 19th August 2021, 16:33   #1
Senior Member
Join Date: Jan 2002
Location: Berlin
Posts: 172
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

PHP Code:
    StrCpy $"%d.%m.%Y - %H.%M Uhr"
"$Datum" "$0" 
flizebogen is offline   Reply With Quote
Old 19th August 2021, 21:25   #2
Anders's Avatar
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,450
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

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 21st August 2021, 13:33   #3
Major Dude
JasonFriday13's Avatar
Join Date: May 2005
Location: New Zealand
Posts: 916
Or ${GetTime} from FileFunc.nsh: https://nsis.sourceforge.io/GetTime.

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump