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.

131 lines
2.7 KiB

  1. // Copyright (c) 2001 Microsoft Corporation
  2. //
  3. // File: WebInstallationUnit.h
  4. //
  5. // Synopsis: Declares a WebInstallationUnit
  6. // This object has the knowledge for installing the
  7. // IIS service
  8. //
  9. // History: 02/06/2001 JeffJon Created
  10. #ifndef __CYS_WEBINSTALLATIONUNIT_H
  11. #define __CYS_WEBINSTALLATIONUNIT_H
  12. #include "InstallationUnit.h"
  13. extern PCWSTR CYS_SAK_HOWTO;
  14. class WebInstallationUnit : public InstallationUnit
  15. {
  16. public:
  17. // Constructor
  18. WebInstallationUnit();
  19. // Destructor
  20. virtual
  21. ~WebInstallationUnit();
  22. // Installation Unit overrides
  23. virtual
  24. InstallationReturnType
  25. InstallService(HANDLE logfileHandle, HWND hwnd);
  26. virtual
  27. UnInstallReturnType
  28. UnInstallService(HANDLE logfileHandle, HWND hwnd);
  29. virtual
  30. InstallationReturnType
  31. CompletePath(HANDLE logfileHandle, HWND hwnd);
  32. virtual
  33. String
  34. GetServiceName();
  35. virtual
  36. String
  37. GetServiceDescription();
  38. virtual
  39. bool
  40. GetMilestoneText(String& message);
  41. virtual
  42. bool
  43. GetUninstallMilestoneText(String& message);
  44. virtual
  45. String
  46. GetUninstallWarningText();
  47. virtual
  48. String
  49. GetFinishText();
  50. virtual
  51. int
  52. GetWizardStart();
  53. virtual
  54. void
  55. ServerRoleLinkSelected(int linkIndex, HWND hwnd);
  56. virtual
  57. void
  58. FinishLinkSelected(int inkIndex, HWND hwnd);
  59. // Accessors
  60. void
  61. SetOptionalComponents(DWORD optional);
  62. DWORD
  63. GetOptionalComponents() const;
  64. // Optional Web Application components
  65. static const DWORD FRONTPAGE_EXTENSIONS_COMPONENT = 0x1;
  66. static const DWORD ASPNET_COMPONENT = 0x4;
  67. bool
  68. IsFTPInstalled() const;
  69. bool
  70. IsNNTPInstalled() const;
  71. bool
  72. IsSMTPInstalled() const;
  73. private:
  74. bool
  75. AreFrontPageExtensionsInstalled() const;
  76. bool
  77. IsASPNETInstalled() const;
  78. bool
  79. IsDTCInstalled() const;
  80. unsigned int
  81. GetWebAppRoleResult() const;
  82. // The optional components that will be installed
  83. DWORD optionalInstallComponents;
  84. // Installation status codes
  85. static const unsigned int WEBAPP_SUCCESS = 0x00;
  86. static const unsigned int WEBAPP_IIS_FAILED = 0x01;
  87. static const unsigned int WEBAPP_FRONTPAGE_FAILED = 0x02;
  88. static const unsigned int WEBAPP_ASPNET_FAILED = 0x08;
  89. unsigned int webAppRoleResult;
  90. };
  91. #endif // __CYS_WEBINSTALLATIONUNIT_H