Inno Setup 6.2.0: Folder structure in the startmenu

42 views
Skip to first unread message

Dipl.-Ing. C. Pehle

unread,
Nov 15, 2021, 4:40:24 AM11/15/21
to inno...@googlegroups.com

Hello,

just I'm testing Inno setup.

I want to build a structure in the startmenu like this:

Company
    Product1
        Link to Program
    Product2
        Link to Program

I tried this (and other):

[Icons]
Name: "{autoprograms}\{#MyStartMenuFolder}\{#MyProd1Name}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "{app}\MyIcon_32_32px.ico"

Name: "{autoprograms}\{#MyStartMenuFolder}\{#MyProd2Name}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "{app}\MyIcon_32_32px.ico"

It's not working, no startmenu entries are generated. Can someone help?

Setup is running with admin mode under MS-Win7 and MS-Win10.


Best regards

Christian

c.p...@cpehle.de


Andrew Truckle

unread,
Nov 15, 2021, 5:58:18 AM11/15/21
to innosetup
Why have two shortcuts to the same executable?

`"{app}\{#MyAppExeName}"`

Andrew Truckle

unread,
Nov 15, 2021, 5:59:18 AM11/15/21
to innosetup
Also, run your installer with logging enabled and review your log to see what it tells you.

Jernej Simončič

unread,
Nov 15, 2021, 6:45:20 AM11/15/21
to Andrew Truckle on [innosetup]

On Monday, November 15, 2021, 11:59:18, Andrew Truckle wrote:


Also, run your installer with logging enabled and review your log to see what it tells you.
And keep in mind that Windows 10 doesn't allow nested folders in Start Menu.


-- 
< Jernej Simončič ><><><><>< https://eternallybored.org/ >


I'd give my right arm to be ambidextrous.
       -- Greenhaus's Summation

jeff weir

unread,
Nov 15, 2021, 1:13:34 PM11/15/21
to innosetup
What is the value of the DefaultGroupName item in the [Setup] section?

Try setting it to DefaultDirName={ autoprograms}\Company

Then use:

[Icons]
Name: "{group}\{#MyProd1Name}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "{app}\MyIcon_32_32px.ico"

weirdo12

unread,
Nov 15, 2021, 4:44:30 PM11/15/21
to inno...@googlegroups.com
Oops - I missed the important part:

DefaultGroupName=Company

--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/innosetup/68fe1208-3798-4aea-80ba-bded049e5b8en%40googlegroups.com.

Gavin Lambert

unread,
Nov 15, 2021, 5:16:55 PM11/15/21
to inno...@googlegroups.com
On 16/11/2021 10:44, weirdo12 wrote:
> Oops - I missed the important part:
>
> DefaultGroupName=Company
>
> On Mon, Nov 15, 2021 at 1:13 PM jeff weir wrote:
>
> What is the value of the DefaultGroupName item in the [Setup] section?
>
> Try setting it to DefaultDirName={ autoprograms}\Company

You want *only* that DefaultGroupName -- do NOT use {autoprograms} in
DefaultDirName.

jeff weir

unread,
Nov 16, 2021, 12:49:22 AM11/16/21
to innosetup
Thanks for clarifying that. I realized I made an error :) Hopefully, the OP got sent in the correct direction...
Reply all
Reply to author
Forward
0 new messages