PDA

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


dhruba.bandopad
7th July 2006, 14:57
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
7th July 2006, 15:10
Check out:

http://forums.winamp.com/showthread.php?threadid=242875

Swapan Das
8th July 2006, 09:41
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
11th July 2006, 08:21
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.