开发者

Uninstalling the application silently / automatially

开发者 https://www.devze.com 2023-01-18 00:09 出处:网络
Is it possible that my application, when exit, uninstalls itself automatically, without any user 开发者_StackOverflowintervention and involvement?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消