Uninstalling the application silently / automatially
Is it possible that my application, when exit, uninstalls itself automatically, without any user 开发者_StackOverflowintervention and involvement?
Thanks
Yes, this is possible. You need to detect the shutdown (perhaps via the Application.OnExit
event), and then in the event handler you could call Process.Start
that will kick off the uninstall.
You will need to make sure your application has fully existed by the time the uninstaller needs to remove it.
精彩评论