jcouturier
Posts: 27
Joined: Thu Jul 01, 2021 3:33 pm

get argument in installation

Wed Nov 10, 2021 10:19 am

Hello,
I have two installer (I1 and I2).
I1 call I2, how can I get the arguments in I2 when I run I2 like this: i2.exe / qn arg1 = "value"
Thank you

jcouturier
Posts: 27
Joined: Thu Jul 01, 2021 3:33 pm

Re: get argument in installation

Wed Nov 10, 2021 10:41 am

I would like to pass the installation path to the child installation.

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

Re: get argument in installation

Wed Nov 10, 2021 12:41 pm

Hello,

If you want to pass the arguments, you can use the "Install Command Line" fields.

For instance, if you'd like your prerequisite to have the same installation folder as the main setup, you can pass the following:

Code: Select all

APPDIR="[APPDIR]"

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

jcouturier
Posts: 27
Joined: Thu Jul 01, 2021 3:33 pm

Re: get argument in installation

Wed Nov 10, 2021 1:20 pm

THnak you for your answer.
yes but to get the parameter from the other side, how should I do?
Thank you

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

Re: get argument in installation

Thu Nov 11, 2021 3:53 pm

Hello,

I am not quite sure I understand your scenario here.

Could you please give me some more details (an example would be great)?

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

jcouturier
Posts: 27
Joined: Thu Jul 01, 2021 3:33 pm

Re: get argument in installation

Thu Nov 11, 2021 8:41 pm

I don't need to do that anymore. Thanks anyway :)

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

Re: get argument in installation

Fri Nov 12, 2021 8:53 am

You are always welcome!

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

Return to “Building Installers”