RunAsCurrentUser-2.0.exe

(imported topic written by RHSteeleOH91)

Could someone please provide 1 full example of how to use RunAsCurrentUser-2.0.exe with a standard MSI installation? Relevance & Action Script.

Here is what I have.

Relevance code:

(name of it = “WinXP” OR (name of it = “Win2003” AND NOT x64 of it) OR (name of it = “WinVista” AND product type of it = nt workstation product type AND NOT x64 of it) OR (name of it = “Win7” AND NOT x64 of it)) of operating system AND TRUE

Action Script:

download http://ews-pgh1-bfed1.mwv.mwvmp.meadwestvaco.com:52311/Uploads/6985133413cf8d35d301494fed4eaa4ae0d67d9e/EuroBlueZone32C3msi.tmp

continue if {(size of it = 4721688 AND sha1 of it = “6985133413cf8d35d301494fed4eaa4ae0d67d9e”) of file “EuroBlueZone32C3msi.tmp” of folder “__Download”}

extract EuroBlueZone32C3msi.tmp

wait “{pathname of system folder & “\msiexec.exe”}” /i “{(pathname of client folder of current site) & “__Download\EuroBlueZone32C3.msi”}” /qn /norestart

What changes would I need to add?

(imported comment written by BenKus)

Try this:

Action Script:

download http://ews-pgh1-bfed1.mwv.mwvmp.meadwestvaco.com:52311/Uploads/6985133413cf8d35d301494fed4eaa4ae0d67d9e/EuroBlueZone32C3msi.tmp
continue if {(size of it = 4721688 AND sha1 of it = “6985133413cf8d35d301494fed4eaa4ae0d67d9e”) of file “EuroBlueZone32C3msi.tmp” of folder “__Download”}

prefetch RunAsCurrentUser.exe sha1:5512ef51a98dff1aa910a8189a0361c161fa703f size:212992 http://software.bigfix.com/download/bes/util/RunAsCurrentUser-2.0.2.exe

extract EuroBlueZone32C3msi.tmp
wait __Download/RunAsCurrentUser.exe --w “{pathname of system folder & “\msiexec.exe”}” /i “{(pathname of client folder of current site) & “__Download\EuroBlueZone32C3.msi”}” /qn /norestart

(make sure you use the full links… the forum truncates the links…)

Ben

(imported comment written by RHSteeleOH91)

That help me narrow it down… thank you very much.

I had to copy the runascurrentuser.exe up to the BF server with the package, otherwise it took for forever…