C # Winform program package

xiaoxiao2021-03-05  26

I learned C # Winform program this morning to pack. Yesterday, I saw a netizen's issued program, which included the packaged installer, so today I want to try the WinForm program you just write. Although I have been exploited for two hours, it is finally packaged, installed and executed. Simply record the process first as follows:

First, c # winform packaging tools

When the program adds a project, select "New Project", in the pop-up box, the project type selection "Installation and Deployment Project", the template selection "Install" or "Install" (recommended "Install Wizard"), enter the installation item The name, the path defaults to the directory where the scheme is stored. After confirming, the dialog box of the installation wizard is pop-up, click Next, select "Create the installer for Windows Applications" in the New Dialog box, click Next, select the project output group in the new dialog box "(Recommended all choice), according to a prompt step, you can choose additional files, and finally click Finish.

Second, the packaging process

Returns to the development environment, in the Explorer, select the newly established installation and deployment project, you can see it, in "Application Folder", select "Main Output ..." Right click "to create a master output ... ... "shortcut, create two, rename it as the appropriate name, then drag two shortcuts to" User's Program Menu "and" User Desktop ". After the above operation is completed, you can select the installation and deployment items in the resource manager, right-click "Regeneration", will complete the packaging process.

After the package is complete, go to the directory stored by the package file, you can see the packaged file, click the EXE file for installation test. After the installation is complete, you can see the startup entry of the item in the desktop and program strips.

Third, other instructions

1. View the installation directory, may have source files, the solution is to remove the "source files ..." and "debug ..." in the package application folder.

2, in the package setting, you can set the icon of the desktop shortcut, the icon in the program bar, etc.

3. If there is no "Install Wizard", some content needs to be done manually.

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

New Post(0)