View Full Version : Variable for Start Menu
03-17-2011, 02:16 AM
Is there a variable or function to get the Start Menu in which the application shortcuts are being created?
The documentation says to use %AppShortcutFolderName%, but this is simply the name of the application.
Shell.GetFolder(SHF_STARTMENU) returns the user specific start menu folder, but if it's being installed for all users, what do I use to get the correct shared folder?
03-17-2011, 08:25 AM
It is in the help file (http://www.indigorose.com/webhelp/suf9/Program_Reference/Actions/Shell.GetFolder.htm). See:
03-17-2011, 05:19 PM
Ah, I'm going blind in my old age! Yes, thanks, I see it's on the line below :)
It would be nice to have a built-in variable pointing to the location where the shortcuts are added through the 'Files' 'Shortcut' settings.
At the moment it appears I have to use something like:
Shell.CreateShortcut(SessionVar.Expand(myStartFold er.."\\Programs\\%AppShortcutFolderName%"), "Sample Files", SessionVar.Expand("%CommonDocumentsFolder%\\Sample Files"), "", "", "", 0, SW_SHOWNORMAL, nil, "Sample Files for use with our product");
I'm not sure why the '\\Programs\\' is needed, but without it you get a doubling up of the entries in the start menu.
How am I 'supposed' to find the path to the folder? Is this the right way?
03-17-2011, 07:09 PM
Have a look at my web site, here: Custom Shortcuts (http://www.mindquake.com.br/en/screens/shortcuts) shows how to create shortcuts manually.
Powered by vBulletin™ Version 4.0.6 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.