Microsoft's launch mechanism goes deeper and deeper

Source: Internet
Author: User
I just wrote a software program using the csf-window program, but I want to package and generate the. exe file for others. I am a newbie. You can teach me how to generate the. exe file step by step. You have generated the file during compilation and debugging, under the Dbug folder in the bin directory.
If you want to generate an installer
The procedure is as follows:
Select your solution, right-click and select Properties
On the pop-up page, there is a button "publish" in the left column"
To set the application file, you need to select 'include ''system essentials' for the required dll. If the installation target cannot be determined whether. net2.0 is installed, You need to include. net framwork 2.0.
Make sure to select the release location (where is the first selection path) and click release now.

That's simple. Microsoft's release mechanism is very simple. Don't forget to score it.

 

 

1. In. net, right-click your project (solution) and select add new project (add new project ).

2. Select the web setup project (web installation project) of setup and deployment projects ). (Note the storage path of the setupproject. Usually by default)

3. The vs window displays the File System (you setup name ). Click the plus sign of "web application folder" in the left column, right-click and select "web application folder", and select "add project output ",
Select both primary output and content files.

4. A new yousetupname project will be added to your project, which is the installed project. Save it. Sometimes an error occurs.

5. Because the. xml,. rpt, And. gif files cannot be automatically added to the project, you must add them manually. In Solution Explorer, right-click the YouSetup project (your installation project name), select "add file", and add your. rpt,. xml, and. gif files;

6. If you use crystal report, add the support file for crystal reprot. In Solution Explorer, right-click the YouSetup project (your installation project name), select "add merging module", find it in the window, and select C: \ Program Files \ Common Files \ Merge Modules \ DotNETCrystalReports. msm. Open it and add it;



7. Right-click "File System on the target computer", select properties, and set productName to "Name of the project you want to package" in the Properties window"

8. Right-click "web application folder" and select properties. In the Properties window, set DefaultDocument to "your default logon page", that is, "start page ",

9. Select Your yousetupname project, right-click and select "generate"; or select "generate yourSetupFileName" in "generate" of the main menu ";

10. then, there will be a yousetupname folder under the storage path of C: \ Documents and Settings \ Administrator \ My Documents ents \ Visual Studio Projects \ KaoQin \ file, and a debug folder below, all the files under debug are required.

11. Test the files under debug folder on the machine you want to install, and then install the files. If there is a database, you can restore the database in advance and use it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.