Page 1 of 1

Find out previous installed version number during upgrade

Posted: Tue Sep 08, 2009 7:18 am
by joltman
How can we find out the version number of the previous installed version of our application.

i.e the version number entered under project properties in installaware.

Best regards

Posted: Tue Sep 08, 2009 3:16 pm
by neillans
You need to go dumpster (sorry - registry!) diving.

For example, a quick example project I threw together with product ID {85758FB3-2B04-4B93-BD9E-2C763DDCD707}

wrote information to:
HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{85758FB3-2B04-4B93-BD9E-2C763DDCD707}

One of the items is DisplayVersion.

There you go!

Posted: Wed Sep 09, 2009 2:12 am
by joltman
Ah, ok, i solved it in a similar way by writing a value with the version to the registry during install.

Best regards