c# run .msu 从代码安装
有没有办法从代码中静默运行 .msu 安装?
我知道使用 msi 文件是可能的,但是当我运行 .msu 时,它失败了。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
有没有办法从代码中静默运行 .msu 安装?
我知道使用 msi 文件是可能的,但是当我运行 .msu 时,它失败了。
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
这取决于“来自代码”的含义。如果您愿意运行单独的 EXE(而不是调用 API),则可以使用
WUSA.exe
来安装 .MSU 文件。请参阅知识库文章 934307,Windows Vista、Windows 7 中的 Windows Update 独立安装程序 (Wusa.exe) 和 of.msu 文件的说明、Windows Server 2008 和 Windows Server 2008 R2。
It depends on what you mean by "from code". If you are willing to run a separate EXE (rather than invoke an API), then you can use
WUSA.exe
to install .MSU files. See KB 934307,Description of the Windows Update Stand-alone Installer (Wusa.exe) and of.msu files in Windows Vista, Windows 7, Windows Server 2008 and in Windows Server 2008 R2.