Hello, dear All

I have the following problem: i have a .net (C#) app and a Windows Installer project to deploy it. Now i want this Installer project be able not just to install the app onto a 'bare' client machine, but also to check if some previous version of the app has been already installed and update it if necessary.
At first glance, this problem seems as very common and easy to find solution for, but, surprisingly, Google says nothing about it. If somebody knows at least where to look for a solution - i'ld be very grateful for a help.

Click on the installer in your solution explorer and look in the properties window. Set these properties:
DetectNewerInstalledVersion = True
RemovePreviousVersions = True

That will allow you to upgrade machines and stop accidental downgrades.

Sknake, thanks a lot! You really helped me to cope with the problem.

You're welcome

Please mark this thread as solved if you have found a solution to your question and good luck!

by setting the following properties

DetectNewerInstalledVersion = True
RemovePreviousVersions = True

Setup didn't prompt that another version is already installed, Its updates automatically the previous version installed.

But the problem is it is not updating the exe file; it updates the icon file only.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.