chore: initial commit (extracted from Launchers monorepo)
Plugin: nsShellExecAsUser v1.0.0 Architectures: x86-ansi, x86-unicode, amd64-unicode License: zlib
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
; ShellExecAsUser Example
|
||||
; Executes notepad.exe as standard user from an elevated installer
|
||||
|
||||
!include "LogicLib.nsh"
|
||||
|
||||
; Add plugin dir if needed
|
||||
; !addplugindir "plugins\x86-unicode"
|
||||
|
||||
Name "ShellExecAsUser Example"
|
||||
OutFile "example_output.exe"
|
||||
RequestExecutionLevel admin
|
||||
ShowInstDetails show
|
||||
|
||||
Section "Test"
|
||||
; Run notepad as the logged-on user (even from elevated context)
|
||||
ShellExecAsUser::ShellExecAsUser "open" "notepad.exe" ""
|
||||
Pop $0
|
||||
DetailPrint "Return: $0"
|
||||
SectionEnd
|
||||
Reference in New Issue
Block a user