You are here

How to set path??

3 posts / 0 new
Last post
IllusionofDemise
Offline
Last seen: 7 years 11 months ago
Joined: 2007-08-08 08:53
How to set path??

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??

IllusionofDemise
Offline
Last seen: 7 years 11 months ago
Joined: 2007-08-08 08:53
NVM i found a system call

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:

rab040ma
Offline
Last seen: 2 days 18 hours ago
Joined: 2007-08-27 13:35
If you are using Process Explorer ...

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

Log in or register to post comments