views:

24

answers:

1

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.

+1  A: 

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.

RagZ
Thanks Ragz, I am creating a setup for my project using Visual studio deployment project and am not using wizard to create setup (I am creating a custom installer) For this I am using Installer class to handle Install and Uninstall using overridemethods for the same but unable to handle the re-install scenario using installer class (if user re-installs the same version).
NewAutoUser