Reference online: http://blog.csdn.net/hanghwp/archive/2009/03/17/3998083.aspx
1. The configuration file does not need to be introduced into the packaging file.
Ii. software packaging and deployment process:
1. Create a deployment project step by step.
2. Modify the properties of the package project, right-click the properties of the deployment project -- ", and modify the attributes of author, manufacturer, and productname, such:
3. Select to deploy ProgramProject to automatically add reference to the dependency. For example:
Select primary output
4. Add the main program and other program files (if any). I will add the main program bigrelicimagemanager.exe, for example:
5. create shortcuts for the main program. after renaming, place the shortcuts under the user's desktop and the user's Program folder.
Desktop shortcuts:
6. Create an icon for the shortcut and click shortcut> Properties> icon> browse
Open the graphic icon dialog box and Click Browse. Set the file to executable program. .exe -- Application folder -- main application.
Click OK to complete the setting.
7. Uninstall the software:
Second, use MSI to implement
In the Application folder on the left, add the c: \ windows \ system32 \ msiexec.exefile, which can be changed to uninstall.exe. Then, follow the steps mentioned above to create a shortcut for the file to be detached and paste it to the user's "program" menu.
In step 3, create a folder in the program menu, so put the file in this folder. Otherwise, after the packaged program is installed, in the start-> program list, there are two shortcuts that seem unrelated. To facilitate identification, change the shortcut name to "Uninstall **" and ** to the software name.
Modify the argument attribute value of this shortcut to "/X {productcode}". For details about how to view productcode, see the first method in step 1.
8. Generate the deployment file and obtain the installation file.