C# Class Config.CSScriptInstaller

Afficher le fichier Open project: oleg-shilo/cs-script Class Usage Examples

Méthodes publiques

Свойство Type Description
ShellExtensionHasMoved bool
contextMenus System.Collections.ArrayList
doubleClickAction string
justInstalled bool
restrictedMode bool
settings csscript.Settings
targetCLRVersion CLRVersion

Private Properties

Свойство Type Description
AddToPath string
CopyAllFiles void
CopyKeyValue void
CreateDefaultConfig void
DeleteKey void
DeleteKeyValue void
EnsureComShellExtensionPlacement void
FindWindow System.IntPtr
GetCurrentConfig void
GetKey Microsoft.Win32.RegistryKey
GetMethod System.Reflection.MethodInfo
GetPropertyValue object
GetTargetCLRVersion string
IsShellCmdEnabled bool
KeyExists bool
MergeLocalIncluds void
RegCloseKey uint
RegGetValueExp string
RegOpenKeyEx int
RegQueryValueEx int
RegSetStrValue int
RegSetValueEx int
RemoveFromPath string
SendMessageTimeout bool
SetForegroundWindow System.IntPtr
SetTargetCLRVersion void
ShowMessageBox DialogResult
ShowReminder bool

Méthodes publiques

Méthode Description
CSScriptInstaller ( bool quiet, bool update ) : csscript
EnableComShellExtForAll ( bool enable ) : void
GetComShellExtRegisteredDll ( ) : string
GetEnvironmentVariable ( string variable ) : string
GetExecutingEngineDir ( ) : string
GetHighestNetVersion ( ) : System.Version
GetKeyValue ( string name, string valueName ) : object
GetNotepadPP ( ) : string
GetScriptIcon ( ) : string
Install ( bool installShellExtension ) : void
InstallComShellExt ( bool install, Form form, bool silent ) : void
IsComShellExtInstalled ( ) : bool
IsComShellExtInstalledForAllFiles ( ) : bool
IsFileAssosiationOk ( ) : bool
IsInstalled ( ) : bool
ReinstallShellExt ( ) : void
ResetCsDefaultProgram ( ) : void
RestartExplorer ( ) : void
RunApp ( string app, string args ) : string
RunAppSafe ( string app, string args ) : string
SetEnvironmentVariable ( string variable, string value ) : void
SetKeyValue ( string keyName, string name, object value ) : void
UnInstall ( ) : void
Update ( ) : void
UpdateFromInstallation ( csscript destSettings, string installDir ) : void
ValidateShellExtensionsCompatibility ( ) : void

Private Methods

