View Single Post
Old 9th March 2020, 00:38   #7
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,277
Yes. The important parts are the init functions, the uninstaller "tag" and using ShCtx.

The github code you linked to clearly reads and writes to HKCU.

The version check tries the enforce admin rights on 2000 and XP but it is flawed because:
A) It forgot about NT4 and 2003
B) UAC can be turned off on Vista+
C) Users can bypass UAC and run it as non-admin

Version check should ideally use AtMost/AtLeast but that script should not check the version at all, treat all versions the same.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote