MSI Installation Failed

(imported topic written by thuy.cortes91)

I am trying to install MSI package with \a because when I test by clicking on msi on computer without the switch it does not work. When I manually install by going to cmd prompt on my computer and typing ‘msiexec /a ultravnc.msi’ it works, so I am trying to do it through BigFix. The installation keeps failing. Here is what my action script looks like:

download http://mirage.creditunion.prv:52311/Uploads/3cb64169042b8d2481a21efaf9eeeb40b912b1cd/UltraVNCmsi.tmp

continue if {(size of it = 1999196 AND sha1 of it = “3cb64169042b8d2481a21efaf9eeeb40b912b1cd”) of file “UltraVNCmsi.tmp” of folder “__Download”}

extract UltraVNCmsi.tmp

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

How can I execute MSI package through dos and with /a switch?

(imported comment written by cstoneba)

try using a /i instead of /a. Does it work then?

(imported comment written by thuy.cortes91)

It failed with /i, that’s why I was trying to use /a. It works when I manually go to command prompt to install with a /a

c:\msiexec /a ultravnc.msi , but not in bigfix.

(imported comment written by cstoneba)

Could it be that BigFix is trying to install it as the System User and ultravnc needs to gets its hooks into an actual user account? try using the RunAsCurrentUser.exe command.

(imported comment written by MattBoyd)

You might want to look at the client log to see why it is failing. At the very least, you should be able see what code the MSI is exiting with. Client logs are located in this folder: C:\Program Files\BigFix Enterprise\BES Client__BESData__Global\Logs

By the way, is this a custom MSI that you made? I didn’t think that UltraVNC was packaged as an MSI… have you considered using the executable setup instead?

(imported comment written by thuy.cortes91)

This is what the log is showing:

At 13:54:05 -0700 - opsite28 (http://mirage.creditunion.prv:52311/cgi-bin/bfgather.exe/opsite28)

Command succeeded (Exit Code=0) wait “C:\WINDOWS\system32\msiexec.exe” /a “C:\Program Files\BigFix Enterprise\BES Client__BESData\opsite28__Download\UltraVNC.msi” /qn /norestart (fixlet 10637)

At 13:54:06 -0700 -

ActionLogMessage: (action 10637 ) ending action

At 13:54:06 -0700 - opsite28 (http://mirage.creditunion.prv:52311/cgi-bin/bfgather.exe/opsite28)

Not Relevant - Deploy: UltraVNC_TEST (fixlet:10637)

At 13:54:58 -0700 -

Report posted successfully.

At 13:55:34 -0700 - opsite28 (http://mirage.creditunion.prv:52311/cgi-bin/bfgather.exe/opsite28)

End monitoring action - Status of Action 10637 (fixlet:2147494285)

It runs but it doesn’t install, I know that when i install manually (Not in BigFix)without the /a switch the fail message is "Service “UltraVNC (winvnc) failed to start. Verify that you have sufficient priviledge to start system services” then it uninstalls. However, if i manually install by cmd promp c:\msiexec /a ultravnc.msi, it works.

(imported comment written by MattBoyd)

Well that wasn’t much help (Exit Code=0). Here’s a few thoughts:

Did you try cstoneba’s suggestion?

Do you see a different exit code in the logs when you try using the “/i” switch?

Does adding ALLUSERS=2 in the command make any difference (see below)?

download http://mirage.creditunion.prv:52311/Upl … VNCmsi.tmp
continue if {(size of it = 1999196 AND sha1 of it = “3cb64169042b8d2481a21efaf9eeeb40b912b1cd”) of file “UltraVNCmsi.tmp” of folder “__Download”}

extract UltraVNCmsi.tmp
wait “{pathname of system folder & “\msiexec.exe”}” ALLUSERS=2 /i “{(pathname of client folder of current site) & “__Download\UltraVNC.msi”}” /qn

By the way, if you really want to try executing it with DOS, you should be able to do so by replacing “wait” in your action script with “dos”