C# Class CiviKeyPostInstallScript.Program

Show file Open project: Invenietis/ck-certified

Public Methods

Method Description
CurrentDomain_UnhandledException ( object sender, UnhandledExceptionEventArgs e ) : void
OnError ( string message ) : void
Upgrade26xTov270 ( XPathNavigator xPathNav ) : void

Private Methods

Method Description
AddEntryToSystemConf ( string key, string value, string pluginId, string pluginName, XPathNavigator xPathNav ) : void
AppendChildUpdateElement ( XPathNodeIterator iterator, string value, string key ) : void
CreateEntryToSystemConf ( string key, string value, string pluginId, string pluginName, XPathNavigator xPathNav, string &xPathExp, XPathNodeIterator &iterator ) : void
DoUpdateEntryToSystemConf ( string key, string value, bool entrySet, XPathNodeIterator iterator ) : bool
GetFilePath ( Environment specialFolder, string &savePath ) : string
InsertUpdateElementAfter ( XPathNodeIterator iterator, string value, string key ) : void
Main ( string args ) : void

UpgradeUser35To40 ( XPathNavigator xPathSystemNav ) : string

Upgrades the user configuration (from .NET 3.5 to .NET 4.0 and its breaking change - we now need a ContextProfileCollection in the UserConf) If the userConf, is in a 4.0 version, this method won't do anything It returns the contextpath found via the userconf, in case the context has been moved or renamed. Return String.Empty if a contextpath can't be found.

Method Details

CurrentDomain_UnhandledException() public static method

public static CurrentDomain_UnhandledException ( object sender, UnhandledExceptionEventArgs e ) : void
sender object
e System.UnhandledExceptionEventArgs
return void

OnError() public static method

public static OnError ( string message ) : void
message string
return void

Upgrade26xTov270() public static method

public static Upgrade26xTov270 ( XPathNavigator xPathNav ) : void
xPathNav System.Xml.XPath.XPathNavigator
return void