I want to create a folder under the Start Menu using InnoSetup. On Windows 7 the start menu should show a highlight and then show my app's folder highlighted after clicking All Programs like I see when installing other apps. If I put multiple items in [icon] like below, will it automatically create a group? Or if not, how do I specify the folder?
This didn't work (taken directly from InnoIDE wizard):
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}"
It only created a shortcut to the app, not a folder in the Start Menu.
Edit: It works fine on XP, but on Windows 7 I just see one shortcut when I bring up the start menu and nothing inside All Programs.
Apparently Windows 7 will just not show start folders after you get so many in your "all users" directory. I went to "C:\ProgramData\Microsoft\Windows\Start Menu\Programs" and deleted a few links for software I didn't use often and viola - my missing start group appeared.
You're basically on the right track. A "folder in the start menu" is indeed a "start menu group", with the InnoSetup variable "{group}".
Please bear in mind that Windows has two different start menus:
{userstartmenu} & {commonstartmenu}
Here are a couple of good links (besides, of course, the actual InnoSetup documentation):
http://www.vincenzo.net/isxkb/index.php?title=Installation_considerations
http://www.jrsoftware.org/iskb.php?startmenuorder
PS: Vista and Windows 7 organize shell settings and user preferences completely differently from Windows XP. For example, "SendTo" and "Startup Folder" are now located way under
c:\users\SOMEUSER\AppData\Roaming\Microsoft\Windows\Start Menu\Programs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With