Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I ensure my winform application deployment overwrites old versions

I have created a msi install package for my project from the VS2008 deployment project. but I am having problems when it comes to upgrading installs, The previously installed version does not get overwritten. How do I ensure that previously installed versions get overwritten?

like image 355
fishhead Avatar asked Feb 08 '10 13:02

fishhead


People also ask

Is winform still supported?

But Microsoft begs to differ. "We continue to support and innovate in Windows Forms runtime," said Microsoft's Igor Velikorossov last month in announcing what's new for WinForms in .

How do I install prerequisites in Windows Installer deployment?

With a project selected in Solution Explorer, on the Project menu click Properties. Select the Publish pane. Click the Prerequisites button to open the Prerequisites dialog box. In the Prerequisites dialog box, make sure that the Create setup program to install prerequisite components check box is selected.


1 Answers

  1. In Visual Studio select your Setup project within the Solution Explorer
  2. Open the Properties Window
    • don't right click and select properties.
    • select View - Properties Window
  3. set RemovePreviousVersions to true
  4. increment the version to a higher number
  5. select yes in the upcoming message box

If you built and deploy this new setup, a setup with an older version number will be deleted.

Important: the setup version number is completely independent from your application or assembly version number!

like image 147
Oliver Avatar answered Sep 23 '22 23:09

Oliver