Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
445 B

  1. Function UninstallCab ()
  2. Const PRO_ID = "Windows XP Support Tools on Desktop"
  3. CONST SERVER_ID = "Windows Support Tools"
  4. Dim PCHUpdate
  5. Dim Item
  6. Dim strProductId
  7. Set PCHUpdate = CreateObject("HCU.PCHUpdate")
  8. For Each Item in PCHUpdate.VersionList
  9. If Item.ProductId = PRO_ID OR Item.ProductId = SERVER_ID Then
  10. strProductId = Item.ProductId
  11. Item.Uninstall
  12. End If
  13. Next
  14. Set PCHUpdate = Nothing
  15. UninstallCab = 1
  16. End Function