Uploaded image for project: 'Qt Installer Framework'
  1. Qt Installer Framework
  2. QTIFW-3763

RequiresAdminRights on single package overwrites behavior for all (macOS)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 4.8.0, 4.8.1, 4.9.0
    • General, Scripting
    • None
    • 2020 Macbook Air macOS 14.7.5
      2023 Macbook Pro M3 macOS 15.3
    • macOS

    Description

      So recently we ran into issues with modern versions of QTIF where in the situation where we need to extract data to a location that requires admin (/Library/Application Support/Test) and a user folder (~/Documents/Test) became impossible to do.
      It seems that when using RequiresAdminRights on a single package, all the other packages also get affected and force install using root user permissions.
      This even happens when using addOperation instead of addElevatedOperation, also when setting RequiresAdminRights to false explicitly on the non-elevated component.

      I modified the "modifyextract" example to demonstrate the current problem.
      On the default package, it will extract "test.txt" to "~/Documents/Test" using addOperation extract with no RequiresAdminRights set on the component (same behavior with explicitly setting this value as false for the component)
      On the second package it will then try to extract "test.txt" to "/Library/Application Support/Test" using addElevatedOperation with RequiresAdminRights set true on the package

      This results in both packages being installed under the "root" user, instead of each package following the intended behaviors.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            installerteam Installer Team
            theonlyjoey Joey Ferwerda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes