我们可以从Web应用程序下载窗口应用程序的exe吗? [英] Can we download a window application's exe from a web application???

查看:154
本文介绍了我们可以从Web应用程序下载窗口应用程序的exe吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以从Web应用程序中下载窗口应用程序的exe吗?
如果可以的话,方案是:
1.该网站将提供向下链接该exe的链接.
2.单击链接后,将首先检查该计算机上是否已存在该exe,
如果确实要覆盖版本,则只需下载即可.
请提供相同的示例代码.

Can we download a window application''s exe from a web application???
If we can the scenario is:
1. The website will have a link to downdoad the exe.
2. When the link is clicked it will first be checked if the exe already exists on the computer,
if it does than overwrite the version, else simply download.
Please provide a sample code for the same.

推荐答案

是的,您可以从Web应用程序下载任何类型的文件,但不能强制客户端执行以下操作:替换他系统中的现有文件,因为您的网站无法访问客户端计算机.客户端可以自由地将文件保存在任何位置.

为此,您可以开发一个active-x控件来检查客户端计算机并执行所需的操作,但是为此客户端需要在其系统中安装active-x控件.
Yes, you can download any type of files from a web application, but you can''t force the client to replace an existing file in his system, as your website don''t have any access to the clients machine. Client is free to save the file any where.

To achieve this you can develop a active-x control which checks the clients machine and do what you are looking for, but for this client need to install the active-x control in his system.


我认为ClickOnce安装程序可以解决您的问题.
I think ClickOnce installer can solve your problem.


这篇关于我们可以从Web应用程序下载窗口应用程序的exe吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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