![]() |
#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:
|
![]() |
![]() |
![]() |
#2 |
Moderator
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 |
![]() |
![]() |
![]() |
#3 |
Major Dude
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) NSIS 3 POSIX Ninja Wiki Profile |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|