No more problems for directories with a name starting with "error"
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2096 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
9892281211
commit
37a03e4fac
5 changed files with 27 additions and 14 deletions
|
@ -15,16 +15,21 @@ FunctionEnd
|
|||
|
||||
Page custom StartMenuGroupSelect ": Start Menu Folder"
|
||||
Function StartMenuGroupSelect
|
||||
Push $R1
|
||||
|
||||
StartMenu::Select /checknoshortcuts "Don't create a start menu folder" /autoadd /lastused $R0 "StartMenu.dll test"
|
||||
Pop $R1
|
||||
|
||||
StrCpy $R2 $R1 5
|
||||
StrCmp $R2 "error" 0 +3
|
||||
StrCmp $R1 "success" success
|
||||
StrCmp $R1 "cancel" done
|
||||
; error
|
||||
MessageBox MB_OK $R1
|
||||
Return
|
||||
StrCpy $R0 $R1 ; got the dir, or cancel, but if it's cancel NSIS will exit and
|
||||
; then we shouldn't care about the value of $R0
|
||||
success:
|
||||
Pop $R0
|
||||
|
||||
done:
|
||||
Pop $R1
|
||||
FunctionEnd
|
||||
|
||||
Page instfiles
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue