NSIS Installer without Admin Privileges
Asked Answered
V

1

12

I'm trying to configure the NSIS installer to run without admin privileges. Is this possible?

I'm testing as a non-admin user because some customers don't have those privileges.

What settings in NSIS cause the installer require admin privileges?

I've tried all variations of RequestExecutionLevel none with no joy.

Vistula answered 2/8, 2017 at 17:21 Comment(0)
S
19

To make your installer run without admin privileges, use this:

RequestExecutionLevel user

Use admin to make your installer require admin privileges. From the reference, none has the same effect (emphasis mine):

Windows Vista/7 automatically identifies NSIS installers and decides administrator privileges are required. Because of this, none and admin have virtually the same effect.

Stenotype answered 2/8, 2017 at 18:1 Comment(1)
This works for ZIP based installers too. Just add RequestExecutionLevel user to the file Contrib\zip2exe\base.nsh (but this will remove admin privileges for all ZIP based installers created from now on)Jahdal

© 2022 - 2024 — McMap. All rights reserved.