Méthode Description
AddToPath ( string dir, string path ) : string
CopyAllFiles ( string srcRootDir, string destRootDir ) : void
CopyKeyValue ( string keyName, string srcValueName, string destValueName ) : void
CreateDefaultConfig ( string filename ) : void
DeleteKey ( string name ) : void
DeleteKeyValue ( string name, string valueName ) : void
EnsureComShellExtensionPlacement ( ) : void
FindWindow ( string ClassName, string WindowText ) : IntPtr
GetCurrentConfig ( ArrayList menus, string &doubleClickAction ) : void
GetKey ( string name, bool writable ) : RegistryKey
GetMethod ( Assembly assembly, string name, Type types, BindingFlags bf ) : MethodInfo
GetPropertyValue ( object o, string name ) : object
GetTargetCLRVersion ( string appConfigFile ) : string
IsShellCmdEnabled ( string name, string command ) : bool
KeyExists ( string name ) : bool
MergeLocalIncluds ( string scHomeDir ) : void
RegCloseKey ( int hKey ) : uint
RegGetValueExp ( uint key, string subKey, string valName ) : string
RegOpenKeyEx ( uint hKey, string lpSubKey, uint ulOptions, int samDesired, int &phkResult ) : int
RegQueryValueEx ( int hKey, string lpValueName, int lpReserved, uint &lpType, StringBuilder lpData, int &lpcbData ) : int
RegSetStrValue ( uint key, string subKey, string valName, string val ) : int
RegSetValueEx ( int hKey, string lpValueName, int Reserved, int dwType, [ lpData, int cbData ) : int
RemoveFromPath ( string dir, string path ) : string
SendMessageTimeout ( IntPtr hWnd, int Msg, int wParam, string lParam, int fuFlags, int uTimeout, int lpdwResult ) : bool
SetForegroundWindow ( IntPtr hWnd ) : IntPtr
SetTargetCLRVersion ( string version, string filename ) : void
ShowMessageBox ( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton ) : DialogResult
ShowReminder ( string message, string title ) : bool

Method Details

CSScriptInstaller() public méthode

public CSScriptInstaller ( bool quiet, bool update ) : csscript
quiet bool
update bool
Résultat csscript

EnableComShellExtForAll() public static méthode

public static EnableComShellExtForAll ( bool enable ) : void
enable bool
Résultat void

GetComShellExtRegisteredDll() public static méthode

public static GetComShellExtRegisteredDll ( ) : string
Résultat string

GetEnvironmentVariable() public static méthode

public static GetEnvironmentVariable ( string variable ) : string
variable string
Résultat string

GetExecutingEngineDir() public static méthode

public static GetExecutingEngineDir ( ) : string
Résultat string

GetHighestNetVersion() static public méthode

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

GetKeyValue() public static méthode

public static GetKeyValue ( string name, string valueName ) : object
name string
valueName string
Résultat object

GetNotepadPP() public static méthode

public static GetNotepadPP ( ) : string
Résultat string

GetScriptIcon() public static méthode

public static GetScriptIcon ( ) : string
Résultat string

Install() public méthode

public Install ( bool installShellExtension ) : void
installShellExtension bool
Résultat void

InstallComShellExt() public static méthode

public static InstallComShellExt ( bool install, Form form, bool silent ) : void
install bool
form System.Windows.Forms.Form
silent bool
Résultat void

IsComShellExtInstalled() public static méthode

public static IsComShellExtInstalled ( ) : bool
Résultat bool

IsComShellExtInstalledForAllFiles() public static méthode

public static IsComShellExtInstalledForAllFiles ( ) : bool
Résultat bool

IsFileAssosiationOk() public static méthode

public static IsFileAssosiationOk ( ) : bool
Résultat bool

IsInstalled() static public méthode

static public IsInstalled ( ) : bool
Résultat bool

ReinstallShellExt() public static méthode

public static ReinstallShellExt ( ) : void
Résultat void

ResetCsDefaultProgram() public static méthode

public static ResetCsDefaultProgram ( ) : void
Résultat void

RestartExplorer() public static méthode

public static RestartExplorer ( ) : void
Résultat void

RunApp() static public méthode

static public RunApp ( string app, string args ) : string
app string
args string
Résultat string

RunAppSafe() static public méthode

static public RunAppSafe ( string app, string args ) : string
app string
args string
Résultat string

SetEnvironmentVariable() public static méthode

public static SetEnvironmentVariable ( string variable, string value ) : void
variable string
value string
Résultat void

SetKeyValue() static public méthode

static public SetKeyValue ( string keyName, string name, object value ) : void
keyName string
name string
value object
Résultat void

UnInstall() public méthode

public UnInstall ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

UpdateFromInstallation() static public méthode

static public UpdateFromInstallation ( csscript destSettings, string installDir ) : void
destSettings csscript
installDir string
Résultat void

ValidateShellExtensionsCompatibility() public static méthode

public static ValidateShellExtensionsCompatibility ( ) : void
Résultat void

Property Details

ShellExtensionHasMoved public_oe property

public bool ShellExtensionHasMoved
Résultat bool

contextMenus public_oe property

public ArrayList,System.Collections contextMenus
Résultat System.Collections.ArrayList

doubleClickAction public_oe property

public string doubleClickAction
Résultat string

justInstalled public_oe static_oe property

public static bool justInstalled
Résultat bool

restrictedMode public_oe property

public bool restrictedMode
Résultat bool

settings public_oe property

public Settings,csscript settings
Résultat csscript.Settings

targetCLRVersion public_oe property

public CLRVersion targetCLRVersion
Résultat CLRVersion