C packaged applications introduced with.NETFramework

  • 2020-05-10 18:41:08
  • OfStack

1, create a new project, the type of installation project or installation wizard in installation and deployment
2. Double-click the application folder and add all required files (including ICONS, Access, pictures and dll, etc.), especially the files to be generated by the written application to be packaged, exe files in the bin/debug folders. Its icon is set in the project property generation in this programming project, and it is best to rename it, since it cannot be renamed after inclusion, so that when installed on target pc it is the name and icon of inclusion.

3. For application exe, add exe shortcuts to the desktop menu and user management menu (that is, "start", preferably a folder, and add and uninstall exe shortcuts), and left-click to set icon in the properties that appear (right sidebar).

4, add and uninstall exe: from c: windows/system32 add msiexec.exe and rename it uninstall.exe then create the shortcut, left-click on the item, find product code in the property page that appears in the left sidebar,   copy arguments of uninstall shortcut and add/x.product code.with {}

5. Right-click on the project, select properties, and rename the exe file to be generated in the dialog box that appears.   click system prerequisite, where you select the required components, including.net framework 3.5. Select the following location in the same location as my application to install the system prerequisites from this path. (to be continued, here's how to add.net 3.5.)

6, right click on the project, view user interface, the interface dialog box when installation will appear, you can create a new dialog box, you can also add pictures at the top of the installation dialog box, by setting bannerbitmap to achieve. Note that the name of the project also appears in the installation dialog, so it's a good idea to name the project (left-click the project and change product name and Title in the properties).

7. Left-click the application folder, and the DefaultLocation option is set for the installation path. The default setting is C:Program Files/ [manufacturer]/ application name

The following highlights packaging includes.net framework

1. The package is the.net 3.5 offline version. First download the full version. After unzip 231mb, put the downloaded 3.5 x86 (32-bit machine) Chinese language package copy into the folder dotNetFX35\x86. Click dotNetFx35setup.exe to install the offline version.

2. Add dotNetFx35setup.exe to the project, including only this single 1exe (2.3m). After generation, it will include all the.net components (231m). Right-click on the project -- properties -- system prerequisite, select net35 and select the following as the local download with installer 1; The middle one.

3, right click on the project "view" start conditions, click. net framework, installurl to dotNetFx35setup.exe (as long as the installation file path 1), the original for Microsoft official download.

4. Click generate.

My application is only 2,3 m when packaged, but with the.net platform, it is 250m.


Related articles: