16

Is there any way to run custom code during the installation or uninstallation of a ClickOnce app?

This question has been asked before here, but that was a long time ago, the answer given there was IMHO very kludgy, and I'm kind of hoping that the later releases of VS have provided a more elegant solution...

Community
  • 1
  • 1
Shaul Behr
  • 36,951
  • 69
  • 249
  • 387

3 Answers3

5

Check the following articles:

Administering ClickOnce Deployments

Walkthrough: Creating a Custom Installer for a ClickOnce Application

Leniel Maccaferri
  • 100,159
  • 46
  • 371
  • 480
2

This solution is not very elegant but works:

ClickOnce application autostart and clean uninstall or the way to customize ClickOnce installation

Thiago
  • 1,103
  • 1
  • 16
  • 25
1

ClickOnce does not have the capability to do post-install or post-uninstall actions EXCEPT for the VSTO applications. Is your app a VSTO application?

RobinDotNet
  • 11,723
  • 3
  • 30
  • 33