Installing to user context for Windows 8.1/10

I’m deploying a simple MSI that needs to be installed to the user context. I’m using the RunAsCurrentUser utility and with Windows 7 it works fine, but not for Windows 8.1 or 10. The installation doesn’t fail and BF says that it exited with 0 (successful) but the application is not present on the computer.

Here’s the action script that I’m using:

prefetch RunAsCurrentUser.exe sha1:ee47505ebfb2790b9da8a20ed70e67158e9753d0 size:342528 http://software.bigfix.com/download/bes/util/RunAsCurrentUser-2.0.3.1.exe sha256:1a9b518c775e2a85a7c47801e9b8221df338a65ad8df326485e4cd2aea22fe52
utility __Download\RunAsCurrentUser.exe 

prefetch f80a0b32c79308a004e7d3d933f8951316f51184 sha1:f80a0b32c79308a004e7d3d933f8951316f51184 size:59453112 http://bigfix.example.com:52311/Uploads/f80a0b32c79308a004e7d3d933f8951316f51184/CiscoSpark_x86.msi.tmp sha256:1882f81e0f4959b0ec43f8350849c8ce58713aa9a93110d1e727ef5fbd1aa2f8
extract f80a0b32c79308a004e7d3d933f8951316f51184
wait __Download\RunAsCurrentUser.exe "{pathname of system folder & "\msiexec.exe"}" /i "{(pathname of client folder of current site) & "\__Download\CiscoSpark_x86.msi"}" /quiet /qn

I’ve also tired taking out the RunAsCurrentUser prefetch and instead used “runas=currentuser” to no avail.

Where am I going wrong?

Try to use override instead.

https://developer.bigfix.com/action-script/reference/execution/override.html

Thanks, that worked.

Final action script:

prefetch stuff here

override wait 
runas=currentuser
wait "{pathname of system folder & "\msiexec.exe"}" /i "{(pathname of client folder of current site) & "\__Download\CiscoSpark_x86_2.0.7603.0.msi"}" /qn /norestart