We are having a problem with using “RunAsCurrentUser” on Win8. Have a simple action that copies payload out of __Download to local folder and execute it via RACU. Action completes fine but nothing happens, the exe in question never executes. I’ve tried various ways to launch it via RACU but nothing seems to work in a sense where currently logged in user is presented with installation progress.
Here’s my script, I omitted the copy to local dir bit:
Bringing this up from the dead. I still don’t have a solution to this and to answer jgstew’s question, in certain cases the app needs to be visible or it may be a reg file that is writing to HKCU and therefore needs the current user context. I have the following simple reg import that needs to happen in HCKU and no matter what I try, it doesn’t work:
This is the code we use to modify the current user registry:
regset
"[HKEY_USERS{ (if version of operating system >= “6.0” as version then (name of key whose (value “USERNAME” of key “Volatile Environment” of it as string as lowercase = name of logged on user as string as lowercase) of key “HKEY_USERS” of registry) else (name of key whose (value “Logon User Name” of key “Software\Microsoft\Windows\CurrentVersion\Explorer” of it as string as lowercase = name of logged on user as string as lowercase) of key “HKEY_USERS” of registry)) }\Software\Microsoft\Office\Outlook\Addins\LexisNexis.CounselLink]" “LoadBehavior”=dword:00000003
Along with this relevance:
(if version of operating system >= “6.0” as version then (name of key whose (value “USERNAME” of key “Volatile Environment” of it as string as lowercase = name of logged on user as string as lowercase) of key “HKEY_USERS” of registry) else (name of key whose (value “Logon User Name” of key “Software\Microsoft\Windows\CurrentVersion\Explorer” of it as string as lowercase = name of logged on user as string as lowercase) of key “HKEY_USERS” of registry))
Ah, thank you for bringing this back up, I totally forgot about this. I actually ended up engaging support for this, and they suggested using a different syntax entirely, as shown below:
Apparently, RACU utility is no longer needed and you can control client behavior and context via native client references as “runas=currentuser”, something I was unaware of.
This worked like a champ for me, hopefully this will help someone on the forums as well.
I have had better success using the reg add or reg delete commands. You also have to make sure you run from a directory that the logged on user has permission too i.e. c:\temp, example:
As stated earlier in the thread, the RACU software is no longer necessary. Action Script now supports running something as a current user natively. For your command, try the following:
Jmaple, does this method working in the fixlet debugger. It didn’t for me. Does it work in Bigfix, but not the fixlet debugger. I know I have run across some things like that.