We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

sniderjw
Posts: 1
Joined: Tue Feb 28, 2017 10:49 pm

Making projects using prerequisites and/or repository snippets from the command line

This may end up as feature requests instead of something solvable right now but here goes. We are looking at automated building of MSIs from the command line/command file. We would be using our other installers as ordered prerequisites to put the target computer in a known state.

When I add a MSI package from the GUI by default it adds the Type 4 install condition to check the product version based on the upgrade code with the minimum required version added to the condition and display property field. However when I add a prereq via CLI this is not the default behavior and I do not see an option in the argument list to add the condition. Am I missing something obvious or is this not implemented in the CLI?

Another track I was looking at was to add a saved prereq from the Repository via the command line. Yes I would have to configure the values/install conditions once by hand in the GUI but I could then use the saved snippet over and over. I see the set and get repositorypath options on the command line but no way to use the Repository via the CLI.

Any suggestions?

(Depending on the project I am currently using AI versions 11.0-13.4)
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Making projects using prerequisites and/or repository snippets from the command line

Hi and welcome to Advanced Installer forums.
When I add a MSI package from the GUI by default it adds the Type 4 install condition to check the product version based on the upgrade code with the minimum required version added to the condition and display property field. However when I add a prereq via CLI this is not the default behavior and I do not see an option in the argument list to add the condition. Am I missing something obvious or is this not implemented in the CLI?
Indeed, the "Product Version (identify by Upgrade Code)" install condition is not added automatically for an MSI prerequisite that was added through command line. You can add install conditions through command line, but we only support few search types (e.g. FileVersion|RegSubKeyEnum|RegValue).

I added this on our TODO list and it will be implemented in a future version of Advanced Installer. Thank you for your suggestion.
Another track I was looking at was to add a saved prereq from the Repository via the command line. Yes I would have to configure the values/install conditions once by hand in the GUI but I could then use the saved snippet over and over. I see the set and get repositorypath options on the command line but no way to use the Repository via the CLI.
Unfortunately, we do not have support for this either. I added this on our TODO list and we will try to implement it in a future version of Advanced Installer, too.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”