Modern UI custom page and pre functions
I use to have just one custom page. When I tried to add another and also add pre functions to both, I got an already defined error on the pre. I commented out one of my shortcut pre's and then the error moved to the directory pre. Does modern UI only allow one pre function to be defined?
; Create Shortcuts
!define MUI_PAGE_CUSTOMFUNCTION_PRE ShortcutsPre
Page custom CustomPageCREATESHORTCUTS
;!define MUI_PAGE_CUSTOMFUNCTION_PRE ShortcutOn7Pre
Page custom CustomPageCREATESHORTCUTSOn7
; Directory page
!define MUI_PAGE_CUSTOMFUNCTION_PRE DirectoryPre
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE DirectoryLeave
!insertmacro MUI_PAGE_DIRECTORY