Pack WebApplication into an installation file

xiaoxiao2021-03-06  76

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 YOUSETUP Project (your installation item name), select "Add File", then add your .rpt, .xml, .gif file; 6. If you use Crystal Report, Just add a support file for Crystal Reprot. 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, join; 7. Right-click the file system on the "Target computer", select the properties, set the productName to "Item name you want to pack" 8. Right-click on "Web Application Folders" In the Properties window, set the defaultdocument to "You Default Login page", "start page", 9. Select your yousetupname project, press right-click, select "Generate"; or in the main menu "Generate YourTupFileName"; 10. Then, in the storage path of the C: / Documents and Settings / Administrator / My Documents / Visual Studio Projects / Kaoqin / file, there will be a folder of YouSetupname, and there is a Debug below Folders, you want is all files below Debug. 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-105331.html

New Post(0)