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.
 
 
 
 
 
 

80 lines
2.4 KiB

// Copyright (c) 2001 Microsoft Corporation
//
// File: ExpressPathInstallationUnitBase.cpp
//
// Synopsis: Defines a ExpressPathInstallationUnitBase
// This is the base class that all installation
// units must derive from to be installable
// through the Express path.
//
// History: 11/09/2001 JeffJon Created
#include "pch.h"
#include "ExpressPathInstallationUnitBase.h"
ExpressPathInstallationUnitBase::ExpressPathInstallationUnitBase(
unsigned int serviceNameID,
unsigned int serviceDescriptionID,
unsigned int finishPageTitleID,
unsigned int finishPageUninstallTitleID,
unsigned int finishPageMessageID,
unsigned int finishPageFailedMessageID,
unsigned int finishPageUninstallMessageID,
unsigned int finishPageUninstallFailedMessageID,
unsigned int uninstallMilestonePageWarningID,
unsigned int uninstallMilestonePageCheckboxID,
const String finishPageHelpString,
const String milestonePageHelpString,
const String afterFinishHelpString,
ServerRole newInstallType) :
isExpressPathInstall(false),
InstallationUnit(
serviceNameID,
serviceDescriptionID,
finishPageTitleID,
finishPageUninstallTitleID,
finishPageMessageID,
finishPageFailedMessageID,
finishPageUninstallMessageID,
finishPageUninstallFailedMessageID,
uninstallMilestonePageWarningID,
uninstallMilestonePageCheckboxID,
finishPageHelpString,
milestonePageHelpString,
afterFinishHelpString,
newInstallType)
{
LOG_CTOR(ExpressPathInstallationUnitBase);
}
void
ExpressPathInstallationUnitBase::SetExpressPathInstall(bool isExpressPath)
{
LOG_FUNCTION2(
ExpressPathInstallationUnitBase::SetExpressPathInstall,
(isExpressPath) ? L"true" : L"false");
isExpressPathInstall = isExpressPath;
}
bool
ExpressPathInstallationUnitBase::IsExpressPathInstall() const
{
LOG_FUNCTION(ExpressPathInstallationUnitBase::IsExpressPathInstall);
return isExpressPathInstall;
}
String
ExpressPathInstallationUnitBase::GetNetshPath() const
{
LOG_FUNCTION(ExpressPathInstallationUnitBase::GetNetshPath);
String result = Win::GetSystemDirectory();
result = FS::AppendPath(result, L"netsh.exe");
LOG(result);
return result;
}