Hello,
I created a snapin pack to Install Microsoft 365 that fog registers as successful run while it is not working.
I already searched the forum and found similar attempts to install Microsoft 365, but none of the Topics are marked “solved”.
My snapin pack has the structure:
./install.cmd
./Setup/setup.exe
./Setup/MS365-config-64-bit.xml
Fog runs install.cmd which looks like:
net use x: \\truenas\MS365 /USER:Guest /PERSISTENT:NO
%~dp0Setup\setup.exe /configure %~dp0Setup\MS365-config-64-bit.xml
net use x: /DELETE
The relevant parts of the setup configuration .XML file are:
<Configuration ID="5c579236-99be-41f4-ba55-91c6e3c0e212">
<Info Description="Test" />
<Add OfficeClientEdition="64" Channel="Current" SourcePath="x:" AllowCdnFallback="TRUE">
<Product ID="O365ProPlusRetail">
<Language ID="de-de" />
<Language ID="en-us" />
</Product>
</Add>
<Updates Enabled="TRUE" UpdatePath="x:" />
<RemoveMSI />
<Display Level="None" AcceptEULA="TRUE" />
</Configuration>
Running install.cmd as local Administrator from a command line with elevated privileges in a machine belonging to an AD is working fine.
Running it via the analogue command to cmd.exe /c "[FOG_SNAPIN_PATH]\install.cmd, which is generated on the snapin pack page, with the full path via “RUN” on windows I get the same result (a popup window from setup.exe) as from a non-privileged command line. Therefore I think it should work when fog runs it as privileged SYSTEM user.
Running it via snapin on the same machine creates a “successful” run with exit code 0 and a runtime of 2 seconds.
The fog client log contains:
07.03.2024 08:54:05 Client-Info Client Version: 0.13.0
07.03.2024 08:54:05 Client-Info Client OS: Windows
07.03.2024 08:54:05 Client-Info Server Version: 1.5.10
07.03.2024 08:54:05 Middleware::Response Success
07.03.2024 08:54:05 SnapinClient Running snapin Install Microsoft 365
07.03.2024 08:54:05 Middleware::Communication Download: https://192.168.0.43/fog/service/snapins.file.php?mac=44:37:E6:6F:32:8F&taskid=1376
07.03.2024 08:54:06 SnapinClient C:\Program Files (x86)\FOG\tmp\MS365-x64-2.zip
07.03.2024 08:54:06 SnapinClient Processing SnapinPack MS365-x64-2.zip
07.03.2024 08:54:06 SnapinClient Extracting SnapinPack
07.03.2024 08:54:06 Bus Emmiting message on channel: Notification
07.03.2024 08:54:06 SnapinClient Starting snapin
07.03.2024 08:54:06 SnapinClient Snapin finished
07.03.2024 08:54:06 SnapinClient Return Code: 0
07.03.2024 08:54:06 Bus Emmiting message on channel: Notification
07.03.2024 08:54:06 Middleware::Communication URL: https://192.168.0.43/fog/service/snapins.checkin.php?taskid=1376&exitcode=0&mac=44:37:E6:6F:32:8F&newService&json
Any hint on how to enable a higher log level on the client or alternative attempts to either debug the problem or another way to install / update Microsoft 365 would be highly appreciated.
Thanks,
Paul