• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Silent install of FOG agent fails silently

    Scheduled Pinned Locked Moved Solved Windows Problems
    3 Posts 2 Posters 4 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MarkG
      last edited by

      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.log
      

      This 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)

      Tom ElliottT 1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott @MarkG
        last edited by

        @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 line Note: 1: 1324 2: . 3: 1. msiexec rejects the . path part and stops before it opens the package. It exits with code 1619, and with /qn it 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.log
        

        The 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. 0 means 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').ExitCode
        

        I 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.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        M 1 Reply Last reply Reply Quote 0
        • M
          MarkG @Tom Elliott
          last edited by

          @Tom-Elliott Thank you. That did the trick.

          1 Reply Last reply Reply Quote 0
          • Tom ElliottT Tom Elliott has marked this topic as solved
          • 1 / 1
          • First post
            Last post

          64

          Online

          12.8k

          Users

          17.7k

          Topics

          157.6k

          Posts
          Copyright © 2012-2026 FOG Project