Unattended install of .msi (msiexec.exe /qn /i ) hangs if user not logged on - GMetrixSMS 4.1.2.x
GMetrixSMS 4.1.2.x unattended installI’m running into an install issue that I have not encountered with any other .MSI setup; Installation hangs when trying to deploy the software unattended.
For example, if I log in and run ‘msiexec.exe /qn /I <file>’, the installation runs fine.
However, If I deploy from Altiris, and I am not logged in, the installation just hangs. If I give msiexec a logfile parameter, no log file is written. If I deploy and I am logged in, installation succeeds.
To successfully push this software, I must be logged into the computer with the same account that I am running the Altiris job as. I’m using the same technique that I have used with hundreds of other application installs. Only this one is having this issue.
Any Ideas on how what might be causing this?
After the /qn try adding the ALLUSERS=1 flag to your command
It may also require a transform file (.mst) created from using either ORCA or Instedit
start /wait msiexec /qn /i filename.msi TRANSFORMS=filename.mst
I suspect the problem is the Custom Action named 'LUACA_0001'. Using InstEdit, create a transform (MST) with this CA conditioned-out (I typically use '0=1' for that) and alter your command appropriately so that the transform gets applied:
msiexec.exe /i "%~DP0[name_of_MSI]" TRANSFORMS="%~DP0[name_of_MST]" /qn /l*v %SystemRoot%\TEMP\[name_of_log file]
Bypass Altiris for now by using PSExec. See how that works.
Run the command directly on a workstation (you have VMs you can test with, right?). Use the logging option and, as soon as you see the pop-up message, open the log in a decent text editor (i.e. anything that's not Notepad...) You'll see what action is currently executing.