Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSIS Installer without Admin Privileges

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.

like image 773
Dan James Palmer Avatar asked Aug 02 '17 17:08

Dan James Palmer


1 Answers

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.

like image 177
Rei Avatar answered Sep 24 '22 07:09

Rei