C# Класс Config.CSScriptInstaller

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ShellExtensionHasMoved bool
contextMenus System.Collections.ArrayList
doubleClickAction string
justInstalled bool
restrictedMode bool
settings csscript.Settings
targetCLRVersion CLRVersion

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

CSScriptInstaller() публичный Метод

public CSScriptInstaller ( bool quiet, bool update ) : csscript
quiet bool
update bool
Результат csscript

EnableComShellExtForAll() публичный статический Метод

public static EnableComShellExtForAll ( bool enable ) : void
enable bool
Результат void

GetComShellExtRegisteredDll() публичный статический Метод

public static GetComShellExtRegisteredDll ( ) : string
Результат string

GetEnvironmentVariable() публичный статический Метод

public static GetEnvironmentVariable ( string variable ) : string
variable string
Результат string

GetExecutingEngineDir() публичный статический Метод

public static GetExecutingEngineDir ( ) : string
Результат string

GetHighestNetVersion() статический публичный Метод

static public GetHighestNetVersion ( ) : System.Version
Результат System.Version

GetKeyValue() публичный статический Метод

public static GetKeyValue ( string name, string valueName ) : object
name string
valueName string
Результат object

GetNotepadPP() публичный статический Метод

public static GetNotepadPP ( ) : string
Результат string

GetScriptIcon() публичный статический Метод

public static GetScriptIcon ( ) : string
Результат string

Install() публичный Метод

public Install ( bool installShellExtension ) : void
installShellExtension bool
Результат void

InstallComShellExt() публичный статический Метод

public static InstallComShellExt ( bool install, Form form, bool silent ) : void
install bool
form System.Windows.Forms.Form
silent bool
Результат void

IsComShellExtInstalled() публичный статический Метод

public static IsComShellExtInstalled ( ) : bool
Результат bool

IsComShellExtInstalledForAllFiles() публичный статический Метод

public static IsComShellExtInstalledForAllFiles ( ) : bool
Результат bool

IsFileAssosiationOk() публичный статический Метод

public static IsFileAssosiationOk ( ) : bool
Результат bool

IsInstalled() статический публичный Метод

static public IsInstalled ( ) : bool
Результат bool

ReinstallShellExt() публичный статический Метод

public static ReinstallShellExt ( ) : void
Результат void

ResetCsDefaultProgram() публичный статический Метод

public static ResetCsDefaultProgram ( ) : void
Результат void

RestartExplorer() публичный статический Метод

public static RestartExplorer ( ) : void
Результат void

RunApp() статический публичный Метод

static public RunApp ( string app, string args ) : string
app string
args string
Результат string

RunAppSafe() статический публичный Метод

static public RunAppSafe ( string app, string args ) : string
app string
args string
Результат string

SetEnvironmentVariable() публичный статический Метод

public static SetEnvironmentVariable ( string variable, string value ) : void
variable string
value string
Результат void

SetKeyValue() статический публичный Метод

static public SetKeyValue ( string keyName, string name, object value ) : void
keyName string
name string
value object
Результат void

UnInstall() публичный Метод

public UnInstall ( ) : void
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void

UpdateFromInstallation() статический публичный Метод

static public UpdateFromInstallation ( csscript destSettings, string installDir ) : void
destSettings csscript
installDir string
Результат void

ValidateShellExtensionsCompatibility() публичный статический Метод

public static ValidateShellExtensionsCompatibility ( ) : void
Результат void

Описание свойств

ShellExtensionHasMoved публичное свойство

public bool ShellExtensionHasMoved
Результат bool

contextMenus публичное свойство

public ArrayList,System.Collections contextMenus
Результат System.Collections.ArrayList

doubleClickAction публичное свойство

public string doubleClickAction
Результат string

justInstalled публичное статическое свойство

public static bool justInstalled
Результат bool

restrictedMode публичное свойство

public bool restrictedMode
Результат bool

settings публичное свойство

public Settings,csscript settings
Результат csscript.Settings

targetCLRVersion публичное свойство

public CLRVersion targetCLRVersion
Результат CLRVersion