CLI installer always installs default components
-
I've been reading about command line options to an installer - https://doc.qt.io/qtinstallerframework/ifw-use-cases-cli.html
I'm pretty sure "packages" and "components" are exactly the same thing - correct me if I'm wrong.
With the installer I have created, I have something like this (they all default to checked in the GUI installer) -
com.acme.product1 com.acme.product2 com.acme.product3
If I run the installer in the GUI, I can select the "product1" and, say, "product2" only.
But from the command line, if I do:
installer.exe install com.acme.product1 com.acme.product.product2
I will get product3 as well.
I've found that it's because it will install any packages that have the default=True tag in packages.xml
How do I do the equivalent of what I can do in the GUI and disable a default package?
The web page says that if you do just "install", then you get the default packages. If you specify packages, then you should only get the ones specified (and any dependencies). I think this is a bug.
I'm using QtIFW 4.2.0. I've also posted this on stackoverflow.
Thanks.
Peter
-
@Peter-Smithson Oh - I found another page - https://doc.qt.io/qtinstallerframework/ifw-cli.html (well actually - I did --help, found an option and then googled it to find the page!)
The use-cases page isn't very clear. If you only want the components listed to install (with dependencies), you must add the --no-default-installations option.