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.

61 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. Module Name :
  4. comncomp.hxx
  5. Abstract:
  6. Class used to install the Common Components
  7. Author:
  8. Christopher Achille (cachille)
  9. Project:
  10. Internet Services Setup
  11. Revision History:
  12. June 2002: Created
  13. --*/
  14. #include "compinst.hxx"
  15. struct sExtinctProperties
  16. {
  17. DWORD dwPropertyId;
  18. DWORD dwUserType;
  19. };
  20. class CCommonInstallComponent : public CInstallComponent
  21. {
  22. private:
  23. BOOL DeleteHistoryFiles(); // Remove all history files
  24. BOOL DeleteOldBackups(); // Remove old metabase backups
  25. BOOL RemoveExtinctMbProperties(); // Remove unused old metabase properties
  26. public:
  27. BOOL PreInstall();
  28. BOOL Install();
  29. BOOL PostInstall();
  30. BOOL PreUnInstall();
  31. BOOL PostUnInstall();
  32. BOOL GetFriendlyName( TSTR *pstrFriendlyName );
  33. LPTSTR GetName();
  34. static BOOL SetMetabaseFileAcls(); // FileAcl's for the metabase
  35. };
  36. enum INSTALLSTATE {
  37. INSTALLSTATE_DONE = 0,
  38. INSTALLSTATE_CURRENTLYINSTALLING = 1,
  39. INSTALLSTATE_CURRENTLYUNINSTALLING = 2,
  40. };
  41. BOOL SetInstallStateInRegistry( DWORD dwState ); // In the registry set the install state