Today I have studied how to package windows froms programs.
Running Environment: vs2010 English version
. NET Framework 2.0
I searched several articles online:
1:
Teach you how to use C # package an application (installer) [Uninstall a module added]
Address: http://hi.baidu.com/sunxiangwei/blog/item/2b09948f0c15a4ff503d926e.html
2:
How to Use vs to create a winform installation package
Address: http://www.cnblogs.com/chankcheng/articles/1774932.html
3: vs2010 does not have a. NET 2.0 prerequisite release package when creating a setup project.
Reference: the problem is solved. vs2008 is reinstalled on the virtual machine, and the "dotnetfx" folder is extracted from c: \ Program Files \ microsoft sdks \ windows \ v6.0a \ bootstrapper \ packages, this is. NET 2.0 prerequisite installation package, copy to c: \ Program Files \ microsoft sdks \ windows \ v7.0a \ bootstrapper \ packages, and then select in vs2010.. NET 2.0 is a prerequisite. This will check whether the system is installed during project installation. NET 2.0, if not installed, install the project package. NET 2.0 Framework.
Address: http://www.cnblogs.com/fcsh820/archive/2010/10/16/1852983.html
4: vs.net application icons and Setup of installation shortcuts
Code
Reference:
Set the shortcut icon when creating the installation program (packaging the application) in the vs.net environment:
1. Create a new installation and deployment project;
2. Select the "File System" menu item from the "View" menu and add the program files to be packaged to the "Application folder ";
3. Right-click the EXE file to create a shortcut, select "create XXXXX shortcut", and drag the shortcut file to the "user program menu" folder;
4. Select the shortcut file with the mouse, set the icon attribute in property manager, and select the custom icon;
5. Repeat Steps 3 and 4 to create a desktop shortcut;
Http://hi.baidu.com/songshu5555/blog/item/f2d24ece18d94a35b600c82b.html