You can specify to use "Current User's rather that local system, but the current logged in user would have to have the appropriate rights to perform the install.
Alternatively, I just read a few articles that say this works. I haven't tried it though.
runas /user:REQUIREDUSERNAME /savecred c:\PATH\TO\APP.exe
In your Autoit script.
wow, that was simple :-)
with the #requireadmin, everything works fine an without prompts
thanks Zman :-)
I was a bit quick to reply. The issue is not solved. The command in the runas does not execute with elevetad permissions.
The AutoIt script I deploy now looks like this:
(it's just an example i'm using to test this stuff. I open notepad with elevated permissions, and it requires elevated permissions to close it)
#requireadmin runas("user", "domain", "password", @comspec & " /c " & "taskkill /im notepad.exe", @scriptdir, @sw_hide)
When i try this, the user won't get a pop-up but notepad won't close. If i try the following, notepad will close but the user gets prompted for permission.
#requireadmin runas("user", "domain", "password", "script2.exe", @scriptdir, @sw_hide)
#requireadmin run(@comspec & " /c " & "taskkill /im notepad.exe",@scriptdir, @sw_hide)
Anyone have another suggestion?