WINAMP.COM | Forums > Developer Center > NSIS Discussion > Win Vista/7: No writing in directories with spaces in the name |
Last Thread
Next Thread
|
| Author |
|
|
Anders Major Dude
Registered: Jun 2002 |
RequestExecutionLevel user << needs to be admin __________________ |
||
|
|
|
Ciceti Junior Member
Registered: Nov 2009 |
Since I (and others) am having the same problems, I try to better understand: code: Why should I also check the user privilege in onInit function? Also to be able to freely write to and read from all the nested subfolders when the program is launched by a normal user, I should install the AccessControl plugin in NSIS and add to the script a code: Correct? Other things am I missing? Thanks a lot! Ciceti |
||
|
|
|
MSG Senior Member
Registered: Oct 2006 |
code: Correct? Other things am I missing? Looks about right. But you really shouldn't open up a directory to all users like that. What if $INSTDIR is somewhere in Program Files? Then that subdir would become open to all users, some user does something stupid to put a virus into that open directory, and then a system admin might run the virus at admin level because he thinks "an application in program files is safe, because only an admin could have put it there." Instead, you should program your application to write to LocalAppData or something like that. |
||
|
|
|
Ciceti Junior Member
Registered: Nov 2009 |
Thanks, a couple of clarifications. |
||
|
|
|
MSG Senior Member
Registered: Oct 2006 |
code: quote: Well yes, you can restrict as much as you like. To prevent giving 'all access' I currently use: code: But as you can see, if you give them that much, it makes little difference to just give it all. If they can write, they can destroy, so you might as well make it easy on them. |
||
|
|
|
Ciceti Junior Member
Registered: Nov 2009 |
Thanks a lot. |
||
|
|
|
MSG Senior Member
Registered: Oct 2006 |
|
||
|
|
|
Last Thread Next Thread
|
WINAMP.COM | Forums > Developer Center > NSIS Discussion > Win Vista/7: No writing in directories with spaces in the name |
Forum Rules:
|