From 5c9c3679f12de8b3a1445d8fcbd40f4263fe9ea6 Mon Sep 17 00:00:00 2001 From: hoffmanra <33332650+hoffmanra@users.noreply.github.com> Date: Sun, 25 Sep 2022 13:53:48 -0500 Subject: [PATCH] Added LibreOffice to applications.json and winutil.ps1 to fix #171 (#178) * Fixes missing LibreOffice (#171) Added missing LibreOffice to fix issue #171. * Fixes missing LibreOffice (#171) Added LibreOffice to winutil.ps1 to fix issue #171. --- applications.json | 3 +++ winutil.ps1 | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/applications.json b/applications.json index 90e81414..f4f178a8 100644 --- a/applications.json +++ b/applications.json @@ -1,5 +1,8 @@ { "install": { + "Installlibreoffice": { + "winget": "TheDocumentFoundation.LibreOffice" + }, "Installadobe": { "winget": "Adobe.Acrobat.Reader.64-bit" }, diff --git a/winutil.ps1 b/winutil.ps1 index 90b75d9e..90dd9520 100644 --- a/winutil.ps1 +++ b/winutil.ps1 @@ -107,6 +107,10 @@ $WPFTab4BT.Add_Click({ #=========================================================================== $WPFinstall.Add_Click({ $wingetinstall = New-Object System.Collections.Generic.List[System.Object] + If ( $WPFInstalllibreoffice.IsChecked -eq $true ) { + $wingetinstall.Add("TheDocumentFoundation.LibreOffice") + $WPFInstalllibreoffice.IsChecked = $false + } If ( $WPFInstalladobe.IsChecked -eq $true ) { $wingetinstall.Add("Adobe.Acrobat.Reader.64-bit") $WPFInstalladobe.IsChecked = $false