Question

We are developing customized installer using visual studio 2008 installer project. The requirement which we are trying to adress is; suppose user starts installation and if already older version is available on same machine then we should promp user to upgrade the version and needs to show list of files which are new in this version. For the same we are currently trying to retrieve the installer vesion thorugh code but is unable to do so. Can anyone let us know the appropriate approach using which we would be able to detect whether older version is available on machine.

Was it helpful?

Solution

Try to use a windows registry. When you install the old app the registry must be added and when a new app is being installed check the registry and see the registry version value if the registry is found then just show an error message and terminate the installation wizard.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top