在aspx页面下载软件代码 [英] Download software code in aspx page

查看:76
本文介绍了在aspx页面下载软件代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,



我希望代码在aspx网页上下载页面加载的软件,当我知道response.redirect(abc。 exe)然后我的软件开始安装在页面加载但不显示我的html页面

Hello All,

I want code to download a software on page load in aspx web page,i have problem when i wrtite response.redirect("abc.exe") then my software start installed on page load but not show my html page

推荐答案

提供exe文件的链接总是很难实现。很多浏览器都会阻止exe的下载。反病毒和组织组策略也是如此。



MS提供了一个用于安装.Net应用程序的部署框架。该框架称为ClickOnce。



您可以将要安装的exe发布为ClickOnce应用程序,也可以创建一个包装器,如果您没有访问权限,则会安装exe来源。



ClickOnce部署 [ ^ ]



同时做一个响应重定向到exe文件总是一个坏主意。否则你可能会非常干扰地尝试强制软件安装给所有用户。



如果直接从用户操作下载文件,浏览器不太可能阻止下载例如单击exe的超链接。将响应重定向到exe是一种不好的做法。
Providing links to exe files is always a difficult thing to pull off. Lots of browsers will block the download of exe. As will anti virus and organisation group policy.

MS has provided a deployment framework for installing .Net applications. The framework is called ClickOnce.

You can either publish the exe you want installed as a ClickOnce application or create a wrapper which installs the exe if you don't have access to the source.

ClickOnce Deployment [^]

Also doing a response redirect to an exe file is always a bad idea. Otherwise you could quite intrusively try and force software installation to all of your users.

Browsers are less inclined to block a download if the file is downloaded directly from a user action such as clicking a hyperlink for the exe. Doing a response redirect to an exe is a poor practice.


这篇关于在aspx页面下载软件代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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