Henrique Mesquita
Posts: 22
Joined: Thu Apr 27, 2023 12:22 pm

Adding User-Defined Parameters to Existing Installer

Hello, I hope you are doing well,

We have an installer built with Advanced Installer where the user provides certain parameters during the installation process through the UI. We have a portal where users can download the installer and choose which parameters will be configured. Therefore, we need to add the parameters provided by the user to the already created .exe. Is it possible to perform this process, or is it necessary to build a new installer after receiving the parameters?

Thank you in advance.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Adding User-Defined Parameters to Existing Installer

Hi,

This can be done by simply setting from command line the installer properties (UI parameters) associated with the related UI controls.

For instance you can use a command line like this:

Code: Select all

setup.exe EDITBOX_PROPETY="value filled in edit box"
when launching your EXE setup.

Let me know if this helps, otherwise please give me more details about your request, maybe exemplify a bit or attach some screenshots.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Henrique Mesquita
Posts: 22
Joined: Thu Apr 27, 2023 12:22 pm

Re: Adding User-Defined Parameters to Existing Installer

Good afternoon, apologies for the delay in responding.

We need to pass the information to the already created .exe so that when the user executes it via UI or command line, the properties are already filled in without the user having to enter them.

Practical example:

We have a portal where the user will configure the "key" and "client" information before downloading the installer. After downloading, this installer will already have the "key" and "client" information, and the client will only need to execute it.

Is it possible to pass parameters to the already created .exe?

Thanks in advance.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Adding User-Defined Parameters to Existing Installer

Hi,

A possible solution for you will be to build the setup project on the fly. For instance you can try to trigger an installer build from your web site after the customer fill in his data and then upload the built installer to your customer.

In your setup project you can go to "Properties" page and define some properties (e.g. KEY_PROP, CLIENT_NAME_PROP, etc.) that will be populated with user data.

Then you can create a build script (e.g. a BAT file) that will make use of our command line support to set the KEY_PROP and CLIENT_NAME_PROP properties and build the setup project. The build script would be like this:

Code: Select all

AdvancedInstaller.com /edit setupProject.aip /SetProperty KEY_PROP="<user data input from your web site>"
AdvancedInstaller.com /edit setupProject.aip /SetProperty CLIENT_NAME_PROP="<user data input from your web site>"
AdvancedInstaller.com /rebuild setupProject.aip

Finally you can trigger the above setup project build script from your web site and pass user data input to it and further on send the built setup package to end user.

Let me know if this approach works for you.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”