mattermost/desktop

[Bug]: Mattermost 5.9.0 MSI Silent Install not working anymore

WebBuddha opened this issue · 11 comments

Checks before filing an issue

Mattermost Desktop Version

5.9.0

Operating System

Windows 11 x64

Mattermost Server Version

9.5.1

Steps to reproduce

open an administative cmd an run the installation by "mattermost-desktop-5.9.0-x64.msi /qn"

Expected behavior

I've expect that the msiexec.exe starts in the background and run the installer itself.

Observed behavior

Try to deploy mattermost-desktop-5.9.0-x64.msi with the parameter /qn but nothing happens, no msiexec.exe process starts at all to begin an silent installation of Mattermost desktop.

Log Output

No log file available because the installation failed.

Additional Information

No response

@WebBuddha The correct command to run should be msiexec /i mattermost-desktop-v5.9.0-x64.msi /qn, can you try running that?

@WebBuddha The correct command to run should be msiexec /i mattermost-desktop-v5.9.0-x64.msi /qn, can you try running that?

The windows installer (msiexec) is still running, but mattermost wont get installed also.
We use the PSADT for your SCCM deployments at all and an the cmdlet is using the msiexec /i command in the background.
The problem occurs with version 5.9.0.

There should be something available in the logs for the MSI installer. I'm not sure how PSADT works internally, but perhaps it's passing different arguments that aren't supported by our MSI? As designed the MSI is supported to be used as per our documentation here: https://docs.mattermost.com/install/desktop-msi-installer-and-group-policy-install.html

If you can get some logs from msiexec (the switches to do so are here) I might be able to help further.

I can can confirm the problem as stated by @WebBuddha
There's nothing usefull in the logifle either.
I'va also tried to install by command line in an elevated CMD with /qb he seup starts, shows some progress bars and then simply quits, no errors, no messages are shown. When I start the MSI with a doubel cklick ther's no GUI comming up, just the same progress bars and then nothing.

I have the same problem. However the installer still works.

I managed to install Mattermost by running msiexec as the current user (not as an admin).
As a result, I've switched from a computer GPO to a user GPO.

Note that the program location changes : 5.8.1 in C:\Program Files\Mattermost (admin rights required), 5.9.0 in C:\Users\username\AppData\Roaming\Mattermost (without admin rights). I end up with two installed versions.

image

@cyberm8 To install for administrators, you'll need the ALLUSERS=1 parameter, see: https://docs.mattermost.com/install/desktop-msi-installer-and-group-policy-install.html#install-for-all-users
If you're trying to install under the admin account without this line, that could be why it's failing but the logs should reveal that.

The duplicate installer is expected, as we switched installer IDs between v5.8 and v5.9 so the newer one cannot overwrite the old one. For this upgrade, you'll have to install manually.

I've been able to run the installer on multiple machines:

  • Windows 10 VM x64
  • Windows 11 VM ARM64
  • Windows 11 bare-metal (also had never installed the MSI before)

All of those have performed the silent install correctly, so given that the installer works as expected and supported, and without logs I'm afraid there's not much else I can do, so I'm going to close this ticket.

Feel free to continue to comment if anyone has any ideas about how to resolve this.

silent_install.bat

@echo off
cls

echo Uninstall mattermost 5.8.1
call msiexec /x {E300F0C8-EA36-4C19-893C-AD1B79914B10} /qn
echo Returncode: %ERRORLEVEL%

echo Uninstall mattermost 5.9.0
call msiexec /x mattermost-desktop-5.9.0-win-x64.msi /qn
echo Returncode: %ERRORLEVEL%

echo Install mattermost 5.9.0
call msiexec /i mattermost-desktop-5.9.0-win-x64.msi ALLUSERS=1 /qn
echo Returncode: %ERRORLEVEL%

echo Create link for mattermost
echo Set objShell = CreateObject("WScript.Shell") > %TEMP%\CreateShortcut.vbs
echo Set objLink = objShell.CreateShortcut("C:\Users\Public\Desktop\Mattermost.lnk") >> %TEMP%\CreateShortcut.vbs
echo objLink.Description = "Mattermost" >> %TEMP%\CreateShortcut.vbs
echo objLink.TargetPath = "%ProgramFiles%\mattermost-desktop\mattermost.exe" >> %TEMP%\CreateShortcut.vbs
echo objLink.Save >> %TEMP%\CreateShortcut.vbs
cscript %TEMP%\CreateShortcut.vbs
del %TEMP%\CreateShortcut.vbs

echo Delete old pin in TaskBar
for /f "delims=" %%a in ('dir/b/ad-h "%SystemDrive%\Users\*"^|findstr/ixvc:"Public"') do (
	IF EXIST "%SystemDrive%\Users\%%a\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Mattermost.lnk" (
		del "%SystemDrive%\Users\%%a\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Mattermost.lnk"
	)
)

echo End

EXIT /B 0

I tried with ALLUSERS=1 and ALLUSERS=2, neither of it works,
Attached you'll find a log file from an deplyoment with ALLUSERS=1

The Deplyoment is run with the localsystem user.
MMinstall.log

@WB-RH saw this in your logs:

MSI (s) (34:58) [09:03:21:985]: Determined that existing product (either this product or the product being upgraded with a patch) is installed per-user.

MSI (s) (34:58) [09:03:21:985]: PROPERTY CHANGE: Adding MSIINTERNALINSTALLEDPERUSER property. Its value is '1'.

MSI (s) (34:58) [09:03:21:985]: Determined that existing product (either this product or the product being upgraded with a patch) is a dual mode package installed in per-user mode.

MSI (s) (34:58) [09:03:21:985]: PROPERTY CHANGE: Modifying ALLUSERS property. Its current value is '2'. Its new value: '1'.

MSI (s) (34:58) [09:03:21:985]: PROPERTY CHANGE: Deleting ALLUSERS property. Its current value is '1'.

Is there an existing install either for a different user or the current one?

@WB-RH saw this in your logs:

MSI (s) (34:58) [09:03:21:985]: Determined that existing product (either this product or the product being upgraded with a patch) is installed per-user.

MSI (s) (34:58) [09:03:21:985]: PROPERTY CHANGE: Adding MSIINTERNALINSTALLEDPERUSER property. Its value is '1'.

MSI (s) (34:58) [09:03:21:985]: Determined that existing product (either this product or the product being upgraded with a patch) is a dual mode package installed in per-user mode.

MSI (s) (34:58) [09:03:21:985]: PROPERTY CHANGE: Modifying ALLUSERS property. Its current value is '2'. Its new value: '1'.

MSI (s) (34:58) [09:03:21:985]: PROPERTY CHANGE: Deleting ALLUSERS property. Its current value is '1'.

Is there an existing install either for a different user or the current one?

So, you really mean that I've to search in all userprofiles for an user instance of mattermost and remove it to get a fresh installation as system?
That could be done by powershell, yes but I'm deploying mattermost for nearly 3000 clients and this is an useless performance issue for the installation itself.

Why is the silent parameter "/qn" not working anymore?

Regards