Bug 123413 - Quickstarter Startup shortcut does not get updated on deployed MAJOR VERSION upgrade
Summary: Quickstarter Startup shortcut does not get updated on deployed MAJOR VERSION ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Installation (show other bugs)
Version:
(earliest affected)
6.2.0.3 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Quickstarter
  Show dependency treegraph
 
Reported: 2019-02-12 17:52 UTC by Kris Lou
Modified: 2023-04-18 09:08 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kris Lou 2019-02-12 17:52:39 UTC
Windows/MSI builds only (x64, but I'm sure x86 as well).

Upon a MAJOR version upgrade (i.e. 6.1.4 to 6.2.0), the QuickStarter shortcut in the user's Start Menu/Startup folder (%APPDATA%\Roaming\Microsoft\Windows\Start Menu\ Programs\Startup) does NOT get renamed or updated from "LibreOffice 6.1" to "LibreOffice 6.2".

The link still correctly points to the existing %PROGRAMFILES%\LibreOffice\program\quickstart.exe, so this is obviously cosmetic.  

However, if one were to go to the running Quickstarter in the Taskbar and enable "Load LibreOffice during System Startup" (which is unchecked even though installed/upgraded with the QUICKSTART=1 flag), then this will create a 2nd LibreOffice entry (6.2 in addition to 6.1) in the Startup program group.
Comment 1 Kris Lou 2019-02-12 17:54:22 UTC
It probably doesn't matter, but I believe that this has been existing behavior and not 6.2 specific.
Comment 2 V Stuart Foote 2019-02-13 19:22:46 UTC
Can not confirm.

On Windows 10 Ent 64-ti en-US with 6.1.4.2 installed, and a per user LibreOffice setting of Tools -> Options -> General: "Load LibreOffice during system start-up" showing the LibreOffice 6.1 shortcut object in %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup...

the "LibreOffice 6.1" shortcut is removed during the MSI install/cleanup.

During installation, the checkbox for "Load LibreOffice during system start-up" was not checked--just the checkbox for Quickstarter in the options.

Launching LibreOffice, and then checking it active Tools -> Options -> General writes the "LibreOffice 6.2" shortcut per user into their %APPDATA% Startup folder.

This seems the desired behavior since we're keeping Quickstarter around.
Comment 3 Mike Kaganski 2019-02-13 19:31:02 UTC
Well - I can easily see that this must be reproducible, if not using interactive installation, then using some centrally configured deployment scenario. I don't know if uninstall includes removal of the shortcut (comment 2 implies it does), but such a removal can only handle *currently logged in* user, not any user of the system; and if e.g. the installation is performed using GPO at system startup, before user logged in, then it must be as described in comment 0.

Actually, I don't know a way to fix this, other than making the shortcut name to have no version information, or using the proposal from bug 116694.
Comment 4 Kris Lou 2019-02-13 20:35:18 UTC
I should have been more specific.  Mike hit it on the head -- generally deployed when user is offline, but even still, installed by a user other than the logged-in-user.

I deploy via WPKG, and the install command is _generally_ as follows -- I have a bunch of variable substitution here as I remove most DICT, LANGPACK, and HELPPACK (and a few default extensions).  

msiexec /i "%SOFTWARE%\Libreoffice\LibreOffice_%PKG_VERSION%_Win_x64.msi" /q ISCHECKFORPRODUCTUPDATES=0 SELECT_WORD=1 ADDLOCAL=ALL SELECT_EXCEL=0 SELECT_POWERPOINT=1 SELECT_VISIO=1 CREATEDESKTOPLINK=0 REGISTER_XLS=0 REGISTER_XLSX=0 REGISTER_DOC=1 REGISTER_DOCX=1 REGISTER_DOCM=1 REGISTER_DOT=1 REGISTER_DOTX=1 REGISTER_DOTM=1 REGISTER_RTF=1 REGISTER_PPT=1 REGISTER_PPS=1 REGISTER_PPSX=1 REGISTER_PPTX=1 REGISTER_PPTM=1 REGISTER_POT=1 REGISTER_POTX=1 REGISTER_POTM=1 REGISTER_ALL_MSO_TYPES=0 QUICKSTART=1 VC_REDIST=1 UI_LANGS=en_US RebootYesNo=No PRODUCTALLLANGUAGES=en-US REMOVE=%DICT%,%LANGPACK%,%HELPPACK%,%MISCEXT%  /norestart


--- 

My understanding is that QUICKSTART=1 corresponds to a registry entry, which in turn creates or ensures that the Quickstarter link is created at every user session.  Is it possible to change the behavior to remove previous link(s) and create new ones with the current version?  

Lastly, again, this is cosmetic, so not crucial by any means.
Comment 5 QA Administrators 2021-11-19 05:18:24 UTC Comment hidden (obsolete)
Comment 6 Stéphane Guillou (stragu) 2023-04-18 09:02:24 UTC
Isn't this the same issue as described in bug 35568? Can we mark as a duplicate?
Comment 7 Mike Kaganski 2023-04-18 09:08:31 UTC
(In reply to Stéphane Guillou (stragu) from comment #6)
No. It is indeed related to the awkward way we implement the (de)activation of the feature at OS level, but it's very different.