In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
How to carry out simple and unmistakable VS2003 packaging, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.
When I use these samples, basically most of the VS2003-based Asp.net projects cannot be loaded because a few files cannot be converted. The content of these VS2003 packages is very shallow, so I was angry for a long time, and finally let me find a solution.
New installation and deployment project
Open VS, click New Project, select: other Project types-> install and deploy-> installation Wizard (same as installation project), and then click OK.
installation wizard
After closing, open the installation wizard, click next, or click finish directly.
Start production
After the installation wizard is complete, you can enter the project folder: double-click Application folder, right-click in the space on the right, select add-> File, and add the executable of your application and the corresponding class libraries and components.
Then right-click your executable file, create a shortcut, and then cut or copy the shortcut to the user's programs menu and user Desktop on the left.
This way, the installer will generate shortcuts to the program on start-> all programs and Desktop after installation.
Then right-click the Application folder on the left to open the properties dialog box:
Remove "[manufacturer]" from the path of "defaultlocation" in the attribute
Otherwise, the default installation directory of the finished installer will be "c:\ programm file\ your user name\ installation solution name"
Then open solution Manager, right-click your solution name, and select Properties: in the property page that opens, select prerequisites.
In the prerequisites page that opens, select the selection below, which is very important! 1!
When selected, the .netframework component is included in the generated installation package. (this option is not selected by default)
All right, this is 99% complete, and then click "generate-> generate solution", ha, generated successfully!
Production completed
Now open the debug folder under the solution folder and you can see the generated installation files.
About the addition of "uninstall" function
The above article only introduces a simple way to generate an installation
But there is no function to generate the uninstall program directly under vs.net2005.
So we have to use msi to implement it.
I won't talk about the principle. I'll search a bunch on the Internet. I'll only talk about operation.
When adding your application project, add an extra msiexec.exe to it
This file is in the c:\ windows\ system32 folder
After adding it, in order to make him more like an uninstall program, change his name to "Uninstall.exe"
Of course, it doesn't matter much. It doesn't matter whether we change it or not.
Then create a shortcut for him and put it on the desktop or in "start-Program"
I chose to put it in the start menu, and then all we need to do is find the ProductCode of the deployment project.
Click the project name with the left mouse button, remember that it is the left click, and then click the attribute tab. Note: it is not a right-click attribute.
There's a big difference, and then you can see ProductCode.
Then open the properties dialog box for the shortcut you created
Enter "/ x {ProductCode}" in the Aguements property
OK, then click build solution to generate an installer with uninstall function.
Note: if you need a VS2003 packaged Framework environment, you need a component download address: http://www.microsoft.com/downloads/details.aspx?familyid=627921a0-d9e7-43d6-a293-72f9c370bd19&displaylang=en
You can pack it directly after installation.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.