JordanD83
Posts: 3
Joined: Sat May 14, 2022 9:42 am

Custom Action Install Parameters

Sat May 14, 2022 10:31 am

I have multiple .msi files I need to install from Custom Action - Launch Attached File, but I need to pass parameters for each. How can I do this? Would this be done in the Properties? And no I do not want to install these are prerequisites.

Catalin
Posts: 6541
Joined: Wed Jun 13, 2018 7:49 am

Re: Custom Action Install Parameters

Mon May 16, 2022 8:57 am

Hello and welcome to our forums,

In order to pass a parameter (called property) to an MSI installation, you can proceed as it follows (outside of Advanced Installer):

Code: Select all

msiexec /i "<path_to_msi>" YOUR_PROPERTY="your_value"
More details about this in the following article:

Msiexec.exe Command Line

In your case, you can indeed try to use the "Properties" field:
Properties (in the case of an MSI installation) representing settings for the installation process. Usually, they will specify some features that are to be installed. Note that it is not recommended to attach an MSI package to an installation.
e.g.:

Code: Select all

MY_PROPERTY="SomeValue"
Additionally, please note that with this type of custom action, the MSI will always be installed silently (without any UI being displayed).

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

JordanD83
Posts: 3
Joined: Sat May 14, 2022 9:42 am

Re: Custom Action Install Parameters

Mon May 16, 2022 7:56 pm

Catalin wrote:
Mon May 16, 2022 8:57 am
Hello and welcome to our forums,

In order to pass a parameter (called property) to an MSI installation, you can proceed as it follows (outside of Advanced Installer):

Code: Select all

msiexec /i "<path_to_msi>" YOUR_PROPERTY="your_value"
More details about this in the following article:

Msiexec.exe Command Line

In your case, you can indeed try to use the "Properties" field:
Properties (in the case of an MSI installation) representing settings for the installation process. Usually, they will specify some features that are to be installed. Note that it is not recommended to attach an MSI package to an installation.
e.g.:

Code: Select all

MY_PROPERTY="SomeValue"
Additionally, please note that with this type of custom action, the MSI will always be installed silently (without any UI being displayed).

Best regards,
Catalin
Thank you for the response and answer I was looking for, and glad to hear the attached MSI's will be installed silently by default!

Catalin
Posts: 6541
Joined: Wed Jun 13, 2018 7:49 am

Re: Custom Action Install Parameters

Tue May 17, 2022 8:51 am

You are always welcome!


Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”