DaSumpf
23rd September 2003 10:41 UTC
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
23rd September 2003 10:52 UTC
Call Abort from the page's pre function and the page will be skipped. See this page for an example:
http://nsis.sourceforge.net/archive/...php?pageid=320
DaSumpf
23rd September 2003 10:56 UTC
Thanks a lot !
ciao ciao DaSumpf
DaSumpf
24th September 2003 14:15 UTC
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
24th September 2003 15:05 UTC
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
25th September 2003 10:44 UTC
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
26th September 2003 07:39 UTC
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
26th September 2003 11:43 UTC
Defines are processed on compile-time. You should use the pre function of the page (see Modern UI Readme).