上传exe应用程序 [英] Upload an exe application

查看:128
本文介绍了上传exe应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我是编程网站的新手。我认为会有关于这个主题的大量信息,但我只是没有发现任何信息。这是我需要学习的情况:



1.用户登录我的网站并请求我的应用程序的演示版本(.exe,C#,ASP.NET)

2.安装程序准备就绪,但是 -

如何确保请求者使用Windows XP(或更高版本)到桌面或笔记本电脑?

如何将程序发送给请求者?

如何绕过(或容纳)防火墙,防病毒和/或管理块?

哪里(临时互联网文件夹?)最初会降落?

如何在请求者的计算机上启动初始安装过程?

如何验证安装成功了吗?



我知道这是一大堆主题,但有人可以引导我朝正确的方向(教程,书籍,文章,解决方案等) )?



非常感谢您提供的任何帮助。

解决方案

对于d esktop应用程序:

- 操作系统要求:如果您的软件已安装,则在安装程序中检查操作系统(例如.msi)。对于创建安装程序,您可以使用WiX,NSIS,InstallShield LE或Visual Studio 2010或更低版本,设置和安装程序。部署项目。在此阶段,您还要检查.NET版本,任何所需的软件,如SQL服务器,任何其他第三方库等。每个不同的安装程序创建工具包的论坛都有一些示例。

- 您不发送文件,用户从您网站的链接下载它(使用MIME / application / octet-stream例如)。

- 你没有绕过防火墙,防病毒定义和UAC,它们是有原因的。用户应该允许您的应用程序或安装程序,并在必要时提升它。充其量,您可以创建一个如何安装文件或示例教程视频。

- 临时Internet文件夹的位置不应该是您的关注。如果用户下载它,他/她将选择下载的位置。如果用户从iexplore中选择运行,它将自动启动。

- 您没有启动初始安装命令,用户这样做。这是正确的方式;即使可能,大多数人也不习惯自动执行可以绕过他们所拥有的任何安全措施的二进制文件,例如防火墙和防病毒软件。

- 安装程序验证安装是否成功。如果需要,您可以添加自定义操作,在安装成功时向您发送电子邮件,但它会被防火墙截获,并且可能被视为安全威胁或私人信息泄露,因为用户不会忘记您的程序送走。

关于验证传输的新想法:为实现这一目标,可以采用许多不同的方法。例如,正如我之前所写的那样,您可以创建一个自定义操作,该操作会在成功安装时触发,该操作会向您发送电子邮件。作为替代方案,您可以创建一个执行传输的exe文件,并在安装程序中调用该exe。您可以对此进行编程,以便在安装失败时,它会发送错误的详细信息。

您也可以在首次启动应用时发送验证信息。当程序第一次执行时,您尝试发送成功信息。如果可以,那么您将保持验证传输状态的布尔值更新为true。如果不是,那就说错了。通过这种方式,如果用户在安装或首次启动期间不在线,则再次尝试(只要bool为false)。

更奇特的方式可能是将包含安装细节的文本文件上传到您的24/7可用服务器或您的Dropbox / google docs帐户(或任何其他带有API的云服务)。

您可以创建自己的Web服务,并在幕后自动进行一种注册工作。

请注意,如果用户将此程序安装到完全脱机的计算机上,则无法自动执行此操作。



In简而言之,一旦用户下载安装程序,他的责任/权限就是允许您的应用程序获得多项权限。当然,您可以准备文件/视听辅助工具。

如果您提供更多清除的详细信息,我们可能会提供更多帮助。

Hello,

I'm new to the website side of programming. I would think there would be an abundance of information on this topic, but I'm just not finding any. Here's the situation I need to learn:

1. User signs onto my website and request a demo version of my application (.exe, C#, ASP.NET)
2. The install program is sitting ready to go, but-
How do I ensure requestor is using Windows XP (or later) to a desk top or lap top?
How do I send the program to the requestor?
How do I get around (or accomodate) Firewalls, Anti-virus, and/or administration blocks?
Where (temporary internet folder?) will it initially land?
How do I launch the initial install process on the requestor's computer?
How do I validate the installation was successful?

I know that is a mouthful of topics, but can someone please steer me in the right direction (tutorial, books, articles, solutions, etc.)?

Thank you so much for any help you may have to offer.

解决方案

For desktop applications:
- OS Requirements: If your software is "installed", then you check operating system in the installer (.msi, for example). For creating installers, you can use WiX, NSIS, InstallShield LE, or for Visual Studio 2010 or lower, a setup & deployment project. In this phase, you also check for .NET version, any required software such as SQL server, any additional third party libraries...etc. There are examples in forums of each different installer creation kit.
- You do not send the file, user "downloads" it from a link in your web site (with a MIME of application/octet-stream for example).
- You do not "get around" firewalls, antivirus definitions and UAC, they are there for a reason. Users should allow your application or installer, and elevates it if necessary. At best, you could create a 'how to install' file or an example tutorial video.
- Location of temporary internet folder should not be a concern of you. If the user downloads it, he/she will choose where to download. If the user selects "Run" from iexplore, it will automatically launched.
- You do not launch the initial install command, users do it. It is the proper way; even if possible, most people will not be comfortable with autoexecuting binaries that can get around any security measure that they have, such as firewalls and antiviruses.
- Installers validate the installation is successful. If you want, you can add a custom action that sends you an email when the installation is successful, but it will be intercepted by a firewall, and may be considered a security threat or leak of private information since users will not not what your program sends away.
New thoughts on verification transmission: There are many different approaches that could be followed to achieve this. For example, as I have written before, you can create a custom action that triggers on a successful installation which sends an email to you. As an alternative, you can create an exe file that does the transmission works, and call that exe within the installer. You can program this such that if the installation fails, it sends the details of the error.
You could send the verification information on the first launch of your app, as well. When the program is executed for the first time, you try to send the success info. If you could, then you update the boolean that holds the state of verification transmission to true. If not, it says false. By this way, if the user is not online during installation or first launch, you try again (as long as the bool is false).
More exotic ways could be uploading a text file that includes the details of the installation to your 24/7 available server or your dropbox/google docs account (or any other cloud service with an API).
You may create a web service of your own and do a kind of registration work automatically behind the scenes as well.
Please note that if the user installs this program to a completely offline computer, there is no possible way of doing it automatically.

In short, once a user downloads the installer, it is his responsibility/authority to allow your application several privileges. You could prepare a document/audio-visual aid, of course.
If you provide more clear details of what you want to do, we may be of more help.


这篇关于上传exe应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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