【发布时间】:2021-05-13 03:30:27
【问题描述】:
有人可以帮助我编写一个简单的脚本,将两个键(TAB 和 Enter)发送到卸载提示符吗?
我正在尝试静默卸载 IObit Uninstaller,但 /silent /supressmsgboxes 不起作用。
这是我目前所拥有的:
Start-Process "C:\Program Files (x86)\IObit\IObit Uninstaller\unins000.exe"
[System.Windows.Forms.SendKeys]::SendWait("{TAB}")
[System.Windows.Forms.SendKeys]::SendWait("{ENTER}")
它不会返回错误,但它也不起作用。
问候, 亚历克斯
【问题讨论】:
-
请显示您已经尝试过的代码并解释不起作用的含义。收到错误信息?请将这些也添加到问题中。
-
来自here(第10行),我认为只需要一个开关
/SILENT:& 'C:\Program Files (x86)\IObit\IObit Uninstaller\unins000.exe' /SILENT
标签: powershell uninstallation sendkeys silent