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

component::addElevatedOperation() does not add arguments to shortcut's command line

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • 2.0.1, 2.0.5
    • General
    • None
    • Windows 7 Professional, Qt 5.6.0, Qt IF 2.1.0, Visual Studio 2013.

    Description

      There seems to be no way of adding arguments to a command line when creating a shortcut on Windows for all users. When creating a shortcut for a current user, the following code works:

      component.addOperation("CreateShortcut", "@TargetDir@/app.exe", "@DesktopDir@/@ProductName@ @ProductVersion@.lnk"," arg1")

      This creates a desktop shortcut with target set as:

      "<path>/app.exe" arg1

      However, when using addElevatedOperation() in a similar manner, the arguments are missing in the created shortcut and the target is set as follows:

      "<path>/app.exe"

      Attachments

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

        Activity

          People

            installerteam Installer Team
            dburenkov Dmytro Burenkov
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes