I noticed the use of the Ultra Modern UI causes modification of the shell var context that I've set. Minimal reproduce program:
!include UMUI.nsh
OutFile "produce.exe"
RequestExecutionLevel user
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
Function .onInit
SetShellVarContext all
FunctionEnd
InstType "Typical"
Section "Core Files (required)" SectionCoreFiles
SectionIn 1 RO
!insertmacro UMUI_GETSHELLVARCONTEXT
Pop $0
MessageBox MB_OK "$0" ; displays "current"!?
SectionEnd I get this also with MUIEx.nshWith MUIEx.nsh I also get a fantastic "Threat blocked" fatal notification from Avast 🙂 (I cannot attach the png screenshot from Avast here)