|
|
#1 |
|
Junior Member
Join Date: Jun 2003
Posts: 46
|
What field to check in my StartMenuLeave function?
MUI 1.65, I updated via CVS this morning. Win98SE here.
I am using the logic of the StartMenu.nsi and I build on that. My StartMenuLeave function is shown below. My problem is that I don't know where to find the folder name entered (or selected) by the user. MUI_STARTMENUPAGE_VARIABLE contains the previous value entered (or selected) by the user. This is my first Leave function, and I cannot find the answer. ; validate the Start Menu folder entered (or selected) by the user Function StartMenuLeave MessageBox MB_OK "at1 MUI_STARTMENUPAGE_VARIABLE = ${MUI_STARTMENUPAGE_VARIABLE}" ;debug StrCmp ${MUI_STARTMENUPAGE_VARIABLE} "${MUI_PRODUCT}" PathGood StrCmp ${MUI_STARTMENUPAGE_VARIABLE} "" PathBad Push ${MUI_STARTMENUPAGE_VARIABLE} Call GetFileName ; get last part of path Pop $R0 ;$R0 is now "last part of path" StrCmp $R0 "${MUI_PRODUCT}" PathGood PathBad: MessageBox MB_OK|MB_ICONSTOP "Problem with folder name. The Start Menu folder (or sub-folder) must be ${MUI_PRODUCT}" Abort ; stay on page PathGood: FunctionEnd Thank you, Lilla |
|
|
|
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|