If you publish a new version and your users install it, either by automatic updates or otherwise, it will replace the old version. Is that what you want
Basically, whenever you run a ClickOnce app, it handles checking for a newer version and downloading and using that version instead.
If you are asking whether you can install an app via ClickOnce and have it remove an app that was previously installed using Windows Installer, ClickOnce can't do that, but your application on startup can use the Windows Installer Object Model to detect if the MSI ProductCode of interest is installed and call the uninstall actions to remove it if it is.
Uninstall previous version
niroshanonline
Manish Sinha
I'm not exactly sure what you are asking...
Basically, whenever you run a ClickOnce app, it handles checking for a newer version and downloading and using that version instead.
If you are asking whether you can install an app via ClickOnce and have it remove an app that was previously installed using Windows Installer, ClickOnce can't do that, but your application on startup can use the Windows Installer Object Model to detect if the MSI ProductCode of interest is installed and call the uninstall actions to remove it if it is.
HTH