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

CreateShortcut for allusers ignores the arguments passed to executable

    XMLWordPrintable

Details

    • b43f06e569a983ae273560f769ec8e6893515750 (installer-framework/installer-framework/4.1)

    Description

      When a shortcut is created for all users with arguments passed, the arguments are ignored.
      Here when @AllUsersStartMenuProgramsPath@ is used, "testArgument" is simply ignored.

       component.addElevatedOperation("CreateShortcut", "@TargetDir@/untitled40.exe", "@AllUsersStartMenuProgramsPath@/README.lnk",  "testArgument" ,
                  "workingDirectory=@TargetDir@", "iconPath=%SystemRoot%/system32/SHELL32.dll",
                  "iconId=2", "description=Open README file");
      

      It works fine when shortcut is created for current user i.e. with @UserStartMenuProgramsPath@.
      Please refer to a sample attached.

      Attachments

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

        Activity

          People

            andysh Andy Shaw
            shmittal Shveta Mittal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes