C# Class InstallOffice, Office-IT-Pro-Deployment-Scripts

Mostra file Open project: OfficeDev/Office-IT-Pro-Deployment-Scripts Class Usage Examples

Public Methods

Method Description
ChangeBaseCdnUrl ( string updateSource ) : void
ChangeOfficeChannel ( string targetChannel, string baseUrl ) : Task
ChangeUpdateSource ( string updateSource ) : string
ClearRunningUpdateScenarioTasks ( ) : void
CopyFolder ( DirectoryInfo source, DirectoryInfo target ) : void
DetermineIfLanguageInstalled ( bool throwException = true ) : bool
GetArguments ( ) : List
GetBaseCdnUrl ( ) : string
GetCurrentOperation ( List executingTasks ) : CurrentOperation
GetEmbeddedItems ( string targetDirectory ) : List
GetExecutingScenario ( ) : string
GetOdtErrorMessage ( ) : string
GetOfficeC2RPath ( ) : string
GetOfficeCtrRegPath ( ) : RegistryKey
GetOfficeCtrRegPath ( ) : string
GetOfficePathList ( ) : OfficePathsReturn,
GetOfficeVersion ( ) : OfficeInstalledProducts,
GetRunningScenarioTasks ( ) : List
GetRunningScenarioTasks ( bool assumeUpdate = false ) : List
GetTextFileContents ( string fileName ) : string
IsLanguageInstalled ( string xmlFilePath, string language ) : bool
IsUpdateRunning ( ) : bool
Main1 ( string args ) : void
MoveFile ( string rootDirectory, string md5Hash, string fileName ) : void
ProPlusLanguageInstalled ( string productId, string language ) : bool
ResetUpdateSource ( ) : void
RestartC2RSerivce ( ) : void
RollBackInstall ( ) : void
RunOfficeUpdateAsync ( string version ) : Task
RunProgram ( ) : void
SetUpdateChannel ( string xml, string channel ) : string
UpdateLanguagePackInstall ( string xmlFilePath, bool convertToRemove = false ) : void
WaitForOfficeCtrUpadate ( bool showStatus = false ) : void
WaitForOfficeCtrUpadateWithError ( bool showStatus = false ) : void

Private Methods

Method Description
AddLanguage ( XmlDocument xmlDoc, XmlNode productNode, string languageId ) : void
Beautify ( XmlDocument doc ) : string
BeautifyXml ( string xml ) : string
CleanUp ( string installDir ) : void
CopyStream ( Stream input, Stream output ) : void
ExtractXml ( string xmlFilePath ) : void
FindTempFilesPath ( ) : void
GenerateMD5Hash ( string filePath ) : string
GetAttribute ( XmlDocument xmlDoc, XmlNode xmlNode, string name ) : string
GetClientEdition ( XmlDocument doc ) : OfficeClientEdition
GetLanguagePackLanguages ( string xmlFilePath ) : List
GetRegistryKey ( string keyPath ) : RegistryKey
GetRegistrySubKeys ( string keyPath ) : List
GetRegistryValue ( RegistryKey regKey, string property ) : string
GetRegistryValue ( string keyPath, string property ) : string
HasValidArguments ( ) : bool
Initialize ( ) : void
IsLanguagePackInstall ( string xmlFilePath ) : bool
MinimizeWindow ( ) : void
RemoteLogging ( ) : void
RunInstall ( string odtFilePath, string xmlFilePath ) : int
SetAttribute ( XmlDocument xmlDoc, XmlNode xmlNode, string name, string value ) : void
SetClientEdition ( XmlDocument doc, OfficeClientEdition edition ) : void
SetConfigSilent ( XmlDocument doc ) : void
SetDisplayLevel ( XmlDocument doc, bool silent = true ) : void
SetLoggingPath ( string xmlFilePath ) : void
SetSourcePath ( string xmlFilePath ) : void
SetSourcePath ( string xmlFilePath, string sourcePath = null ) : void
ShowHelp ( ) : void
ShowWindow ( IntPtr hWnd, int nCmdShow ) : bool
ShowXml ( string xmlFilePath ) : void
StartWus ( ) : void
StopWus ( ) : void
ToggleWus ( bool toggle ) : void
UninstallOfficeProPlus ( string installationDirectory, IEnumerable fileNames ) : string
UpdateLanguagePackClientCulture ( string xmlFilePath, string clientCulture, bool convertToRemove = false ) : void

