NSIS - put EXE version into name of installer

前端 未结 7 762
臣服心动
臣服心动 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 04:03

    Call simple VBS script after NSIS compile:

    Set ddr = CreateObject("Scripting.FileSystemObject")
    Version = ddr.GetFileVersion( "..\path_to_version.exe" )
    ddr.MoveFile "OutputSetup.exe", "OutputSetup_" & Version & ".exe"
    

提交回复
热议问题