Old 29th August 2003, 22:39   #1
seva_t
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
seva_t is offline   Reply With Quote
Old 30th August 2003, 11:11   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Old 30th August 2003, 23:35   #3
Rovastar
Moderator
 
Join Date: Jun 2001
Location: London, England
Posts: 3,632
Send a message via AIM to Rovastar
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
Rovastar is offline   Reply With Quote
Old 31st August 2003, 21:03   #4
Joost Verburg
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.
Joost Verburg is offline   Reply With Quote
Old 2nd September 2003, 18:17   #5
seva_t
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!
seva_t is offline   Reply With Quote
Old 2nd September 2003, 18:19   #6
seva_t
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.
seva_t is offline   Reply With Quote
Old 2nd September 2003, 20:54   #7
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Old 2nd September 2003, 23:10   #8
Sunjammer
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".
Sunjammer is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump