NSIS - put EXE version into name of installer

前端 未结 7 765
臣服心动
臣服心动 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:38

    Since NSISv3.0 this can be done with !getddlversion without using any third-party software:

    !getdllversion "MyApp.exe" ver
    Name "MyName ${ver1}.${ver2}.${ver3}.${ver4}"
    OutFile "my_name_install_v.${ver1}.${ver2}.${ver3}.${ver4}.exe"
    

提交回复
热议问题