C# Class MediaPortal.DeployTool.Utils

Mostrar archivo Open project: MediaPortal/MediaPortal-1

Public Methods

Method Description
AutoRunApplication ( string action ) : bool
Check64bit ( ) : bool
CheckFileVersion ( string aFilePath, string aMinimumVersion, System.Version &aCurrentVersion ) : bool
CheckNSISUninstallString ( string RegistryPath, string MementoSection ) : MediaPortal.DeployTool.CheckResult
CheckPrerequisites ( ) : void
CheckStartupPath ( ) : bool
CheckTargetDir ( string dir ) : bool
CheckUninstallString ( string clsid, bool delete ) : string
DownloadFile ( string FileName, string prg ) : DialogResult
ErrorDlg ( string msg ) : void
GetCurrentPackageVersion ( ) : System.Version
GetDisplayVersion ( ) : string
GetDownloadString ( string session_id, string node_id ) : string
GetPackageVersion ( string type ) : System.Version
IsAeroEnabled ( ) : bool
IsCurrentPackageUpdatabled ( System.Version pkgVer ) : bool
IsOfficialBuild ( string build ) : bool
IsPackageUpdatabled ( System.Version pkgVer ) : bool
LocalizeDownloadFile ( string filename, string downloadtype, string prg ) : string
Log ( string message ) : void
NotifyReboot ( string DisplayName ) : void
OpenSubKey ( RegistryKey pParentKey, string pSubKeyName, bool pWriteable, eRegWow64Options pOptions ) : RegistryKey
PathFromRegistry ( string regkey ) : string
RetryDownloadFile ( string FileName, string prg ) : DialogResult
SetDeployXml ( string section, string entry, string value ) : void

Adds a record to deploy.xml (will be created if it does not exist). This will then be picked up by MP itself and applied to mediaportal.xml

UninstallMSI ( string clsid ) : void
UninstallNSIS ( string RegistryFullPathName ) : void
VersionFromRegistry ( string regkey ) : System.Version

Private Methods

Method Description
DwmIsCompositionEnabled ( int &pfEnabled ) : int
GetRegistryKeyHandle ( RegistryKey pRegisteryKey ) : IntPtr
GetUserAgentOsString ( ) : string
IsWow64Process ( [ hProcess, [ lpSystemInfo ) : bool
PointerToRegistryKey ( IntPtr hKey, bool pWritable, bool pOwnsHandle ) : RegistryKey
RegOpenKeyEx ( IntPtr hKey, string subKey, uint options, int sam, IntPtr &phkResult ) : int

Method Details

AutoRunApplication() public static method

public static AutoRunApplication ( string action ) : bool
action string
return bool

Check64bit() public static method

public static Check64bit ( ) : bool
return bool

CheckFileVersion() public static method

public static CheckFileVersion ( string aFilePath, string aMinimumVersion, System.Version &aCurrentVersion ) : bool
aFilePath string
aMinimumVersion string
aCurrentVersion System.Version
return bool

CheckNSISUninstallString() public static method

public static CheckNSISUninstallString ( string RegistryPath, string MementoSection ) : MediaPortal.DeployTool.CheckResult
RegistryPath string
MementoSection string
return MediaPortal.DeployTool.CheckResult

CheckPrerequisites() public static method

public static CheckPrerequisites ( ) : void
return void

CheckStartupPath() public static method

public static CheckStartupPath ( ) : bool
return bool

CheckTargetDir() public static method

public static CheckTargetDir ( string dir ) : bool
dir string
return bool

CheckUninstallString() public static method

public static CheckUninstallString ( string clsid, bool delete ) : string
clsid string
delete bool
return string

DownloadFile() public static method

public static DownloadFile ( string FileName, string prg ) : DialogResult
FileName string
prg string
return DialogResult

ErrorDlg() public static method

public static ErrorDlg ( string msg ) : void
msg string
return void

GetCurrentPackageVersion() public static method

public static GetCurrentPackageVersion ( ) : System.Version
return System.Version

GetDisplayVersion() public static method

public static GetDisplayVersion ( ) : string
return string

GetDownloadString() public static method

public static GetDownloadString ( string session_id, string node_id ) : string
session_id string
node_id string
return string

GetPackageVersion() public static method

public static GetPackageVersion ( string type ) : System.Version
type string
return System.Version

IsAeroEnabled() public static method

public static IsAeroEnabled ( ) : bool
return bool

IsCurrentPackageUpdatabled() public static method

public static IsCurrentPackageUpdatabled ( System.Version pkgVer ) : bool
pkgVer System.Version
return bool

IsOfficialBuild() public static method

public static IsOfficialBuild ( string build ) : bool
build string
return bool

IsPackageUpdatabled() public static method

public static IsPackageUpdatabled ( System.Version pkgVer ) : bool
pkgVer System.Version
return bool

LocalizeDownloadFile() public static method

public static LocalizeDownloadFile ( string filename, string downloadtype, string prg ) : string
filename string
downloadtype string
prg string
return string

Log() public method

public Log ( string message ) : void
message string
return void

NotifyReboot() public static method

public static NotifyReboot ( string DisplayName ) : void
DisplayName string
return void

OpenSubKey() public static method

public static OpenSubKey ( RegistryKey pParentKey, string pSubKeyName, bool pWriteable, eRegWow64Options pOptions ) : RegistryKey
pParentKey Microsoft.Win32.RegistryKey
pSubKeyName string
pWriteable bool
pOptions eRegWow64Options
return Microsoft.Win32.RegistryKey

PathFromRegistry() public static method

public static PathFromRegistry ( string regkey ) : string
regkey string
return string

RetryDownloadFile() public static method

public static RetryDownloadFile ( string FileName, string prg ) : DialogResult
FileName string
prg string
return DialogResult

SetDeployXml() public static method

Adds a record to deploy.xml (will be created if it does not exist). This will then be picked up by MP itself and applied to mediaportal.xml
public static SetDeployXml ( string section, string entry, string value ) : void
section string name attribute of section element in mediaportal.xml
entry string name attribute of entry element in mediaportal.xml
value string Value to be set for this section/entry
return void

UninstallMSI() public static method

public static UninstallMSI ( string clsid ) : void
clsid string
return void

UninstallNSIS() public static method

public static UninstallNSIS ( string RegistryFullPathName ) : void
RegistryFullPathName string
return void

VersionFromRegistry() public static method

public static VersionFromRegistry ( string regkey ) : System.Version
regkey string
return System.Version