AutoUpdater.NET icon indicating copy to clipboard operation
AutoUpdater.NET copied to clipboard

Ability to complete uninstall and Reinstall for .MSI Updates

Open fsbflavio opened this issue 2 years ago • 3 comments

Feature Add support for complete uninstallation and reinstallation using .MSI files. Currently, the package only updates DLLs, which can lead to issues with outdated files.

Problem The current approach requires changing all .dll file versions for a proper update, leading to issues with outdated DLL files.

Suggested Implementation: Include update mode configurations in the xml file, such as 'Reinstall' and 'Remove and Install,' to provide options for performing a complete uninstallation and reinstallation.

fsbflavio avatar Jun 24 '23 00:06 fsbflavio

You can add args element to XML to provide arguments to your MSI installer for this.

<args>Your installer command line arguments</args>

ravibpatel avatar Jun 24 '23 06:06 ravibpatel

There is no single command that accomplishes that. You will need to use separate commands to achieve the desired outcome. Here is an example:

msiexec.exe /x {ProductCode} /qn msiexec.exe /i "C:\NewVersion.msi" /qn

To remove all the program and then install the new version.

fsbflavio avatar Jun 27 '23 02:06 fsbflavio

Yes, it would be very good if it remove the existing version before updating, if this is possible

foxi69 avatar Dec 18 '23 21:12 foxi69