Having complete control over a launched application using the Process class
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.
精彩评论