Mattermost-desktop update folder

Hello.
Thanks for adding online updates to mattermost-desktop.

Problem: updates are installed to default folder on the system partition:
(c:\Users\admin\AppData\Roaming\Mattermost).

I would like the new version to be installed over the old one to directory where it was originally located (for example, d:\Soft\Mattermost). Can this be configured somehow?

Ver 5.1.0-rc4, Windows 11.
thanx.

Hi @Verevkin, would you be open to reporting this issue either at Issues · mattermost/desktop · GitHub or at Mattermost?

I am not registered on github.
Isn’t this forum enough?

thanx.

Hi @Verevkin,

Thanks for your question. Currently we do not support changing the install directory for the Windows installer when automatically updating, so it will by default always install to the same directory (which is C:\Users\<username>\AppData\Local\Programs\mattermost-desktop)

Sorry for the inconvenience. This is something we might be able to support in a future release.

-Devin

But WHY?! Process starting path is always known. :roll_eyes:

I was forced to write a stupid script:
001193

:: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
:: Elimination of damage after updating mattermost-desktop
:: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

cd /d %~dp0
set LOCAL_NAME=mattermost-desktop
set SOFT_PATH=d:\Soft\Mattermost

:: moving the files and deleting the folder
robocopy %LOCAL_NAME% %SOFT_PATH% /copyall /mir /move 
if errorlevel 2 goto error

:: creating a symlink
mklink /d %LOCAL_NAME% %SOFT_PATH%
if errorlevel 1 goto error

:success
exit

:error
@echo ErrorLevel: %errorlevel%
pause
exit

Current build: 5.1.0-rc.7