Share via

NSIS install program requir admin,When EnableLua is 0, double-clicking the installer may result in non-admin privileges

m x 0 Reputation points
Apr 15, 2025, 2:35 AM

using 'RequestExecutionLevel' to insure installer' private, but during installer in windows 10 and windows 11 [10.0.22631.2715], double-click installer may result in non-admin during intall.

User's image

call UserInfo::GetAccountType in NSIS script, confirm that it is an administrator permission issue.

User's image

find installer modify regedit 'EnableLua' to 0x00, The above problem occurs when EnableLua is 0x00,

when modify EnableLua to 0x01, problem is solved.

Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
3,057 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.