C#, updating installed app with the Windows Installer

Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Oct 2009
Posts: 2
Reputation: educated_fool is an unknown quantity at this point 
Solved Threads: 0
educated_fool educated_fool is offline Offline
Newbie Poster

C#, updating installed app with the Windows Installer

 
0
  #1
Oct 18th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 3,361
Reputation: sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of 
Solved Threads: 605
Sponsor
sknake's Avatar
sknake sknake is online now Online
.NET Enthusiast
 
0
  #2
Oct 18th, 2009
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.
Scott Knake
Custom Software Development
Apex Software, Inc.
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 2
Reputation: educated_fool is an unknown quantity at this point 
Solved Threads: 0
educated_fool educated_fool is offline Offline
Newbie Poster
 
0
  #3
Oct 18th, 2009
Sknake, thanks a lot! You really helped me to cope with the problem.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 3,361
Reputation: sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of 
Solved Threads: 605
Sponsor
sknake's Avatar
sknake sknake is online now Online
.NET Enthusiast
 
0
  #4
Oct 18th, 2009
You're welcome

Please mark this thread as solved if you have found a solution to your question and good luck!
Scott Knake
Custom Software Development
Apex Software, Inc.
Reply With Quote Quick reply to this message  
Reply

Tags
install, update

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum
Thread Tools Search this Thread



Tag cloud for install, update
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC