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

CreateShortcut for URL on Windows ignores icon

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 3.0.1
    • General
    • None

    Description

      Using CreateShortcut on Windows with a URL (http:..), it correctly creates an InternetShortcut instead of a ShellLink (which is used for regular shortcuts).  However, other arguments to CreateShortcut appear to be ignored in this case - That is, I want to use an explicit icon for my URL shortcut, but it is not set.

      Looking at the source code, I see in createshortcutoperation.cpp that for ShellLinks, the optional arguments (e.g., icon, description) are applied to the link object after it is created.  However, this is not done for the InternetShortcut.

      The additional/optional arguments should either be applied, or a warning provided, or a separate CreateShortcut method for URLs with only the arguments actually used.

      Attachments

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

        Activity

          People

            installerteam Installer Team
            rick.gould Rick Gould
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes