using Context.Parameters["MYPROP"] from InstallerC - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

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”