Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

Qt Installer Framework : Create shortcut on the desktop

$
0
0
Hello, I use Qt Installer framework 1.5 After the installation, I would like to add a shortcut on the desktop. In my file installscript.qs, I tried :     Component.prototype.createOperationsForPath = function()     {       if (installer.value("os") === "win")       {         try {           component.addOperation("CreateShortcut", "@TargetDir@/App.exe", "@DesktopDir@/App.lnk");         }         catch (e) {           print(e);         }       }     } But it doesn’t work, the shortcut isn’t created and I don’t have any error messages. The documentation on Internet is really light. Any idea ? Thank you

Viewing all articles
Browse latest Browse all 2113

Trending Articles