|
|
#1 |
|
Junior Member
Join Date: Jul 2002
Location: SF, CA
Posts: 2
|
Hi!
IsAdmin is a DLL for NSIS that determines if the current (impersonated) user has administrator priviledges. Returns 1 to NSIS if it does, 0 or a GetLastErorr number to the caller if not. Reference: Microsoft Knowledge Base Article - Q118626 Hope this be helpful. Source code and DSW project in the archive. If you need a compiled DLL, please ask. Free of use, blah blah. That's the kind of DLL I'd like to see in the Contribs of NISI :) Tested with 1.95... oops need to update now :-) R/ |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Jun 2002
Location: Swindon, UK
Posts: 559
|
I'll admit that my IsAdministrator function is buried inside the services control dll I wrote a while back but I just thought I'd post to say that this functionality does exist (yours is still needed though) so don't fret about stuff not being covered, you can usually find a solution somewhere
![]() (FYI http://www.clantpa.co.uk/nsis/x18servicesV0.0.zip was what I was referring to and is mentioned in this forum if you search back) [edit]I've hosted your file on my archive and added an entry on the downloads page, I'll add a proper page for it soon (it's on the pending list)[/edit] |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jul 2002
Location: SF, CA
Posts: 2
|
Interesting. I had a look at the winamp.com and your archives and I completly missed that x18services DLL
-- I'm rather new to NSIS and there's a lot of material around. Anyway, I may need that functionnality later, so it's good to know where to find it. ![]() Thanks for the hosting. R/ |
|
|
|
|
|
#4 |
|
Major Dude
Join Date: Jun 2002
Location: Swindon, UK
Posts: 559
|
Yeah sorry about that - the comments on the services DLL mostly focused on the services side, the IsAdministrator function was in there because to manipulate services you generally need to be an administrator so it seemed relevant.
You won't find anything on my archive site if you search for administrator because I haven't had time to document my own DLLs that are hosted there, I've prioritised other people's stuff over my own so my services dll literally only gets a link on the download page at the moment. |
|
|
|
|
|
#5 |
|
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
Would it also be possible to check other privileges of the user?
* Administrator * Power User * Restricted User |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|