C# Class MediaPortal.DeployTool.Utils

Afficher le fichier Open project: MediaPortal/MediaPortal-1

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static AutoRunApplication ( string action ) : bool
action string
Résultat bool

Check64bit() public static méthode

public static Check64bit ( ) : bool
Résultat bool

CheckFileVersion() public static méthode

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

CheckNSISUninstallString() public static méthode

public static CheckNSISUninstallString ( string RegistryPath, string MementoSection ) : MediaPortal.DeployTool.CheckResult
RegistryPath string
MementoSection string
Résultat MediaPortal.DeployTool.CheckResult

CheckPrerequisites() public static méthode

public static CheckPrerequisites ( ) : void
Résultat void

CheckStartupPath() public static méthode

public static CheckStartupPath ( ) : bool
Résultat bool

CheckTargetDir() public static méthode

public static CheckTargetDir ( string dir ) : bool
dir string
Résultat bool

CheckUninstallString() public static méthode

public static CheckUninstallString ( string clsid, bool delete ) : string
clsid string
delete bool
Résultat string

DownloadFile() public static méthode

public static DownloadFile ( string FileName, string prg ) : DialogResult
FileName string
prg string
Résultat DialogResult

ErrorDlg() public static méthode

public static ErrorDlg ( string msg ) : void
msg string
Résultat void

GetCurrentPackageVersion() public static méthode

public static GetCurrentPackageVersion ( ) : System.Version
Résultat System.Version

GetDisplayVersion() public static méthode

public static GetDisplayVersion ( ) : string
Résultat string

GetDownloadString() public static méthode

public static GetDownloadString ( string session_id, string node_id ) : string
session_id string
node_id string
Résultat string

GetPackageVersion() public static méthode

public static GetPackageVersion ( string type ) : System.Version
type string
Résultat System.Version

IsAeroEnabled() public static méthode

public static IsAeroEnabled ( ) : bool
Résultat bool

IsCurrentPackageUpdatabled() public static méthode

public static IsCurrentPackageUpdatabled ( System.Version pkgVer ) : bool
pkgVer System.Version
Résultat bool

IsOfficialBuild() public static méthode

public static IsOfficialBuild ( string build ) : bool
build string
Résultat bool

IsPackageUpdatabled() public static méthode

public static IsPackageUpdatabled ( System.Version pkgVer ) : bool
pkgVer System.Version
Résultat bool

LocalizeDownloadFile() public static méthode

public static LocalizeDownloadFile ( string filename, string downloadtype, string prg ) : string
filename string
downloadtype string
prg string
Résultat string

Log() public méthode

public Log ( string message ) : void
message string
Résultat void

NotifyReboot() public static méthode

public static NotifyReboot ( string DisplayName ) : void
DisplayName string
Résultat void

OpenSubKey() public static méthode

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

PathFromRegistry() public static méthode

public static PathFromRegistry ( string regkey ) : string
regkey string
Résultat string

RetryDownloadFile() public static méthode

public static RetryDownloadFile ( string FileName, string prg ) : DialogResult
FileName string
prg string
Résultat DialogResult

SetDeployXml() public static méthode

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
Résultat void

UninstallMSI() public static méthode

public static UninstallMSI ( string clsid ) : void
clsid string
Résultat void

UninstallNSIS() public static méthode

public static UninstallNSIS ( string RegistryFullPathName ) : void
RegistryFullPathName string
Résultat void

VersionFromRegistry() public static méthode

public static VersionFromRegistry ( string regkey ) : System.Version
regkey string
Résultat System.Version