Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. CLI installer always installs default components
Forum Updated to NodeBB v4.3 + New Features

CLI installer always installs default components

Scheduled Pinned Locked Moved Solved Installation and Deployment
qtifw
2 Posts 1 Posters 311 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Peter Smithson
    wrote on last edited by
    #1

    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

    P 1 Reply Last reply
    0
    • P Peter Smithson

      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

      P Offline
      P Offline
      Peter Smithson
      wrote on last edited by
      #2

      @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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved