Details
-
Bug
-
Resolution: Won't Do
-
Not Evaluated
-
None
-
2.0.1, 2.0.5
-
None
-
Windows 7 Professional, Qt 5.6.0, Qt IF 2.1.0, Visual Studio 2013.
Description
There seems to be no way of adding arguments to a command line when creating a shortcut on Windows for all users. When creating a shortcut for a current user, the following code works:
component.addOperation("CreateShortcut", "@TargetDir@/app.exe", "@DesktopDir@/@ProductName@ @ProductVersion@.lnk"," arg1")
This creates a desktop shortcut with target set as:
"<path>/app.exe" arg1
However, when using addElevatedOperation() in a similar manner, the arguments are missing in the created shortcut and the target is set as follows:
"<path>/app.exe"