Qt Installer Framework: Windows Quick Launch



  • In Windows, it is easy to add a shortcut on the desktop:

        if (isInstallDesktopIconChecked) {
            component.addOperation("CreateShortcut", "@TargetDir@/README.txt", "@DesktopDir@/README.lnk");
        }
    

    It would be nice if one could just as easily add a shortcut on the Quick Launch. I found I could do it with:

        if (isInstallQuickLaunchIconChecked) {
            component.addOperation("CreateShortcut", "@TargetDir@/README.txt", "@HomeDir@/AppData/Roaming/Microsoft/Internet Explorer/Quick Launch/README.lnk");
        }
    

    It would be nice if it were simplified such as:

        if (isInstallQuickLaunchIconChecked) {
            component.addOperation("CreateShortcut", "@TargetDir@/README.txt", "@QuickLaunchDir@/README.lnk");
        }
    

    Maybe a way exists, but I have not found it yet.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.