Here is my code to fill my session in ManagedUI from:
void next_Click(object sender, EventArgs e)
{
MsiRuntime.Session["PASSWORD"] = password.Text;
MsiRuntime.Session["DOMAIN"] = domain.Text;
Shell.GoNext();
}
and here is my CustomAction:
public class CustomActions
{
[CustomAction]
public static ActionResult InstallService(Session session)
{
MessageBox.Show(session["Password"]); // always shows an empty message
return ActtionResult.Success;
}
...
I still haven't figured it out what's wrong with my code? I have populated the data into the session but I can't access it in CustomAction.