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

CreateLink operation doesn't produce a working junction in system directories

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 3.1.1
    • Fix Version/s: None
    • Component/s: General
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      For a component, adding operation 'CreateLink' with the argument 'linkPath' pointing to a folder under some system directory, for example "C:\Program Files", "C:\Program Files (x86)" and "C:\Windows" does not produce a working directory junction on Windows.

      Running an example installer with --verbose parameter shows two warnings inside CreateLink operation section in output (with double backslashes in the paths):

      Warning: Cannot open "C:\Program Files\InstallDir\testlink" : "Access is denied.\r\n (0x00000005)"
      Warning: Cannot open "C:\Program Files\InstallDir\testlink" : "The operation completed successfully.\r\n (0x00000000)"

       It does not seem to matter if the 'linkPath' points under installation target directory or not, as long as it is under a system directory. It also does not matter if the component defines '<RequiresAdminRights>true</RequiresAdminRights>' in its package.xml or if the operation is created with 'component.addElevatedOperation()' in component install script.

        Attachments

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

          Activity

            People

            • Assignee:
              installerteam Installer Team
              Reporter:
              arttu.tarkiainen Arttu Tarkiainen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes