I liked the NSIS scripts to detect whether .NET is installed and which version.
Does anyone know if it's possible to detect whether Microsoft Installer 3.1 (KB893803) or later?
Also, does anyone know if it's possible to read file version number of an executable?
PS: QUERY: detect MS Installer or any exe file Version Number?
QUERY: detect MS Installer or any exe file Version Number?
4 posts
To read file version number of an executable you can use the command : GetFileVersion
example : ${GetFileVersion} '$INSTDIR\MyApp.exe' $OUT2
; the variable $OUT2 will contain the exe ver.
See the help for GetFileVersion in NSIS Manual
example : ${GetFileVersion} '$INSTDIR\MyApp.exe' $OUT2
; the variable $OUT2 will contain the exe ver.
See the help for GetFileVersion in NSIS Manual
Originally posted by Swapan DasThat's assuming one is told they also need the GetFileVersion macro.
To read file version number of an executable you can use the command : GetFileVersion
example : ${GetFileVersion} '$INSTDIR\MyApp.exe' $OUT2
; the variable $OUT2 will contain the exe ver.
See the help for GetFileVersion in NSIS Manual