How can you check/retrieve the currently installed version of an application?
I need a method of retrieving the currently installed version of an application. Specifically, I would like to retrieve this installed version and compare it to the current version of the installation program that the user is currently running and take action based on the results.
Any property or condition I can evaluate? Any advice or insight is appreciated.
I hope someone can help me out as this resolving this issue is fairly important.
Here is some added information about my situation:
1. My installation project type is a Standard Project.
2. I think if I can somehow retrieve the value for the MSI property INSTALLPROPERTY_VERSIONSTRING, it may go a long way towards finding the solution to my problem.
Thanks in advance for the help!
use the upgrade table
you'd have to use the upgrade table (available in "direct editor", only):
add the upgrade code of the product you want to check.
add the version range and a target property.
set the mode to "detect ONLY".
don't forget to add your custom property to the "securecustomproperties" or whatever it's called.
off you go ...
cheers, graven (basic MSI)
If you get a hold of the Windows Installer help from Microsoft, this has an example of how to setup your upgrade table.