C# Class ExcelXLL.InstallerClass

Inheritance: System.Configuration.Install.Installer
Show file Open project: ikhramts/NNX

Public Methods

Method Description
Commit ( IDictionary savedState ) : void
Install ( IDictionary savedState ) : void
InstallerClass ( ) : Microsoft.Win32
Rollback ( IDictionary savedState ) : void
Uninstall ( IDictionary savedState ) : void
UpdateRegistry ( string szExcelVersion, bool bInstallTheAddin ) : void

Creates a registry string or deletes one in the context of registering an Excel Automation Addin written in C#

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
GetKeyName ( RegistryKey regKeyOptions, string szKeyNames, bool &bKeyExists ) : string

Retrieves an OPEN key from the list of Option keys. If no key exists, then the key will be OPEN.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

MaintainRegistryKey ( bool bInsertKey ) : void
MyInstaller_Committed ( object sender, System.Configuration.Install.InstallEventArgs e ) : void
MyInstaller_Committing ( object sender, System.Configuration.Install.InstallEventArgs e ) : void

Method Details

Commit() public method

public Commit ( IDictionary savedState ) : void
savedState IDictionary
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

Install() public method

public Install ( IDictionary savedState ) : void
savedState IDictionary
return void

InstallerClass() public method

public InstallerClass ( ) : Microsoft.Win32
return Microsoft.Win32

Rollback() public method

public Rollback ( IDictionary savedState ) : void
savedState IDictionary
return void

Uninstall() public method

public Uninstall ( IDictionary savedState ) : void
savedState IDictionary
return void

UpdateRegistry() public method

Creates a registry string or deletes one in the context of registering an Excel Automation Addin written in C#
public UpdateRegistry ( string szExcelVersion, bool bInstallTheAddin ) : void
szExcelVersion string Number of Excel Version, e.g. 14.0 if Excel 2010
bInstallTheAddin bool true stands for installing, false stands for deinstalling
return void