In Qt IFW CreateShortcut doesn't work with a GUI install if the shortcut page is disabled
Unsolved
Installation and Deployment
-
Hello,
I'm using QT IFW 4.8.0 on Windows 11.
I have a simple bit of script to create a shortcut -
component.addOperation("CreateShortcut", "@TargetDir@/bin/foobar.exe", "@StartMenuDir@/FOOBAR.lnk", "iconPath=@TargetDir@/lib/myniceicon.ico");
This works fine with a CLI install and a GUI install. Until I have
installer.setDefaultPageVisible(QInstaller.StartMenuSelection,0);
Now the CLI works just as it did before but a GUI install will create the shortcuts in the current directory instead of
C:\Users\psmithson\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
Or to be more accurate, in the current directory in a new folder named after the value in @StartMenuDir@
I don't really need a shortcut selection page so I'd like to get rid of it. How can I do that and make a GUI install work the same as my CLI install?
Thanks