Jump to content
Sign in to follow this  
Ashalshaikh

I Want To Run File By Administrator

Recommended Posts

Ashalshaikh

Hi !!

First : I Am Sorry My English Is Bad :)

I Want To Run File By Administrator If The System Is Vista Or Higher !! :)

Like This ::

Posted Image

I tried This

If @OSVersion <> "WIN_XP" Then
        RunAsWait("Administrator",@ComputerName , "",@TempDir & "\HijackTis.exe",@WorkingDir)
    Else
        RunWait(@TempDir & "\HijackTis.exe",@WorkingDir)
    EndIf

I wrote the password is empty

I do not need to write It when doing the work of the previous image

But It Didn't Work

It may not be the name of the Administrator Is Administrator Too

I Need Your Help

Edited by Ashalshaikh

Share this post


Link to post
Share on other sites
BrettF
Ashalshaikh

#RequireAdmin

Thank You ,,

But I Want To Run Other File ...... Not My Script

is it Work ?

Edited by Ashalshaikh

Share this post


Link to post
Share on other sites
trancexx

The solution is to use ShellExecute() with runas verb.

How did you manage to translate Vista to Vesta?


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
Ashalshaikh

The solution is to use ShellExecute() with runas verb.

How did you manage to translate Vista to Vesta?

I Will Try ..

Sorry did not watch out for this !!

Share this post


Link to post
Share on other sites
Ashalshaikh

It's Work :)

Thanks trancexx

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  

×