user175084
user175084

Reputation: 4630

MSI to uninstall before new install

I want to reinstall over an existing installation. is it possilble to configure MSI to automatically uninstall the existing (whatever version) and then install the 'new' version.I would like to be able to uninstall before the install and I can't seem to find out how. Any/all help would be greatly appreciated.

I have done all these steps below and still feel that the product is not getting uninstalled but instead the files are getting overwritten.

  1. Set Remove Previous Installation as True
  2. Set Detect new version as True
  3. You should change version of your installer to one higher version and it will ask you to change product code, select YES. Do not change your upgrade code, let it be same.

Upvotes: 2

Views: 4894

Answers (1)

Rob Mensching
Rob Mensching

Reputation: 35901

Yes, you want a Major Upgrade with the RemoveExistingProducts action scheduled before the InstallInitialize action. That will cause the old package to be removed before the new one starts to install (you'll still go through the new MSI UI).

Upvotes: 2

Related Questions