Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to explain the Web Setup Project project

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces how to explain the Web Setup Project project, the content is very detailed, interested friends can use for reference, I hope it can be helpful to you.

With the progress of the times and the development of science and technology, Web Setup Project is also rapidly upgraded and upgraded. Below, I will make my own analysis of the Web Setup Project before and after the upgrade.

1. Select the "Other Project Types"-> "Setup and Deployment" node in the left tree view of the "New Project" dialog box, and select "Web Setup Project" on the right.

2. In Solution Explorer, right-click on Solution, select "Add"-> "Existing Web Site", and add the folder where the compiled Web website is stored into Solution. If you add a website compiled with aspnet_compiler, the following prompt box may appear, just click "Yes".

3. Add osql.exe;CreateDB.txt;database.mdf;database_Log.ldfosql.exe to the compiled website can be found in the sqlserver installation folder, about the use of osql and parameters, please find another information, CreatDB.txt records the relative location of the database, such as the database is placed in the root of the site, then the CreatDB.txt content is empty.

4. Add a new "Class Library", named "CreateDB", for the operation of creating the database. Delete the default generated "class1.cs", right-click on the project, select "Add"-> "New Item", select "Installer Class" in the pop-up dialog box, and click OK. The required namespaces are:

5. Right-click on the "Web Setup Project" project and select "Add"-> "File" to add the script createdb.sql that creates database tables, stored procedures, and views. Repeat, add the script insertdata.sql that adds the underlying data to the datasheet. Repeat, add the program osql.exe.

Answers to questions related to Visual Studio .NET

Interpretation of Visual Studio Project Management T

Briefly describe the program experience of Visual Studio 2008

Describe the meaning of the content contained in Visual Studio

Introduction to Visual Studio 2010 F#

6. Right-click on the "Web Setup Project" project, select "Add"-> "Merge Module", select "VC_User_CRT71_RTL_X86_---.msm" in the pop-up dialog box, and click OK. The VC runtime was added because when testing on a clean machine, it was found that the osql.exe program needed it.

7. Right-click on the "Web Setup Project" project and select "Properties". You can set some properties of the installer in the pop-up dialog box. Click the button "Prerequisites", select ".NET Framework 2.0" and "Windows Installer 3.1" and select "Download prerequisites from the same location as my application" in the pop-up dialog box. In this way, these components and applications can be packaged together and automatically detected and installed at installation time. If the computer that needs to be deployed is not patched, there is no "Windows Installer 3.1", and without this component," .NET Framework 2.0" cannot be installed.

8. Right-click on the "Web Setup Project" project, select "View"-> "Custom Actions", right-click on the node "Install" of the tree view that appears, and select "Add Custom Actions". Select "Web Application Folders" in "Look in" in the pop-up dialog box, select "Primary output from CreateDB (Active)" below, and click OK.

9. Right-click on the "Web Setup Project" project, select "View"-> "User Interface", right-click on the child node "Start" of the tree node "Install" that appears, select "Add Dialog", and select "TextBoxes (A)" in the pop-up dialog box.

On how to explain the Web Setup Project project to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report