C # package an application (uninstall the Application)
1:Uninstall
[Continued] about adding the "Uninstall" Function
The above article only introduces a simple method for generating and installing,
However, vs. net2005 does not directly generate the uninstall program function,
So we have to use MSI to implement it,
I will not talk about the principle. I will search for a bunch of images online. I will only talk about operations,
[1]: when setting the purpose of your application, add an msiexec.exe multiple times,
This file is in the C: windowssystem32 folder,
After the program is added, change its name to "uninstall.exe" to make it more like an uninstallation program ",
Of course, this does not matter much. It can be changed without modification.
Then create a shortcut for him and put it on the desktop or "start-program,
I chose to put it in the Start menu, and what we want to do below is to find the productcode of the deployment project,
Click the project name with the left mouse button, remember to click the project name with the left mouse button, and then click the attribute tag. Note: it is not a right-click attribute,
This is very different. Now you can see the productcode,
Then open the shortcut Property dialog box that you created,
Enter "/X {productcode}" in the aguements attribute }",
Click "generate solution" to generate the installer with the uninstall function.