I have created a Setup Project for my .net application. I want to add another dialog after installation folder selection. I have added that dialog from User Interface panel.
It is showing me correctly.
Now, I want to write some code as per selected option in CustomInstallerClass
. But, I don't know how to fetch that value (Selected Radio Button) in Commit
process. So, i can do my further process as per radio button selection.
I cannot use Wix or any other third party tool to create that package. I have also read some other post like this on SO. But, I could not found any solution from these.
EDITED:
I am using these code to retrieve available parameter in the context. but in the result i couldn't find any parameter from my custom dialog.
protected override void OnCommitted(System.Collections.IDictionary savedState)
{
string Values = string.Empty;
foreach (string skey in this.Context.Parameters.Keys)
Values += skey + Environment.NewLine;
MessageBox.Show(Values);
base.OnCommitted(savedState);
}
The result are displaying like this.
action
installtype
assemblypath
logfile