如何创建Web应用程序的.exe或.msi文件(安装文件) [英] How to create .exe or .msi file (setup file) of web application

查看:115
本文介绍了如何创建Web应用程序的.exe或.msi文件(安装文件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在ASP.Net和后端Sqlserver 2000中创建了Web应用程序



我想在公司服务器上传应用程序,我们将使用此应用程序

仅供内部使用。



他们需要此应用程序的安装文件,如.exe或.msi文件,以便他们可以在任何机器上运行此设置在公司内部并连接到服务器。



我已通过以下链接创建了安装文件 -



http://weblogs.asp.net/scottgu/archive/2007/06/15/tip-trick-creating-packaged-asp-net-setup-programs-with-vs-2005.aspx





我创建安装文件并完成直到第3步..但是当我尝试安装安装程序时,它继续下一页它将显示WebSiteName和虚拟目录名称但是在单击下一个按钮后,安装已启动,但在一段时间后,操作将回滚并显示消息安装程序在安装setup1之前被中断。您需要重新启动安装程序并重试。



我的系统详细信息是 - Visual Studio 2008,sql server 2000,Windows XP Professional SP3,IIS 5.1



问候,



Reshma

解决方案

< blockquote>尝试

创建Web设置项目for asp.net Application using Visual Studio [ ^ ]

http:// www。 wisdombay.com/articles/article000014.htm [ ^ ]

http://www.dotnetforce.com/Content .aspx?t = a& n = 214 [ ^ ]


步骤:

1。打开Visual Studio - > 项目

2。选择设置和部署右侧窗格中的左侧和 Web安装项目。选择位置创建安装文件的位置并提供名称解决方案。

3。该应用程序将具有 bin Web应用程序文件夹下的文件,在这里你必须将 bin 重命名为 bin1

4。 复制粘贴您已发布的文件。

5。粘贴数据后,文件夹中包含 bin bin1 ,删除 bin1 您重新命名的文件夹。

6。右键单击 Web应用程序文件夹选择属性窗口

7。默认文档设置为应用程序启动登录页面(Login.aspx)。

8。解决方案资源管理器选择用户界面编辑器

9。 / b>在用户界面编辑器中,选择中添加对话开始

10。在添加对话框中选择客户信息,然后单击确定

11。。默认情况下,客户信息将在最后,因此向上移动一步。

12. 选择属性获取客户信息

13 。 序列号模板在那里,我们可以创建关键字模板的多种可能性



< b> SerialNumberTemplate属性的有效可编辑字符为:


字符含义

需要一个不包含在验证算法中的数字。

需要一个将包含在验证算法中的数字。

需要一个字母数字字符不包含在验证算法中。

^ 需要大写或小写字符。数字数字在这里无效。

< 此字符左侧的任何字符都不会显示在对话框中。

> 对话框中将不会显示此角色右侧的任何字符。如果<必需作为终止符。使用了字符。



任何其他字符都被视为文字常量。



例如,将SerialNumberTemplate属性设置为<   ###      -      %%%%  > 创建两个由空格包围的短划线分隔的文本框。验证第一个框(###)只是验证用户输入了三位数。第二个框(%%%%)由一个算法验证,该算法将数字加在一起并将总和除以7.如果余数为0,则验证成功;否则,它失败了。 

示例
????? - %%%%% - ????? - ????? - ?????
您仍然可以在键中使用数字和字母组合,但第二个框将始终包含数字 - 即BC45T - 340707 - 1XFFE - EFT22 - 1XYZ3







14。将Show 序列号属性设置为 True

15。构建流程

16。 Go到项目创建的本地文件夹并复制.msi扩展文件并安装应用程序


I have created web application in ASP.Net and backend Sqlserver 2000

I want to upload application on my company server and we will use this application
For internal purpose only.

They need setup file of this application like .exe or .msi file so that they can run this setup on any machine inside the company and connect to the server.

I have created setup file by following below link –

http://weblogs.asp.net/scottgu/archive/2007/06/15/tip-trick-creating-packaged-asp-net-setup-programs-with-vs-2005.aspx


I created Setup file and completed till step 3.. but when I am trying to install setup it goes on next page It will show WebSiteName and Virual directory name but after clicking next button Installation is started but after some time action is rollback and showing the message Installer was interrupted before setup1 could be installed. You need to restart the installer and try again.

My system details are – Visual Studio 2008, sql server 2000, Windows XP Professional SP3, IIS 5.1

Regards,

Reshma

解决方案

Try
Creating a Web Setup Project for asp.net Application Using Visual Studio [^]
http://www.wisdombay.com/articles/article000014.htm[^]
http://www.dotnetforce.com/Content.aspx?t=a&n=214[^]


Steps:
1.Open Visual studio New--> project.
2.Select Setup and deployment in left side and Web Setup Project in right side pane.Select the Location where to create the setup file and give Name to solution.
3.The application will have the bin file under Web Application Folder,here you have to rename bin into bin1.
4.Copy and Paste File that you have published.
5.After data pasted the folder have bin and bin1 ,delete bin1 folder you re-named .
6.Right click the Web Application Folder select the Properties Window.
7.Set Default Document as Application starting Login page ( Login.aspx ).
8.In Solution Explorer Select User interface Editor.
9.In User Interface Editor ,Select add Dialogue in Start.
10.Select Customer information in Add Dialogue Box and click OK.
11.. By default Customer Information will be at last so move above one step.
12.Select property for Customer Information
13.Serial number template are there , we can create number of possibilities of keyword template

Valid editable characters for the SerialNumberTemplate property are:
Char Meaning
# Requires a digit that will not be included in the validation algorithm.
% Requires a digit that will be included in the validation algorithm.
? Requires an alphanumeric character that will not be included in the validation algorithm.
^ Requires an uppercase or lowercase character. Numeric digits are not valid here.
< Any characters to the left of this character will not be visible in the dialog box.
> Any characters to the right of this character will not be visible in the dialog box. Required as a terminator if the < character is used.

Any other character is treated as a literal constant.

For example, setting the SerialNumberTemplate property to "<### - %%%%>" creates two text boxes separated by a dash surrounded by spaces. Validation for the first box (###) simply verifies that the user has entered three digits. The second box (%%%%) is validated by an algorithm that adds the digits together and divides the sum by 7. If the remainder is 0, validation succeeds; otherwise, it fails.

Example
                  ????? - %%%%% - ????? - ????? - ?????
 You could still use a mix of numbers and letters in your keys, but the second box would always contain numbers - i.e. "BC45T - 340707 - 1XFFE - EFT22 - 1XYZ3




14.Set Show Serial Number properties to True.
15.Build the Process
16.Go to the Local folder where the project created and copy the .msi Extension file and install the application


这篇关于如何创建Web应用程序的.exe或.msi文件(安装文件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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