Silent install of FOG agent fails silently
-
I’m trying to do a silent install of the FOG Agent following the instructions given by the FOG UI
msiexec /i fog-agent-<version>-x64.msi /qn SERVER=http://195.168.0.1/fog CAFINGERPRINT=<fingerprint> /l*v C:\fog-agent-install.logThis returns immediately and nothing appears to happen. I don’t have a fog-agent.exe installed anywhere and the old FOG Client is still installed. I’ve disabled literally everything in Windows Defender. I can install it manually, after clicking the ‘yes I want to trust this’ button, but I’d really like an automated install.
Here’s the log:
=== Verbose logging started: 04/12/2026 12:35:12 Build type: SHIP UNICODE 5.00.10011.00 Calling process: C:\WINDOWS\system32\msiexec.exe === MSI (c) (DC:54) [12:35:12:539]: Resetting cached policy values MSI (c) (DC:54) [12:35:12:539]: Machine policy value 'Debug' is 0 MSI (c) (DC:54) [12:35:12:539]: ******* RunEngine: ******* Product: .\fog-agent-0.1.40-x64.msi ******* Action: ******* CommandLine: ********** MSI (c) (DC:54) [12:35:12:539]: Client-side and UI is none or basic: Running entire install on the server. MSI (c) (DC:54) [12:35:12:539]: Grabbed execution mutex. MSI (c) (DC:54) [12:35:12:539]: Cloaking enabled. MSI (c) (DC:54) [12:35:12:539]: Attempting to enable all disabled privileges before calling Install on Server MSI (c) (DC:54) [12:35:12:539]: Incrementing counter to disable shutdown. Counter after increment: 0 MSI (s) (90:60) [12:35:12:539]: Running installation inside multi-package transaction c:\Users\[redacted]\Downloads\.\fog-agent-0.1.40-x64.msi MSI (s) (90:60) [12:35:12:539]: Grabbed execution mutex. MSI (s) (90:8C) [12:35:12:539]: Resetting cached policy values MSI (s) (90:8C) [12:35:12:539]: Machine policy value 'Debug' is 0 MSI (s) (90:8C) [12:35:12:539]: ******* RunEngine: ******* Product: c:\Users\QA\Downloads\.\fog-agent-0.1.40-x64.msi ******* Action: ******* CommandLine: ********** MSI (s) (90:8C) [12:35:12:539]: Machine policy value 'DisableUserInstalls' is 0 MSI (s) (90:8C) [12:35:12:555]: Note: 1: 2203 2: C:\WINDOWS\Installer\inprogressinstallinfo.ipi 3: -2147287038 MSI (s) (90:8C) [12:35:12:555]: SRSetRestorePoint skipped for this transaction. MSI (s) (90:8C) [12:35:12:555]: Note: 1: 1402 2: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer 3: 2 MSI (s) (90:8C) [12:35:12:555]: Note: 1: 1324 2: . 3: 1 MSI (s) (90:8C) [12:35:12:555]: MainEngineThread is returning 2 MSI (s) (90:60) [12:35:12:555]: No System Restore sequence number for this installation. MSI (s) (90:60) [12:35:12:555]: User policy value 'DisableRollback' is 0 MSI (s) (90:60) [12:35:12:555]: Machine policy value 'DisableRollback' is 0 MSI (s) (90:60) [12:35:12:555]: Incrementing counter to disable shutdown. Counter after increment: 0 MSI (s) (90:60) [12:35:12:555]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 MSI (s) (90:60) [12:35:12:555]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 MSI (s) (90:60) [12:35:12:555]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1 MSI (c) (DC:54) [12:35:12:555]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1 MSI (c) (DC:54) [12:35:12:555]: MainEngineThread is returning 2 === Verbose logging stopped: 04/12/2026 12:35:12 ===(I’m trying to install it mainly because it’s 64-Bit and having snapins run using a 64-Bit powershell will be enormously useful)
-
@MarkG The
.\in front of the file name is the cause. Your log shows the PowerShell path.\fog-agent-0.1.40-x64.msi, and the lineNote: 1: 1324 2: . 3: 1. msiexec rejects the.path part and stops before it opens the package. It exits with code 1619, and with/qnit shows no message. PowerShell tab completion adds that.\. I reproduced it on 0.1.40 on Windows 11.Give msiexec the bare file name or the full path, from an administrator prompt:
msiexec /i fog-agent-0.1.40-x64.msi /qn SERVER=http://195.168.0.1/fog CAFINGERPRINT=<fingerprint> /l*v C:\fog-agent-install.logThe install removes the old FOG Client for you.
From PowerShell, msiexec always returns at once, before the install ends. To wait for it and see the result, use this form.
0means success:(Start-Process msiexec.exe -Wait -PassThru -ArgumentList '/i', "$PWD\fog-agent-0.1.40-x64.msi", '/qn', 'SERVER=http://195.168.0.1/fog', 'CAFINGERPRINT=<fingerprint>', '/l*v', 'C:\fog-agent-install.log').ExitCodeI am adding a warning about the
.\prefix next to the install command in the web UI, and a troubleshooting entry to the FOG Agent docs. -
@Tom-Elliott Thank you. That did the trick.
-
T Tom Elliott has marked this topic as solved