如何使用C#中的编码UI自动安装软件 [英] How to install software automatically with Coded UI in C#

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

问题描述

我正在开发一个工具,该工具将自动在PC中安装软件. 我正在尝试使用Visual Studio 2013中的编码UI进行此操作.
要安装该软件,我需要在设置窗口中单击下一步"按钮.但是当我单击按钮时,它显示警告-

I'm developing a tool which will automatically install a software in PC. I'm trying to do this with Coded UI in visual studio 2013.
To install the software I need to click on the "Next" button on setup window. But when I click on the button its showing a warning -

拒绝访问该应用程序

Access to the application is denied

以下是问题的屏幕截图-

Here is the screenshot of the issue -

我如何使该过程自动化?
除了编码用户界面,我应该考虑自动安装软件吗?

How can i automate the process?
Is there any better approach rather than Coded UI that I should think about to install the software automatically?

推荐答案

只需在管理员模式下运行Visual Studio2013.
请参阅

Just run Visual Studio 2013 in Administrator mode.
See this thread to get more clear idea.

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

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