C# Class Config.CSScriptInstaller

ファイルを表示 Open project: oleg-shilo/cs-script Class Usage Examples

Public Properties

Property Type Description
ShellExtensionHasMoved bool
contextMenus System.Collections.ArrayList
doubleClickAction string
justInstalled bool
restrictedMode bool
settings csscript.Settings
targetCLRVersion CLRVersion

Private Properties

Property 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

Public Methods

Method 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

Method 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 method

public CSScriptInstaller ( bool quiet, bool update ) : csscript
quiet bool
update bool
return csscript

EnableComShellExtForAll() public static method

public static EnableComShellExtForAll ( bool enable ) : void
enable bool
return void

GetComShellExtRegisteredDll() public static method

public static GetComShellExtRegisteredDll ( ) : string
return string

GetEnvironmentVariable() public static method

public static GetEnvironmentVariable ( string variable ) : string
variable string
return string

GetExecutingEngineDir() public static method

public static GetExecutingEngineDir ( ) : string
return string

GetHighestNetVersion() static public method

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

GetKeyValue() public static method

public static GetKeyValue ( string name, string valueName ) : object
name string
valueName string
return object

GetNotepadPP() public static method

public static GetNotepadPP ( ) : string
return string

GetScriptIcon() public static method

public static GetScriptIcon ( ) : string
return string

Install() public method

public Install ( bool installShellExtension ) : void
installShellExtension bool
return void

InstallComShellExt() public static method

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

IsComShellExtInstalled() public static method

public static IsComShellExtInstalled ( ) : bool
return bool

IsComShellExtInstalledForAllFiles() public static method

public static IsComShellExtInstalledForAllFiles ( ) : bool
return bool

IsFileAssosiationOk() public static method

public static IsFileAssosiationOk ( ) : bool
return bool

IsInstalled() static public method

static public IsInstalled ( ) : bool
return bool

ReinstallShellExt() public static method

public static ReinstallShellExt ( ) : void
return void

ResetCsDefaultProgram() public static method

public static ResetCsDefaultProgram ( ) : void
return void

RestartExplorer() public static method

public static RestartExplorer ( ) : void
return void

RunApp() static public method

static public RunApp ( string app, string args ) : string
app string
args string
return string

RunAppSafe() static public method

static public RunAppSafe ( string app, string args ) : string
app string
args string
return string

SetEnvironmentVariable() public static method

public static SetEnvironmentVariable ( string variable, string value ) : void
variable string
value string
return void

SetKeyValue() static public method

static public SetKeyValue ( string keyName, string name, object value ) : void
keyName string
name string
value object
return void

UnInstall() public method

public UnInstall ( ) : void
return void

Update() public method

public Update ( ) : void
return void

UpdateFromInstallation() static public method

static public UpdateFromInstallation ( csscript destSettings, string installDir ) : void
destSettings csscript
installDir string
return void

ValidateShellExtensionsCompatibility() public static method

public static ValidateShellExtensionsCompatibility ( ) : void
return void

Property Details

ShellExtensionHasMoved public_oe property

public bool ShellExtensionHasMoved
return bool

contextMenus public_oe property

public ArrayList,System.Collections contextMenus
return System.Collections.ArrayList

doubleClickAction public_oe property

public string doubleClickAction
return string

justInstalled public_oe static_oe property

public static bool justInstalled
return bool

restrictedMode public_oe property

public bool restrictedMode
return bool

settings public_oe property

public Settings,csscript settings
return csscript.Settings

targetCLRVersion public_oe property

public CLRVersion targetCLRVersion
return CLRVersion