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.

60 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name :
  4. msi.cpp
  5. Abstract:
  6. remove TSAC MSI client
  7. Author:
  8. nadima
  9. Revision History:
  10. --*/
  11. #include "stdafx.h"
  12. #include "msi.h"
  13. #define TSAC_PRODUCT_CODE _T("{B6CAA8E1-4F33-4208-B25E-0376200202D0}")
  14. //
  15. // Uninstall the TSAC MSI files
  16. //
  17. HRESULT UninstallTSACMsi()
  18. {
  19. UINT status;
  20. INSTALLUILEVEL prevUiLevel;
  21. DBGMSG((_T("UninstallTSACMsi ENTER")));
  22. //
  23. // Hide the UI
  24. //
  25. prevUiLevel = MsiSetInternalUI(INSTALLUILEVEL_NONE,
  26. NULL);
  27. //
  28. // Uninstall TSAC
  29. //
  30. status = MsiConfigureProduct(TSAC_PRODUCT_CODE,
  31. INSTALLLEVEL_MAXIMUM,
  32. INSTALLSTATE_ABSENT);
  33. DBGMSG((_T("MsiConfigureProduct to remove TSAC returned: %d"),
  34. status));
  35. //
  36. // Restore UI level
  37. //
  38. MsiSetInternalUI(prevUiLevel,
  39. NULL);
  40. DBGMSG((_T("UninstallTSACMsi LEAVE")));
  41. return S_OK;
  42. }