If the key is set to 2, then the component and all associated child components will be uninstalled. This is the most commonly used value in an uninstall script.
If the key is set to 1, then some of component children are to be uninstalled. The Printers or Devices section is typically set to 1. If there is more than one printer object or driver installed and there is a need to run an uninstall script or uninstall a subset of the printer objects or drivers, then a value of 1 would be used for the Printers or Drivers component in the Uninstall section.
Note: | Restart the target computer after all the files are removed. |
Creating the OEMProduct section
Creating the Uninstall section