Jump to content
Sign in to follow this  
pvr02

Using FileInstall with admin rights

Recommended Posts

I have a backup utility that I am running that needs to use FileInstall to copy a file to the C:\WINDOWS\system32\ folder. However, the users only have read access to this directory. I know by running the autoit exe as an admin it works, and then works for the users after that. However, Is it possible to run the fileinstall option with admin priveleges? Or does anyone know a workaround that doesn't involve having a "loader" executable.

;Extracts the robocopy.exe file and backup.bat file to the system32 directory overwriting what exists.
FileInstall ( "B:\Utilities\Backup_Script\robocopy.exe", "C:\WINDOWS\system32\", 1)
FileInstall ( "B:\Utilities\Backup_Script\Backup.bat", "C:\WINDOWS\system32\" , 1)

;Run backup script
Run("Backup.bat")

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  

×
×
  • Create New...