Before installation of My NSIS program is it possible to check the version of an exisiting exe to see if its the correct version?
I don't really mean by checking it through the Reg though, as this does not show the correct version info.
The original game is version 18.104.22.168, there are two updates for this game which will change the version to 22.214.171.124 or 126.96.36.199
I only want my NSIS program to install if the version is 188.8.131.52 otherwize you will get a message saying that you will need to update the game before you can install my NSIS program then quit
If it is the correct version it will install normally
At the momment My NSIS program checks the reg to see if the game is the correct version then installs
using this bit of script
ReadRegStr $0 HKLM "SOFTWARE\\Game software\\v1.0" "Version"
IntCmp $0 1 +1 +1 +3
MessageBox MB_ICONINFORMATION|MB_OK "WARNING: GAME needs to be updated to version 2.02."
This is fine, but my NSIS program will install if the Games 2.01 update has been installed, which will bugger up the entire installation and make the game unplayable
See in the Reg the "version" is either 1 for the original or 2 if either update has been added.
Which makes checking the reg pointless
Like I said the only real way to check this would be from the Games EXE as this shows the true version.
Any help would be greatly appriciated plus showing me how the script should look
Thanks in advance