943,982 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Marked Solved
  • Views: 1868
  • C# RSS
Oct 18th, 2009
0

C#, updating installed app with the Windows Installer

Expand Post »
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.
Last edited by educated_fool; Oct 18th, 2009 at 9:39 am.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
educated_fool is offline Offline
7 posts
since Oct 2009
Oct 18th, 2009
0
Re: C#, updating installed app with the Windows Installer
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.
Featured Poster
Reputation Points: 1749
Solved Threads: 735
Senior Poster
sknake is offline Offline
3,948 posts
since Feb 2009
Oct 18th, 2009
0
Re: C#, updating installed app with the Windows Installer
Sknake, thanks a lot! You really helped me to cope with the problem.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
educated_fool is offline Offline
7 posts
since Oct 2009
Oct 18th, 2009
0
Re: C#, updating installed app with the Windows Installer
You're welcome

Please mark this thread as solved if you have found a solution to your question and good luck!
Featured Poster
Reputation Points: 1749
Solved Threads: 735
Senior Poster
sknake is offline Offline
3,948 posts
since Feb 2009
Oct 13th, 2011
0

problem persist

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
narin143 is offline Offline
1 posts
since Oct 2011

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: Help Me Please
Next Thread in C# Forum Timeline: c# newbie





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC