The remote installation freeze occurred at the AI_VerifyPrereq part in the hyper-v guest VM. The prerequisite was uninstalled just before the freeze started, and there was no error message in the log file.
to reproduce: Once the MSI has been copied to the Hyper-V guest virtual machine, run this command line in hyper-v hostMSI (s) (98:D8) [16:49:00:756]: Doing action: AI_VerifyPrereq
Action start 16:49:00: AI_VerifyPrereq.
MSI (s) (98:F0) [16:49:00:756]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI2716.tmp, Entrypoint: VerifyPrereq
Code: Select all
Invoke-Command -VMName virtual-machine1 -Credential $DCLocalCredential -ScriptBlock { Start-Process -FilePath 'msiexec.exe' -ArgumentList '/i "C:\path\to\package.msi" /qn' -Wait }
N.B: This error is only present in remote mode.