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!

sandeep.gvn
Posts: 26
Joined: Wed Jan 15, 2014 11:55 am

How to capture the parameters and update a file?

Hi,

I have a requirement.. where in I am supposed to capture the information like IP Address and Port Number from the user as soon as the installer starts.. Could you please help me how to go with that in detail by providing a sample.

Regards,

G.V.N.Sandeep
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How to capture the parameters and update a file?

Hello,

In order to get a free TCP port you can use our "Get a free TCP port" custom action. The custom action will search for a free TCP port and will set its number in the AI_SEARCH_TCP_PORT property.
You can take a look on our How to get a free TCP port article and also on our How to change port number of Jboss 7 dynamically? forum thread which can guide you further.

Unfortunately Advanced Installer can not search for the host IP Addresses. In order to do that you can create your own custom action that has this functionality. Here's some VBScripts code which may be useful:Retrieve Client-Side Networking Settings through VBScript.

In order to store all the above information in a file you can use our XML Editor. Here's an article with related information for hints and guidance: Import and edit a XML file

Please let us know if you have other questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sandeep.gvn
Posts: 26
Joined: Wed Jan 15, 2014 11:55 am

Re: How to capture the parameters and update a file?

Hello DAN,

The information provided in the help article is not giving me a clear picture...

I have an XML File with the tag as <URI></URI>, I would to associate an edit control to this tag.. So, when I input text to the edit control.. the tag <URI></URI> Should be filled with the input provided by the client. How would I achieve this.

For Example:

Default Tag before installation: <URI></URI>
And after the user provides input, it should be some thing like this.. <URI>tcp://100.105.109.170:1560</URI>

Regards,

G.V.N.Sandeep
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How to capture the parameters and update a file?

Hello Sandeep,

In order to achieve that you can specify the public property assigned for the related edit box control where the user can give an input in the Text field in the Element Settings tab of the XML Dialog.

Please let me know if you have other questions.

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

Return to “Building Installers”