Visual Studio Setup Project that upgrades an existing app

Is it possible to make a SETUP project in Visual Studio that *does not install* but upgrades an app that already exists on the user's disk ? Example: the user has version 1.1 of the product and we want to send em a SETUP / INSTALLER that upgrades 1.1 to 1.2 ?

Regards, MadSeb

Answers


Sure. First you create an installer for the new version.

If the old version was installed by a MSI package:

  • find the old MSI UpgradeCode
  • after building the new MSI open it with Orca
  • go to "Property" table and set the UpgradeCode of the old MSI
  • this way the new package should automatically uninstall the old one

If it was installed by a custom package:

  • in you new package add a custom action which removes the old version (for example launches the old version uninstaller or manually deletes all application resources)
  • make sure the custom action runs before "InstallInitialize" action in "InstallExecuteSequence" table (you can edit the action sequence with Orca)

Need Your Help

converting .class into .java

java eclipse reverse-engineering decompiling .class-file

I deleted a Java project from my hard disk in an attempt to do some refactoring with Eclipse. Luckily I found a recent version of an Executable Jar File and decrompressed it into a bunch of .class ...

How to remove the git remote branch from bitbucket?

git bitbucket

I try to remove the git remote branch on the bitbucket by git push command:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.