I want to create setup file for my project with all prerequisites like framework,sqlserver and .log file/db script.
我想为我的项目创建安装文件,其中包含所有先决条件,如framework,sqlserver和.log文件/ db脚本。
I want to run DB script during the installation of my setup. On single click i want to install all this .
我想在安装我的安装过程中运行DB脚本。单击我想安装所有这些。
2 个解决方案
#1
0
In your Project solution Right click Add-> New Project-> Other Project Types-> Setup and Deployment Project -> Visual Studio Installer -> Setup project.
在Project解决方案中右键单击Add-> New Project-> Other Project Types-> Setup and Deployment Project - > Visual Studio Installer - > Setup project。
Then Name your setup Project. Right click on setup project Add-> primary Output and select your project displayed.
为您的安装项目命名。右键单击安装项目Add-> primary Output并选择显示的项目。
Again Right Click the setup project and select View-> File System -> Application Folder. Now copy what you want to be in installation folder.
再次右键单击安装项目,然后选择视图 - >文件系统 - >应用程序文件夹。现在复制您想要在安装文件夹中的内容。
Here is the example tutorial for creation of setup file.
以下是创建安装文件的示例教程。
To run your DBscript on installation you should assign Custom Actions. View-> Custom Actions.
要在安装时运行DBscript,您应该分配自定义操作。查看 - >自定义操作。
Here is the step by step tutorial for opening the web page after installation. In the same way you can assign your own custom action during installation, Roll back, commit and uninstall.
以下是安装后打开网页的分步教程。以同样的方式,您可以在安装,回滚,提交和卸载期间分配自己的自定义操作。
#2
0
Here is the example tutorial for creation of setup file: http://dataerror.blogspot.com.br/2010/06/creating-web-setup-project-for-aspnet.html
以下是创建安装文件的示例教程:http://dataerror.blogspot.com.br/2010/06/creating-web-setup-project-for-aspnet.html
#1
0
In your Project solution Right click Add-> New Project-> Other Project Types-> Setup and Deployment Project -> Visual Studio Installer -> Setup project.
在Project解决方案中右键单击Add-> New Project-> Other Project Types-> Setup and Deployment Project - > Visual Studio Installer - > Setup project。
Then Name your setup Project. Right click on setup project Add-> primary Output and select your project displayed.
为您的安装项目命名。右键单击安装项目Add-> primary Output并选择显示的项目。
Again Right Click the setup project and select View-> File System -> Application Folder. Now copy what you want to be in installation folder.
再次右键单击安装项目,然后选择视图 - >文件系统 - >应用程序文件夹。现在复制您想要在安装文件夹中的内容。
Here is the example tutorial for creation of setup file.
以下是创建安装文件的示例教程。
To run your DBscript on installation you should assign Custom Actions. View-> Custom Actions.
要在安装时运行DBscript,您应该分配自定义操作。查看 - >自定义操作。
Here is the step by step tutorial for opening the web page after installation. In the same way you can assign your own custom action during installation, Roll back, commit and uninstall.
以下是安装后打开网页的分步教程。以同样的方式,您可以在安装,回滚,提交和卸载期间分配自己的自定义操作。
#2
0
Here is the example tutorial for creation of setup file: http://dataerror.blogspot.com.br/2010/06/creating-web-setup-project-for-aspnet.html
以下是创建安装文件的示例教程:http://dataerror.blogspot.com.br/2010/06/creating-web-setup-project-for-aspnet.html