Announcement

Collapse
No announcement yet.

NSISDT Unicode

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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"
        
    nsisdt::currentdate
        StrCpy 
    "$Datum" "$0" 

  • #2
    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

    Comment


    • #3
      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

      Comment

      Working...
      X
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