删除windows ce上的执行文件
我想在 windows ce 上制作一个卸载程序。
问题是我想在执行其他所有操作后删除卸载程序本身。
这有可能吗?或者有什么办法可以用另一种方式制作卸载程序?
i want to make a uninstaller on windows ce.
The Problem is I want to delete the uninstaller itself after executed everything else.
Is this possible somehow? Or is there someway to make a unistaller in another way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您只需让应用程序将其自身移动到回收站即可。这很痛苦,因为您必须通过 P/Invoke 来使用不直观的结构来完成此操作。这个样本应该对此有所帮助。
You can just have the app move itself to the recycle bin. It's a pain because you have to P/Invoke to do this with an unintuative structure. This swatch should help with that.
Killer.cmd:
在退出卸载程序之前启动它,这样
uninstaller.exe
将尽快被删除,然后killer.cmd
也会被删除。// 不过,不确定 CE 中是否有 .cmd。
killer.cmd:
Start it before exitting your uninstaller, so
uninstaller.exe
will be removed as soon as it's possible, and thenkiller.cmd
is also removed.// Though, not sure if there are .cmds in CE.