Sign in to follow this  
Followers 0
autoking

#RequireAdmin problem

6 posts in this topic

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



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

ok thank you, there's no work around?

Share this post


Link to post
Share on other sites

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


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

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

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  
Followers 0