QtIFW add arguments to CreateShortcut operation
-
wrote on 18 Jun 2019, 07:29 last edited by
On Windows, i want to create a desktop shortcut with arguments:
component.addOperation("CreateShortcut", "@TargetDir@/My App.exe", "@DesktopDir@/My App.lnk");
Where and how must i add the arguments? The next statements don't do the job:
component.addOperation("CreateShortcut", "@TargetDir@/My App.exe arg1 arg2", "@DesktopDir@/My App.lnk");
component.addOperation("CreateShortcut", "@TargetDir@/My App.exe" arg1 arg2, "@DesktopDir@/My App.lnk");
I tried everything, but can't figure out how. The documentation and examples are all without arguments.
Thanx. -
wrote on 19 Jul 2024, 12:01 last edited by
Did you figure this out? Stuck on it now.
-
wrote on 19 Jul 2024, 12:43 last edited by
Seems that the answer is:
component.addOperation("CreateShortcut", "@TargetDir@/My App.exe", "arg1 arg2", "@DesktopDir@/My App.lnk");
I'd tried "arg1", "arg2" but that doesn't work.