WINAMP.COM | Forums > Developer Center > NSIS Discussion > IsUserAdmin? |
Last Thread
Next Thread
|
| Author |
|
|
CancerFace Senior Member
Registered: Apr 2006 |
I have seen similar functionality in a plugin and I wanted to achieve the same using the system plugin, thus trimming down the size of my installer a bit. It turned out to be quite easy code: Usage: code: I hope this is useful for others as well ![]() CF |
||
|
|
|
kichik M.I.A. [NSIS Dev, Mod]
Registered: Oct 2001 |
CheckTokenMembership is a nice little useful function, but sadly it's not available on NT. You should use a different method, if you intend to support NT. __________________ |
||
|
|
|
CancerFace Senior Member
Registered: Apr 2006 |
Good point kichik, thanks for pointing that out code: It can be used as the previous macro: code: The above code should be compatible with NT as well. I didn't add any error checking though for this one ... CF |
||
|
|
|
CancerFace Senior Member
Registered: Apr 2006 |
No need to use Pop $tmp1 after calling the macro... Last edited by CancerFace on 10-23-2006 at 02:09 PM |
||
|
|
|
CancerFace Senior Member
Registered: Apr 2006 |
I also forgot to mention that I have added a wiki page for these macros ... |
||
|
|
|
vadzen Junior Member
Registered: Apr 2005 |
Thanks a lot! code: Log file is: code: P.S. I found yours macro in NSIS wiki - THANKS. |
||
|
|
|
vadzen Junior Member
Registered: Apr 2005 |
Sorry for question, I found logic solution: code: Thanks a lot |
||
|
|
|
Last Thread Next Thread
|
WINAMP.COM | Forums > Developer Center > NSIS Discussion > IsUserAdmin? |
Forum Rules:
|