Setup project custom action reading checkboxes
I have checkboxes and a dialogue added.
I need to be able to read the state of the boxes from a custom action. I also need the path which I have but I can't find how to read the state of the checkboxes.
How can this be done?
public override void Commit(IDictionary savedState)
{
base.Commit(savedState);
String TargetDirectory = Path.GetDirectoryName(C开发者_开发知识库ontext.Parameters["AssemblyPath"]);
MessageBox.Show(TargetDirectory);
// Code needed to read the checkboxes!
}
Found it! in custom Actions add /tool="[XYZ] " /MyInfo="[ABC] "
where XYZ and ABC are the CheckboxNProperty
then read them in in the custom action above thus
MessageBox.Show(Context.Parameters["XYZ"]);
精彩评论