I have written a Clickonce application. Now I need to find a way to uninstall the previous versions of the application when updating to a new version. This because otherwise the users need a lot of space when running the application.
Is there a way to uninstall the previous version in clickonce using source code?