ajon13
Posts: 10
Joined: Fri May 17, 2013 10:05 pm

Retreiving user input

The problem I am trying to solve is:

I want to post 2 pieces of information to my server. I found it fairly straight forward using the dialog editor and the "send install information to your web server custom action.

The information I need to collect is
1) the product Version
2) an input from the user

The problem is I have a "For Java" license so I can't use the dialog editor. So I was going to solve the problem using vbs and send install information to your web server custom action.

I've now run into the issue where I can only set the customActionData property from within the vbscript, and that property isn't available for the "send install information to your web server custom action".

How can i solve this problem of taking user input and including it in the request for the custom action "send install information to your web server custom action"
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Retreiving user input

Hello,

Indeed the “Dialog Editor” feature require at least an “Enterprise” project type.

In order to get data from a user input you need to display your own custom dialog where the user can input the related data.
Then you need to set the related data to a property before you add our predefined Send install information to your web server custom action to collect installation data and send it to your web server for processing .

Please note that I've done a dummy sample where I added our Execute inline script code predefined custom action with sequence to show a dialog where the user needs to enter its name and also I set the user data input to a public property.

Code: Select all

Session.Property("MY_PROP") = Inputbox ("What's your name?") 
where:
MY_PROP is a public property which I created in Install Parameters page.

Then I've added in the Property pane of the Send install information to your web server custom action these two properties:
  • ProductVersion which contains the product version of the installation package
    MY_PROP which contains the input data from the user
Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ajon13
Posts: 10
Joined: Fri May 17, 2013 10:05 pm

Re: Retreiving user input

Thank you very much.

This solved my problem except that the Send install information to your web server custom action is no available in the "For Java" Version. So, I just posted the information to the server using vbs.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Retreiving user input

You're welcome. I'm glad you got this working.

If there is anything I can help with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”