using System; using System.Configuration; using System.Configuration.Install; using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Windows.Forms; using System.Collections.Specialized; namespace CustomAction { [RunInstaller(true)] public class SetupAction : Installer { public override void Install(System.Collections.IDictionary stateSaver) { base.Install(stateSaver); // Retrieve configuration settings string targetSite = Context.Parameters["targetsite"]; string targetVDir = Context.Parameters["targetvdir"]; string targetDirectory = Context.Parameters["targetdir"]; //StringDictionary myStringDictionary = Context.Parameters; //if (Context.Parameters.Count > 0) //{ // foreach (string myString in Context.Parameters.Keys) // { // MessageBox.Show(Context.Parameters[myString]); // } //} MessageBox.Show(Context.Parameters["targetdir"]); MessageBox.Show(Context.Parameters["newwebproperty1"]);//reading virtual directory //path System.Collections.IDictionary myStringDictionary = stateSaver; if (Context.Parameters.Count > 0) { foreach (string myString in myStringDictionary.Keys) { MessageBox.Show(Context.Parameters[myString]); } } } public override void Commit(System.Collections.IDictionary savedState) { base.Commit(savedState); } public override void Uninstall(System.Collections.IDictionary savedState) { base.Uninstall(savedState); } public override void Rollback(System.Collections.IDictionary savedState) { base.Rollback(savedState); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)