Arrby
21st March 2005 10:23 UTC
Modern UI STARTMENU DEFAULT FOLDER
Hi all,
First let me say THANKS to developers and those who
answer the questions. Great system! :up: :up:
Now my question:
I want to create shortcuts in a specific folder, within the normal start menu path, but I want to allow the user the option of choosing the FIRST LEVEL folder under the normal path, i.e.:
blabla\Start Menu\OPTIONALFOLDER_OR_NONE_\SPECIFIC_FOLDER
but I cant seem to figure out how.
If I DONT specify MUI_STARTMENUPAGE_DEFAULTFOLDER the start menu defaults to my Name attribute which I dont want.
If I specify MUI_STARTMENUPAGE_DEFAULTFOLDER "" (null), the page gets skipped completely.
If I specify MUI_STARTMENUPAGE_DEFAULTFOLDER $SMPROGRAMS
it ALMOST works okay, but any folder the user clicks on gets
PREPENDED to the variable. This last option is closest to what I would like if there was a way to specify to append rather than prepend the selected folder.
Actually what I would really like would be to have the startmenu textctrl be completely blank with the listbox containing the 1st level folders, The user could choose the
1st level folder (or none), and I could then append the specific folder I want.
Any advice on how to achieve this?
Afrow UK
21st March 2005 13:22 UTC
Tried?:
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "$SMPROGRAMS\OPTIONALFOLDER_OR_NONE_\SPECIFIC_FOLDER"
-Stu
Arrby
21st March 2005 19:05 UTC
Thx for your suggestion, but I was probably unclear (notice time I posted). ;)
I want to show the STARTMENU page to allow the user the "opportunity" to enter something, ie the OPTIONALFOLDER_OR_NONE. I have no idea what it would be or even care if the user enters.
I DONT want to do:
!define MUI_STARTMENUPAGE_DEFAULTFOLDER
"$SMPROGRAMS\SPECIFIC_FOLDER"
cuz 1.) anything the user clicks on PREPENDS to the string as in :
C:\Documents and Settings\Administrator\Start Menu\Programs
and user clicks on a folder in listbox, say Accessories, then Accessories gets PREPENDED to the string, i.e.:
Accessories\C:\Documents.......
and 2)
I dont want to allow the deletion/replacement of the SPECIFIC_FOLDER at all.
Closest I can get to desired behavior seems to be
!define MUI_STARTMENUPAGE_DEFAULTFOLDER " "
but the Startmenu Page then shows with a single, selected
(highlighted) blank in the text control. I suppose I can
live with this though it looks a bit funky.
I was hoping someone knew how to change the behavior of the Modern UI so it would still stop on Startmenu page when
MUI_STARTMENUPAGE_DEFAULTFOLDER is not defined, and knew how
to get it to APPEND the folder the user selects to the text ctrl instead of PREPENDING the text.
I see ${NSISDIR}\Contrib\Modern UI\System.nsh IS??
the Modern Ui Implementation? Any idea where in there to start looking to try to modify the behaviour?