Skip to content
⌘ NSIS Forum Archive

How can i disable Startmenu Folder Selection ?

8 posts

DaSumpf#

How can i disable Startmenu Folder Selection ?

Hi all,
i don't know how to disable the Startmenu Folder Selection Page. When my Application is installed and someone wants to add some Components, the Startmenu Entry already exists. So i dont need any further Selection of the Startmenu Folder / Entries.
Thanks

ciao ciao DaSumpf
kichik#
Call Abort from the page's pre function and the page will be skipped. See this page for an example:

DaSumpf#
Hi again,
i still have Problems with the STARTMENU Page.
I can search the Registry for an existing Entry. If one exists, I don't want to show the Startmenu Selection Page. Else it should be shown in order to create a new Startmenu Entry. Until now i wasn't able to make the Page's pre-function work. What do i have to define to make it work ?
Thanks

ciao ciao DaSumpf
kichik#
That depends on what you are using. If you're using the MUI there is a readme that lists all of the valid defines, and the define you are looking for under Start Menu Page. If you're not using the MUI there is a whole section in the manual about pages and page callbacks.
DaSumpf#
Hi again,
I'm using the MUI.
I wrote some Code, but i don't know if it works :
!define TEMP2 $R0
ReadRegStr ${TEMP2} HKCU "Software\${MUI_PRODUCT}" "Start Menu Folder"
StrCmp ${TEMP2} "" shortcuts noshort
shortcuts:
!define MUI_STARTMENUPAGE ; can this work ******???
Call WriteStartMenu
noshort:
DaSumpf#
I put the code above into .onGUIInit, but it doesn't work as it should. I would be very glad if someone could show me an example please. Thanks again !

ciao ciao DaSumpf
Joost Verburg#
Defines are processed on compile-time. You should use the pre function of the page (see Modern UI Readme).