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

get argument in installation

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

I would like to pass the installation path to the child installation.
Catalin
Posts: 6582
Joined: Wed Jun 13, 2018 7:49 am

Re: get argument in installation

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

THnak you for your answer.
yes but to get the parameter from the other side, how should I do?
Thank you
Catalin
Posts: 6582
Joined: Wed Jun 13, 2018 7:49 am

Re: get argument in installation

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

I don't need to do that anymore. Thanks anyway :)
Catalin
Posts: 6582
Joined: Wed Jun 13, 2018 7:49 am

Re: get argument in installation

You are always welcome!

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

Return to “Building Installers”