sasha
Posts: 67
Joined: Fri Oct 20, 2023 8:37 pm

When is the command line for a prerequisite is formed?

Hello,
thanks for looking at my question.
AI v. 21.7.1.

I have a project, in which I add a new prerequisite (via the /NewPrerequisite option).
I specify a command line (it is basically another .exe installer).
One of the command-line parameters is a property of this project. I pass it like this: SomeProp=[SOME_PROP].

The SOME_PROP can be modified by a custom action in this 'top' installer. And it appears the command lie to the new prerequisite doesn't reflect this change. I see the original value of the SOME_PROP passed on the command line to the prerequisite.

Unfortunately, it doesn't appear that the log files contain the log of the command line being created for the prerequisite.

So, my question is - is it expected that a property that is modified by a custom action will be used with an updated value to form a command line for a prerequisite?
The type of the prerequisite is `PostInstall`.
The custom action that modifies SOME_PROP is executed in the Install Execution stage.

Thanks!

p.s. This used to work in an earlier version of AI (19), but I some other things have changed as well, so I can't claim this with 100% certainty.
Eusebiu
Posts: 4960
Joined: Wed Nov 14, 2012 2:04 pm

Re: When is the command line for a prerequisite is formed?

Hello,

Please take a look on the "FAILURE TO UPDATE VIA COMMAND LINE AFTER VERSION 20.7.1" thread which debates the same issue.

We're already working on a fix for this issue and it will be available in the near feature. Thank you for your understanding!

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sasha
Posts: 67
Joined: Fri Oct 20, 2023 8:37 pm

Re: When is the command line for a prerequisite is formed?

Thanks for the reply.
Fortunately, we were able to drop the requirement of modifying the property, so things now work.
Catalin
Posts: 7513
Joined: Wed Jun 13, 2018 7:49 am

Re: When is the command line for a prerequisite is formed?

Hello,

Thank you for your followup on this!

We are glad to hear everything is working as expected now.

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

Return to “Building Installers”