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.