如何在C#中自动执行组策略软件安装 [英] How to automate Group Policy Software Installation in C#

查看:109
本文介绍了如何在C#中自动执行组策略软件安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有人知道如何在C#中更新组策略软件安装.我想制作一个可以自动执行.msi安装的应用程序...

Does anyone know how to update group policy software installation in C#. I want to make an application that will automate .msi installations...

Thanks in advance!

推荐答案

您可以使用Process.Start启动一个msi,并且可以获取返回的进程的句柄并等待其结束(这是可能需要p/invoke),然后再开始下一个.
You can use Process.Start to start an msi, and you can get the handle of the process returned and wait for it to end ( this may require p/invoke ) before starting the next one.


这篇关于如何在C#中自动执行组策略软件安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