Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   How do I stop the install if the user is not an admin? (http://forums.winamp.com/showthread.php?t=270612)

SkipFire 4th May 2007 14:15

How do I stop the install if the user is not an admin?
 
I searched the web and have found plenty of information on how to detect if the user is an admin or not - which I have working. The problem is how do I use that information?

What I would ideally like to do is test before my license agreement page if the user is an admin, and if not pop up a message and abort the install.

I tried adding a section before my pages, but it doesn't get executed until the install starts.

Whatever help anyone provides will be appreciated.

Red Wine 4th May 2007 14:58

Function .onInit

SkipFire 4th May 2007 15:06

Thanks, that fixed it!


All times are GMT. The time now is 04:20.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.