Delete Task Scheduler task at Uninstall?

梦想的初衷 提交于 2020-03-20 05:35:20

问题


My installed app creates a Task Scheduler task at run-time. This Task Scheduler task runs one of my installed apps at Windows log on. So I need to delete this Task Scheduler task at uninstall. Is the Inno Setup-Uninstaller able to do this?

OS: Win 7/8/10 x64


回答1:


Run schtasks /Delete from [UninstallRun] section:

[UninstallRun]
Filename: "schtasks"; Parameters: "/Delete /TN ""My Task"" /F"; Flags: runhidden

This is similar to creating a task with Inno Setup.



来源:https://stackoverflow.com/questions/52185023/delete-task-scheduler-task-at-uninstall

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!