Uninstalling from the old "Programs and Features" in the classic control panel works just fine without UAC prompts. I just tested on Windows 10.0.16184 with this:
InstallDir $TempTest
RequestExecutionLevel user
Section
SetOutPath "$InstDir"
WriteUninstaller "$InstDirUninst.exe"
WriteRegStr HKCU "SoftwareMicrosoftWindowsCurrentVersionUninstallNSIS_W10_HKCU_Test" "DisplayName" "NSIS W10 HKCU Test"
WriteRegStr HKCU "SoftwareMicrosoftWindowsCurrentVersionUninstallNSIS_W10_HKCU_Test" "UninstallString" '"$InstDirUninst.exe"'
SectionEnd
Section Uninstall
DeleteRegKey HKCU "SoftwareMicrosoftWindowsCurrentVersionUninstallNSIS_W10_HKCU_Test"
Delete "$InstDirUninst.exe"
RMDir "$InstDir"
SectionEnd
There is however a known issue if you do the same in the settings app, it will force UAC elevation even for HKCU uninstallers:
This issue in the settings app has existed for a couple of years now and I don't think Microsoft cares.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…