This article focuses on the process of using the VS2010 visual Studio Installer to package ZigBee programs (VS2010 writing).
1, open the ZigBee program, add "New project" in the solution--and other project types--install and deploy the-->visual Studio installer--> installation project, named Zigbeeinstall.
2, at this time in the VS2010 file system has three folders, as shown, "Application Folder" means to install the application needs to add files; "User's Program menu" means: The application is installed, the user's "Start Menu" in the contents of the display, usually in this folder, You need to create a folder to store: the application. exe and the uninstaller. exe; "User desktop" means: This application is installed, the user's desktop is created by the. exe shortcut.
3. Right-click on "Application Folder" and "project output" as shown in.
Right-click the main output from ZigBee (active) in the Application folder and create a shortcut from ZigBee (active) to the main output, renamed ZigBee, and placed in the user's Programs menu and User Desktops folder.
4. Right-click on the Applications folder-----Add folders or files, and the files you add are typically files in the debug directory of the application that have been compiled and some attached and illustrated files.
5. Add the Uninstaller (C:windows\system32\msiexec.exe) in the Application folder, create its shortcut, and rename it "Uninstall" to put it in the "User's Program Menu" folder Enter the Zigbeeinstall project properties, locate the ProductCode, copy its contents, paste it in the argument of the Uninstall shortcut property, and add the/x option before it.
Note: msiexec/x {ProductCode Code for application installation package}
The file is added as shown:
6. Add an icon for the ZigBee shortcut in the user's Program menu and User Desktop folder: Add an icon to the icons for the properties of the corresponding shortcut (should be placed in the application folder)
7. Enter the Zigbeeinstall Item property and set it accordingly, as shown in:
8. Click on the menu bar "items" and "properties" to open the Project Properties dialog box as shown in:
Click on "Prerequisites" and select the appropriate setup program.
9. Build a solution.
10. Double-click the program in the Debug folder to install it.
Note: When installing on other computers, only the debug folder is copied to the past in order to install properly, otherwise there will be an error.
VS Installer Tutorials