Setting MUI_STARTMENUPAGE_REGISTRY_ROOT dynamically?
I've been reading "Examples\Modern UI\StartMenu.nsi" which explains how to uninstall a user-defined folder in the Start Menu containing "Application"'s shortcuts:

!insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall.lnk"

However, how do I get hold of $SMPROGRAMS if SetShellVarContext is set dynamically? Do I have to loop over both "HKCU" and "HKLM" or is there a cleaner way?

Angus