ScoopInstaller / Extras

📦 The Extras bucket for Scoop.
https://scoop.sh
The Unlicense
1.8k stars 1.36k forks source link

LibreOffice shortcuts error #8920

Closed 4x0v7 closed 1 year ago

4x0v7 commented 2 years ago

Bug Report

'libreoffice' (7.4.0.1) [64bit] [extras]

Current Behaviour

Installing 'libreoffice' (7.4.0.1) [64bit] [extras]
WARN  By installing you accept following license: MPL-2.0 (https://spdx.org/licenses/MPL-2.0.html)
Loading LibreOffice_7.4.0.1_Win_x64.msi from cache
Checking hash of LibreOffice_7.4.0.1_Win_x64.msi ... ok.
Running pre-install script...
Linking ~\scoop\apps\libreoffice\current => ~\scoop\apps\libreoffice\7.4.0.1
Creating shortcut for LibreOffice\LibreOffice (soffice.exe) failed: Couldn't find C:\Users\user0\scoop\apps\libreoffice\current\LibreOffice\program\soffice.exe
Creating shortcut for LibreOffice\LibreOffice Base (sbase.exe) failed: Couldn't find C:\Users\user0\scoop\apps\libreoffice\current\LibreOffice\program\sbase.exe
Creating shortcut for LibreOffice\LibreOffice Calc (scalc.exe) failed: Couldn't find C:\Users\user0\scoop\apps\libreoffice\current\LibreOffice\program\scalc.exe
Creating shortcut for LibreOffice\LibreOffice Draw (sdraw.exe) failed: Couldn't find C:\Users\user0\scoop\apps\libreoffice\current\LibreOffice\program\sdraw.exe
Creating shortcut for LibreOffice\LibreOffice Impress (simpress.exe) failed: Couldn't find C:\Users\user0\scoop\apps\libreoffice\current\LibreOffice\program\simpress.exe
Creating shortcut for LibreOffice\LibreOffice Math (smath.exe) failed: Couldn't find C:\Users\user0\scoop\apps\libreoffice\current\LibreOffice\program\smath.exe
Creating shortcut for LibreOffice\LibreOffice Writer (swriter.exe) failed: Couldn't find C:\Users\user0\scoop\apps\libreoffice\current\LibreOffice\program\swriter.exe
'libreoffice' (7.4.0.1) was installed successfully!
Notes
-----
If you are upgrading from portable version, you can migrate settings by copying "C:\Users\user0\scoop\persist\libreoffice\Data" to "%AppData%\LibreOffice"
'libreoffice' suggests installing 'extras/vcredist2022'.

Expected Behaviour

Installing 'libreoffice' (7.4.0.1) [64bit] [extras]
WARN  By installing you accept following license: MPL-2.0 (https://spdx.org/licenses/MPL-2.0.html)
Loading LibreOffice_7.4.0.1_Win_x64.msi from cache
Checking hash of LibreOffice_7.4.0.1_Win_x64.msi ... ok.
Running pre-install script...
Linking ~\scoop\apps\libreoffice\current => ~\scoop\apps\libreoffice\7.4.0.1
Creating shortcut for LibreOffice\LibreOffice (soffice.exe)
Creating shortcut for LibreOffice\LibreOffice Base (sbase.exe)
Creating shortcut for LibreOffice\LibreOffice Calc (scalc.exe)
Creating shortcut for LibreOffice\LibreOffice Draw (sdraw.exe)
Creating shortcut for LibreOffice\LibreOffice Impress (simpress.exe)
Creating shortcut for LibreOffice\LibreOffice Math (smath.exe)
Creating shortcut for LibreOffice\LibreOffice Writer (swriter.exe)
'libreoffice' (7.4.0.1) was installed successfully!
Notes
-----
If you are upgrading from portable version, you can migrate settings by copying "C:\Users\andre\scoop\persist\libreoffice\Data" to "%AppData%\LibreOffice"
'libreoffice' suggests installing 'extras/vcredist2022'.

Additional context/output

Possible Solution

Adding another \\LibreOffice subfolder for the shortcuts gets it working ok

Not working

[
    "LibreOffice\\program\\swriter.exe",
    "LibreOffice\\LibreOffice Writer"
]

Working

[
    "LibreOffice\\LibreOffice\\program\\swriter.exe",
    "LibreOffice\\LibreOffice Writer"
]

System details

Windows version: 10

OS architecture: 64bit

PowerShell version: [output of "$($PSVersionTable.PSVersion)"]

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      19041  1682

Additional software: [(optional) e.g. ConEmu, Git]

Scoop Configuration

{
    "lastupdate":  "258|2022-07-25 17:33:07",
    "SCOOP_REPO":  "https://github.com/Ash258/Scoop-Core",
    "SCOOP_BRANCH":  "main",
    "alias":  {
                  "u":  "scoop-u"
              }
}
tech189 commented 2 years ago

Could you try again after enabling LessMSI by running scoop config MSIEXTRACT_USE_LESSMSI true?

I also noticed you're using a fork of Scoop, which is probably not backwards compatible. If the above doesn't work you could try reinstalling the original version. There is a guide for moving here but you should make a backup beforehand, just in case.