NSIS - put EXE version into name of installer

前端 未结 7 755
臣服心动
臣服心动 2020-12-24 03:04

NSIS has a Name variable that you define in the script:

Name \"MyApp\"

It defines the name of the installer, that gets displayed as the win

7条回答
  •  天涯浪人
    2020-12-24 03:45

    Since NSIS v3.0a0 you can do it directly in the script, no external tools needed: !getdllversion

    Sample code (from the documentation):

    !getdllversion "$%WINDIR%\Explorer.exe" Expv_
    !echo "Explorer.exe version is ${Expv_1}.${Expv_2}.${Expv_3}.${Expv_4}"
    

提交回复
热议问题