TIL: Some NSIS utility functions

  • To trim a string use:
  • [sourcecode language=”perl”]
    ${WordReplace} $target " " "" "{}" $output
    [/sourcecode]

  • To get day/time info use:
  • [sourcecode language=”perl”]
    ${GetTime} "" "L" $Day $Month $Year $DayOfWeek $Hour $Minute $Second
    [/sourcecode]

  • To check a string for invalid characters you can use ${StrFilter}

Leave a Reply

Your email address will not be published. Required fields are marked *