How to pack WebApplication into installation files

xiaoxiao2021-03-06  79

1. Open your .NET, right click on your project (Solution), select Add New Project (add a new project).

2. Select the Web Setup Project (Web Installation item) of Setup and Deployment Projects. (Note SetupProject's storage path. Usually default)

3. VS window displays the file system (you setup name). Use the mouse to click the "Web Application Folder" of the "Web Application Folder" in the left column, right-click "Web Application Folder", select Add Item Output, and select Primary Output and Content Files.

4. Your project will add a new YouSetupname project, which is the installed project. Save it, sometimes it will be wrong.

5. Because .xml ,.rpt, .gif file cannot be automatically added to the project, so you have to add it. In the Solution Explorer, right click on YOUSETUP Project (your installation item name), select "Add File", then add your .rpt, .xml, .gif file;

6. If you use Crystal Report, you will add Crystal Reprot's support file. In the Solution Explorer, right-click YouSetup Project (your installation item name), select Add Merger Module, found in the window, and select C: / Program Files / Common Files / Merge Modules / DotNetCrystalReports.msm, Open, joined;

7. Right-click on the "File System on Target", select the properties, in the Properties window, set the productName to "I have the item name you want to package"

8. Right-click on "Web Application Folder", select the properties, in the Properties window, set the defaultDocument to "your default login page", "start page",

9. Check your YouSetupname project, press right-click, select "Generate"; or "Generate YourSetupFileName" in the "Generation" of the main menu;

10. Then, in the storage path of the C: / Documents and Settings / Administrator / My Documents / Visual Studio Projects / Kaoqin / file, there is a folder of YouSetupname, and there is a debug folder below, you want Debug All of the following files below.

11. Take the file under Debug Folder on the machine you want to install, and then install it. If there is a database, you can restore the library, you can use it.

转载请注明原文地址:https://www.9cbs.com/read-106374.html

New Post(0)