Question : NSIS - Install as "Admin", but invoke app as "User" (from the installer script)

We're using NSIS Unicode 2.46 to build our product's installer.

the installer does things that require admin privileges. This is why we're setting "RequestExecutionLevel admin" in our script.

Our installer is designed to execute the installed application at the end of a successful installation. Our problem is that this execution is also done with "Admin" privileges, and we'd like it to be "user" privileges.

we've tried setting the "RequestExecutionLevel" again, just before using the "exec" command, but this has no effect.

Is there a way to execute an app from an NSIS install script in "user" mode even though the script itself is running in "admin" mode?

Answer : NSIS - Install as "Admin", but invoke app as "User" (from the installer script)

Don't use the manifest elevation. Instead run your setup with normal privileges, call ShellExecute with verb=runas and call your setup again e.g. with a parameter. In the end you can inform (either a ExitCode, SendMessage or an Event) the first setup, running as user, to start your main application (as user of course).
Random Solutions  
 
programming4us programming4us