开发者

Having complete control over a launched application using the Process class

开发者 https://www.devze.com 2022-12-12 11:20 出处:网络
I am aware of the process class and its methods/properties, as well as the ProcessInfo class (I think thats the name), which give you reasonable control over an application you launch via code, using

I am aware of the process class and its methods/properties, as well as the ProcessInfo class (I think thats the name), which give you reasonable control over an application you launch via code, using this class.

However, if for example I launch an installer, how can I get complete control over the installer so 开发者_StackOverflow社区I can click Next/Back, specify the directory, the features to install (checkboxes), and so forth?

I am guessing this may be a job for Win32 API, in which case, does a C# wrapper exist for this?

Thanks


You need to use UI Automation for this. It's a .NET library and is fairly easy to use once you get the hang of it.

0

精彩评论

暂无评论...
验证码 换一张
取 消