Capturing user input - 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!

wasim
Posts: 2
Joined: Mon Jun 08, 2009 6:34 am

Capturing user input

Hello,
I am new to advanced Installer. I am taking Server IP, Server Port as input from user using "Dialogs". How can i capture this input from user .( How can i know what user has entered?).
Can we save it in some file or any other way? Ideally, i would like to create a batch file out of it and provide it as input in "Scheduled Tasks".
Thanks.
wasim
Posts: 2
Joined: Mon Jun 08, 2009 6:34 am

Re: Capturing user input

Hello,
there is some progress on this issue.
I created a custom action 'inline script' MsgBox Session.Property("PROPERTYNAME")
it diplays the ip user provide in a message box when next button is pressed.
However when i scheduled my .exe to run giving command line as : SERVER: Session.Property("PROPERTYNAME")
process gets executed on scheduled time but unfortunately 'Session.Property("PROPERTYNAME") ' does not get resolved to a value. Instead it seems to be treating as string.
Any suggestions?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Capturing user input

Hi,

Please note that the "Session" object can be used only by VBScript custom actions. To get information from the user you can use custom dialogs. Note that the User Guide contains a dialog tutorial which may help you. Most dialog controls are associated with installer properties which can be used in the installation process.

Installer properties can be used in formatted or pseudo-formatted fields in the project. For example, the command line of your EXE could look like this:

Code: Select all

SERVER: [PROPERTYNAME]
Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”