|
|
|
|
#1 |
|
Junior Member
Join Date: Aug 2003
Location: San Francisco, CA
Posts: 5
|
how to become an administrator?
I want to present a dialog box "Run this program as administrator"
typical in recent installers I have seen if the user doesn't have administrative rights. Is there a way to do so with NSIS? Thanks, -seva |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Have you got an example where this can be seen?
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Moderator
|
I thought this was going to be I want to be a moderator threads but going whole hog for Administartor status.
....but it wasn't.![]() Sorry for derailing posts in your forum kichik. Here have a cake and soem cookies. You are always hungry I seem to remember.
"Rules are for the guidance of wisemen and the obedience of fools" Visuals - Morphyre www.Morphyre.com |
|
|
|
|
|
#4 |
|
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
That's a Windows XP feature, I think it's based on the filename (setup, installer), you should check MSDN.
|
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Aug 2003
Location: San Francisco, CA
Posts: 5
|
Thanks for info.
Related question: assuming that the user has administrative rights, is it possible to start a Windows service in NSIS? Thanks! |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Aug 2003
Location: San Francisco, CA
Posts: 5
|
P.S.
an example where this can be seen: create a regular user (PowerUsers group) and log in as that user. Then run MS Office installer. |
|
|
|
|
|
#7 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
To start Windows services use Sunjammer's services plug-in from the archive's download page. See http://nsis.sf.net/archive
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#8 |
|
Major Dude
Join Date: Jun 2002
Location: Swindon, UK
Posts: 559
|
Or on 2K/XP (& NT?) just use exec the "net" command, e.g. "net start servicename".
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|