Hi
My server’s config
Ubuntu 22.04.5 LTS
You're running the latest stable version: 1.5.10
I’m trying to deploy snapin pack. These are third party zip file. They all have the same packaging format
unzip 7-Zip_25.01-1_x64.zip
Archive: 7-Zip_25.01-1_x64.zip
inflating: pre-install.ps1
inflating: post-install.ps1
inflating: install.bat
inflating: winsoft-config.ini
inflating: 7z2501-x64.msi
inflating: 7z2501-x64.exe
The deployment entry point is always the install.bat
script.
What I’m trying to achieve
I want to use either PowerShell (preferred) or batch, in order to launch the install.bat
script from the "[FOG_SNAPIN_PATH]\7zip\"
directory.
This is very important because if the path is incorrect, the pre-install.ps1
and post-install.ps1
scripts will not run correctly.
My snapin config for 7-zip as an example
Snapin Name: 7zip
Snapin Description: Installation de 7zip
Snapin Type: Snapin Pack Template
Snapin Pack File: cmd.exe
Snapin Pack Arguments: %~dp0 /c "[FOG_SNAPIN_PATH]\7zip\install.bat"
Snapin File (exists): 7-Zip_25.01-1_x64.zip
Snapin Enabled : x
Snapin Arguments Hidden:
Snapin Timeout (seconds): 0
Replicate?: x
Reboot after install:
Shutdown after install:
Snapin Command read-only: cmd.exe %~dp0 /c "[FOG_SNAPIN_PATH]\7zip\install.bat"
What I got
In fact, as fog snapin has no debug mode, I have almost no clue to understand the failure. The Fog documentation is quite poor on this subject and is lacking examples.
The logs from fog client on the computer
23/09/2025 11:45:56 Client-Info Client Version: 0.13.0
23/09/2025 11:45:56 Client-Info Client OS: Windows
23/09/2025 11:45:56 Client-Info Server Version: 1.5.10
23/09/2025 11:45:56 Middleware::Response Success
23/09/2025 11:45:56 SnapinClient Running snapin 7zip
23/09/2025 11:45:56 Middleware::Communication Download: http://fog.example.com/fog/service/snapins.file.php?mac=8C:EC:4B:87:8A:4E&taskid=19
23/09/2025 11:45:57 SnapinClient C:\Program Files (x86)\FOG\tmp\7-Zip_25.01-1_x64.zip
23/09/2025 11:45:57 SnapinClient Processing SnapinPack 7-Zip_25.01-1_x64.zip
23/09/2025 11:45:57 SnapinClient Extracting SnapinPack
23/09/2025 11:45:57 Bus Emmiting message on channel: Notification
23/09/2025 11:45:57 SnapinClient Starting snapin
23/09/2025 11:45:57 SnapinClient Snapin finished
23/09/2025 11:45:57 SnapinClient Return Code: 1
23/09/2025 11:45:57 Bus Emmiting message on channel: Notification
23/09/2025 11:45:57 Middleware::Communication URL: http://fog.example.com/fog/service/snapins.checkin.php?taskid=19&exitcode=1&mac=8C:EC:4B:87:8A:4E&newService&json
I’ve tried a lot of Snapin Pack Arguments, either using PowerShell or cmd.exe, none of those installed the package.
Doe anybody have clear examples of Snapin Pack Arguments ?
Thanks