Skip to content
⌘ NSIS Forum Archive

QUERY: detect MS Installer or any exe file Version Number?

4 posts

dhruba.bandopad#

QUERY: detect MS Installer or any exe file Version Number?

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?
kichik#
Check out:

Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
Swapan Das#
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
dhruba.bandopad#
Originally posted by Swapan Das
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
That's assuming one is told they also need the GetFileVersion macro.