Jump to content
Sign in to follow this  
autoking

#RequireAdmin problem

Recommended Posts

autoking

Hi. Is it not possible to use #requireadmin this way?:

If IsAdmin() Then
#RequireAdmin
;some stuff
Else
EndIf

If Not IsAdmin() Then
;some stuff
Else
EndIf

If i'm logged in as a standard user, it will still prompt for admin rights. I guess I'm doing it right, but that #RequireAdmin doesen't support to be used with a if - then.

Some way to do it :)?

Share this post


Link to post
Share on other sites
JLogan3o13

No, #RequireAdmin is a computer directive, and will be processed regardless. If you take the time to do a forum search, you can read through the dozens of times this has been asked and answered.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
JLogan3o13

Yes, there is. Forum....search....


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
autoking

well i found a way to accomplish it using fileinstall, a bit a messy way, but it works.

Edited by autoking

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×