Is there a way with nsis to set windows path. Like in a batch file you would have
set var=path\to\folder
is there a way to do that using nsis??
New: r3dfox (July 15, 2025), Platform 30.0.4 (July 15, 2025)
1,100+ portable packages, 1.2 billion downloads
We are operating at a loss, please donate today
NVM i found a system call for it just one quick question when using system calls does it require admin rights??
System::Call 'Kernel32::SetEnvironmentVariableA(t, t) i("name", "value").r0'
StrCmp $0 0 error
ExecWait ProgThatReadsEnv.exe
Goto done
error:
MessageBox MB_OK "Can't set environment variable"
done:
it has a way to launch a program with minimal rights. It strips off all admin privileges and the admin group, leaving your program running with just the access your user account would have if it weren't admin. If you use that for testing, it ought to tell you right away.
MC