Archive: How do I stop the install if the user is not an admin?


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.


Function .onInit


Thanks, that fixed it!