marcelo
Posts: 103
Joined: Fri Sep 28, 2007 2:07 pm

using Context.Parameters["MYPROP"] from InstallerC

Hi there,

I have a property created on Advanced Installer, called VDSINFO, it contains a XML String with some information about a server,user and password. That property is set on my VBS script on the UI.
After I set it on VBS i do a MSGBOX and the value is there.

Now I'm trying to use it on the InstallerClass (.net custom action) on the installation process (after the files get copied).

I use: this.Context.Parameters["VDSINFO"], but that returns me an empty string.

What can I be doing wrong?

Thanks,
Marcelo

ON the VBS how do I put the value on the property:
Session.Property("VDSINFO") = strVirDirInfo

on my installerclass:

public override void Install(IDictionary savedState)
{
string strVDSInfo = this.Context.Parameters["VDSINFO"];
System.Windows.Forms.MessageBox.Show(strVDSInfo);
}
marcelo
Posts: 103
Joined: Fri Sep 28, 2007 2:07 pm

Found the answer for my question, I had to go on the custom actions properties and add a new property and assign it to my Installer property for it to work.

Return to “Common Problems”