Leaked source code of windows server 2003
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.

26 lines
549 B

  1. Function UninstallCab()
  2. on error resume next
  3. Const PRO_ID = "Windows Support Tools on Desktop"
  4. CONST SERVER_ID = "Windows Support Tools"
  5. Dim PCHUpdate
  6. Dim Item
  7. Dim strProductId
  8. Set PCHUpdate = CreateObject("HCU.PCHUpdate")
  9. if not PCHUpdate is nothing then
  10. For Each Item in PCHUpdate.VersionList
  11. If Item.ProductId = PRO_ID OR Item.ProductId = SERVER_ID Then
  12. strProductId = Item.ProductId
  13. Item.Uninstall
  14. End If
  15. Next
  16. Set PCHUpdate = Nothing
  17. end if
  18. UninstallCab = 1
  19. End Function