Method Details

ChangeBaseCdnUrl() public method

public ChangeBaseCdnUrl ( string updateSource ) : void
updateSource string
return void

ChangeOfficeChannel() public method

public ChangeOfficeChannel ( string targetChannel, string baseUrl ) : Task
targetChannel string
baseUrl string
return Task

ChangeUpdateSource() public method

public ChangeUpdateSource ( string updateSource ) : string
updateSource string
return string

ClearRunningUpdateScenarioTasks() public method

public ClearRunningUpdateScenarioTasks ( ) : void
return void

CopyFolder() public static method

public static CopyFolder ( DirectoryInfo source, DirectoryInfo target ) : void
source DirectoryInfo
target DirectoryInfo
return void

DetermineIfLanguageInstalled() public method

public DetermineIfLanguageInstalled ( bool throwException = true ) : bool
throwException bool
return bool

GetArguments() public method

public GetArguments ( ) : List
return List

GetBaseCdnUrl() public method

public GetBaseCdnUrl ( ) : string
return string

GetCurrentOperation() public method

public GetCurrentOperation ( List executingTasks ) : CurrentOperation
executingTasks List
return CurrentOperation

GetEmbeddedItems() public method

public GetEmbeddedItems ( string targetDirectory ) : List
targetDirectory string
return List

GetExecutingScenario() public method

public GetExecutingScenario ( ) : string
return string

GetOdtErrorMessage() public method

public GetOdtErrorMessage ( ) : string
return string

GetOfficeC2RPath() public method

public GetOfficeC2RPath ( ) : string
return string

GetOfficeCtrRegPath() public method

public GetOfficeCtrRegPath ( ) : RegistryKey
return RegistryKey

GetOfficeCtrRegPath() public method

public GetOfficeCtrRegPath ( ) : string
return string

GetOfficePathList() public method

public GetOfficePathList ( ) : OfficePathsReturn,
return OfficePathsReturn,

GetOfficeVersion() public method

public GetOfficeVersion ( ) : OfficeInstalledProducts,
return OfficeInstalledProducts,

GetRunningScenarioTasks() public method

public GetRunningScenarioTasks ( ) : List
return List

GetRunningScenarioTasks() public method

public GetRunningScenarioTasks ( bool assumeUpdate = false ) : List
assumeUpdate bool
return List

GetTextFileContents() public method

public GetTextFileContents ( string fileName ) : string
fileName string
return string

IsLanguageInstalled() public method

public IsLanguageInstalled ( string xmlFilePath, string language ) : bool
xmlFilePath string
language string
return bool

IsUpdateRunning() public method

public IsUpdateRunning ( ) : bool
return bool

Main1() public static method

public static Main1 ( string args ) : void
args string
return void

MoveFile() public method

public MoveFile ( string rootDirectory, string md5Hash, string fileName ) : void
rootDirectory string
md5Hash string
fileName string
return void

ProPlusLanguageInstalled() public method

public ProPlusLanguageInstalled ( string productId, string language ) : bool
productId string
language string
return bool

ResetUpdateSource() public method

public ResetUpdateSource ( ) : void
return void

RestartC2RSerivce() public static method

public static RestartC2RSerivce ( ) : void
return void

RollBackInstall() public method

public RollBackInstall ( ) : void
return void

RunOfficeUpdateAsync() public method

public RunOfficeUpdateAsync ( string version ) : Task
version string
return Task

RunProgram() public method

public RunProgram ( ) : void
return void

SetUpdateChannel() public method

public SetUpdateChannel ( string xml, string channel ) : string
xml string
channel string
return string

UpdateLanguagePackInstall() public method

public UpdateLanguagePackInstall ( string xmlFilePath, bool convertToRemove = false ) : void
xmlFilePath string
convertToRemove bool
return void

WaitForOfficeCtrUpadate() public method

public WaitForOfficeCtrUpadate ( bool showStatus = false ) : void
showStatus bool
return void

WaitForOfficeCtrUpadateWithError() public method

public WaitForOfficeCtrUpadateWithError ( bool showStatus = false ) : void
showStatus bool
return void