Skip to content
⌘ NSIS Forum Archive

Can't change value of MUI_STARTMENUPAGE_DEFAULT_FOLDER

5 posts

jfix#

Can't change value of MUI_STARTMENUPAGE_DEFAULT_FOLDER

Hello,

I've used the EclipseNSIS plugin to create an initial functioning NSI script. This created among other things the lines

Name MyApp
# [...]
!define MUI_STARTMENUPAGE_DEFAULT_FOLDER $(^Name)

Well, now I wanted to change this value to something else, like this:

!define COMPANY "Company Name"
# [...]
!define MUI_STARTMENUPAGE_DEFAULT_FOLDER "${COMPANY}"

But I can try whatever I do ... when testing the setup.exe the default folder is always MyApp.

Could anybody please tell me what I am doing wrong (should something else be changed as well, is this an immutable value???). I spent a couple of hours on this and found no solution.

Thanks in advance.
jfix#
Hi Stu,

Originally posted by Afrow UK
Make sure you've put the code above your !insertmacro pages.

-Stu
I checked that, and it is as it should be.

However, I tried to understand the following and failed 🧟


Var StartMenuGroup
#[...]
!insertmacro MUI_PAGE_STARTMENU Application $StartMenuGroup
Is "Application" some hard-coded symbol, can I change it, why is it called "Application"? When does the StartMenuGroup variable gets its initial default value and from where ...?

I wonder whether it's possible to define a Start menu group that's not just one directory deep, but three. While I know it's possible in theory, I don't know how to do it in NSIS.

Help, please?!

I can provide the nsi file if it helps ...
jfix#
Originally posted by kichik
Please do.
Here it goes. I had to remove the corresponding page (one cannot choose the start menu group at the moment) because it was really urgent. However, I am still really interested in your comments, as this is the first nsis setup I did.