Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/319.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 从服务器到客户端访问网站后运行.msi安装文件_C#_Asp.net - Fatal编程技术网

C# 从服务器到客户端访问网站后运行.msi安装文件

C# 从服务器到客户端访问网站后运行.msi安装文件,c#,asp.net,C#,Asp.net,我用C#在ASP.NET中创建了一个web应用程序。访问应用程序时,我在浏览器窗口中收到以下消息: --------------------------- Windows Internet Explorer --------------------------- Stop running this script? A script on this page is causing Internet Explorer to run slowly. If it continues to run, yo

我用C#在ASP.NET中创建了一个web应用程序。访问应用程序时,我在浏览器窗口中收到以下消息:

---------------------------
Windows Internet Explorer
---------------------------
Stop running this script?
A script on this page is causing Internet Explorer to run slowly.
If it continues to run, your computer might become unresponsive. 
我对这个问题进行了研究,发现了以下链接,作为这个问题的解决方案:


我想在客户端首次访问网站时执行此设置。如何在客户端运行此安装程序

正如@cHao所说,从网站上完全自动运行某些程序是不可能的,这是所有浏览器都禁止的。 但您可以查看ClickOnce部署,它允许在一次单击中快速轻松地安装您的程序。

是否让浏览器自动运行安装程序?祝你好运。有适当的安全机制来防止这种事情发生……长时间运行的脚本被认为是糟糕的设计。你应该让他们更快,而不是黑客IE设置。