From 37a04750226b3a383af275e33beb1adfe8bf0d64 Mon Sep 17 00:00:00 2001 From: Caglar Yalcin Date: Thu, 4 Jul 2024 22:59:01 +0300 Subject: [PATCH] v4.8.1 - removed apps that the majority didn't need --- files/apps/check.json | 39 ++++++++---------- files/apps/choco-apps.config | 36 +++++++---------- files/apps/winget.json | 42 ++++++++------------ resume.psm1 | 76 +----------------------------------- 4 files changed, 51 insertions(+), 142 deletions(-) diff --git a/files/apps/check.json b/files/apps/check.json index e71504a..99fd013 100644 --- a/files/apps/check.json +++ b/files/apps/check.json @@ -13,39 +13,34 @@ {"PackageIdentifier": ["HWMonitor"]}, {"PackageIdentifier": ["Crystal"]}, {"PackageIdentifier": ["VMware"]}, - {"PackageIdentifier": ["Signal"]}, - {"PackageIdentifier": ["Code"]}, - {"PackageIdentifier": ["notepad"]}, - {"PackageIdentifier": ["*SDK"]}, - {"PackageIdentifier": ["Nodejs"]}, - {"PackageIdentifier": ["Python"]}, - {"PackageIdentifier": ["Git"]}, {"PackageIdentifier": ["AnyDesk"]}, {"PackageIdentifier": ["Speedtest"]}, - {"PackageIdentifier": ["GitHub"]}, - {"PackageIdentifier": ["VLC"]}, {"PackageIdentifier": ["TreeSize"]}, {"PackageIdentifier": ["Commander"]}, {"PackageIdentifier": ["Deluge"]}, - {"PackageIdentifier": ["dbeaver"]}, - {"PackageIdentifier": ["Cryptomator"]}, - {"PackageIdentifier": ["Teams"]}, - {"PackageIdentifier": ["SteelSeries"]}, - {"PackageIdentifier": ["7-zip", "7zip"]}, + {"PackageIdentifier": ["7-zip", "7zip"]}, {"PackageIdentifier": ["Flameshot"]}, {"PackageIdentifier": ["twinkle"]}, {"PackageIdentifier": ["Codec"]}, - {"PackageIdentifier": ["Malwarebytes"]}, {"PackageIdentifier": ["Download"]}, - {"PackageIdentifier": ["Warp"]}, - {"PackageIdentifier": ["OpenRGB"]}, - {"PackageIdentifier": ["tailscale"]}, - {"PackageIdentifier": ["WinFsp"]}, {"PackageIdentifier": ["rufus"]}, - {"PackageIdentifier": ["handbrake"]}, - {"PackageIdentifier": ["runtime"]}, + {"PackageIdentifier": ["FanControl"]}, + {"PackageIdentifier": ["powertoys"]}, + {"PackageIdentifier": ["VLC"]}, + {"PackageIdentifier": ["Signal"]}, + {"PackageIdentifier": ["Teams"]}, + {"PackageIdentifier": ["Code"]}, + {"PackageIdentifier": ["notepad"]}, + {"PackageIdentifier": ["*SDK"]}, + {"PackageIdentifier": ["Nodejs"]}, + {"PackageIdentifier": ["Python"]}, + {"PackageIdentifier": ["Git"]}, + {"PackageIdentifier": ["GitHub"]}, + {"PackageIdentifier": ["dbeaver"]}, {"PackageIdentifier": ["webview"]}, - {"PackageIdentifier": ["powertoys"]} + {"PackageIdentifier": ["runtime"]}, + {"PackageIdentifier": ["dotnet"]}, + {"PackageIdentifier": ["Malwarebytes"]} ] } ] diff --git a/files/apps/choco-apps.config b/files/apps/choco-apps.config index a98f6ff..a71a935 100644 --- a/files/apps/choco-apps.config +++ b/files/apps/choco-apps.config @@ -8,37 +8,31 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + diff --git a/files/apps/winget.json b/files/apps/winget.json index 8dd921f..5fe4c12 100644 --- a/files/apps/winget.json +++ b/files/apps/winget.json @@ -13,44 +13,36 @@ {"PackageIdentifier": "CPUID.HWMonitor"}, {"PackageIdentifier": "CrystalDewWorld.CrystalDiskInfo"}, {"PackageIdentifier": "VMware.WorkstationPro"}, - {"PackageIdentifier": "OpenWhisperSystems.Signal"}, - {"PackageIdentifier": "Microsoft.VisualStudioCode"}, - {"PackageIdentifier": "Notepad++.Notepad++"}, - {"PackageIdentifier": "Microsoft.WindowsSDK.10.0.18362"}, - {"PackageIdentifier": "OpenJS.NodeJS"}, - {"PackageIdentifier": "Python.Python.3.8"}, - {"PackageIdentifier": "Git.Git"}, {"PackageIdentifier": "AnyDeskSoftwareGmbH.AnyDesk"}, {"PackageIdentifier": "Ookla.Speedtest.CLI"}, - { - "PackageIdentifier": "GitHub.GitHubDesktop", - "InstallerType": "exe" - }, - {"PackageIdentifier": "VideoLAN.VLC"}, {"PackageIdentifier": "JAMSoftware.TreeSize.Free"}, {"PackageIdentifier": "Ghisler.TotalCommander"}, {"PackageIdentifier": "DelugeTeam.Deluge"}, - {"PackageIdentifier": "dbeaver.dbeaver"}, - {"PackageIdentifier": "Cryptomator.Cryptomator"}, - {"PackageIdentifier": "Microsoft.Teams"}, - {"PackageIdentifier": "SteelSeries.GG"}, {"PackageIdentifier": "7zip.7zip"}, {"PackageIdentifier": "Flameshot.Flameshot"}, {"PackageIdentifier": "xanderfrangos.twinkletray"}, {"PackageIdentifier": "CodecGuide.K-LiteCodecPack.Mega"}, - {"PackageIdentifier": "Malwarebytes.Malwarebytes"}, {"PackageIdentifier": "Tonec.InternetDownloadManager"}, - {"PackageIdentifier": "Cloudflare.Warp"}, - {"PackageIdentifier": "CalcProgrammer1.OpenRGB"}, - {"PackageIdentifier": "tailscale.tailscale"}, - {"PackageIdentifier": "WinFsp.WinFsp"}, {"PackageIdentifier": "Rufus.Rufus"}, - {"PackageIdentifier": "HandBrake.HandBrake"}, {"PackageIdentifier": "Rem0o.FanControl"}, - {"PackageIdentifier": "Microsoft.DotNet.DesktopRuntime.8"}, - {"PackageIdentifier": "Google.PlayGames.Beta"}, + {"PackageIdentifier": "Microsoft.PowerToys"}, + {"PackageIdentifier": "VideoLAN.VLC"}, + {"PackageIdentifier": "OpenWhisperSystems.Signal"}, + {"PackageIdentifier": "Microsoft.Teams"}, + {"PackageIdentifier": "Microsoft.VisualStudioCode"}, + {"PackageIdentifier": "Notepad++.Notepad++"}, + {"PackageIdentifier": "Microsoft.WindowsSDK.10.0.18362"}, + {"PackageIdentifier": "OpenJS.NodeJS"}, + {"PackageIdentifier": "Python.Python.3.8"}, + {"PackageIdentifier": "Git.Git"}, + { + "PackageIdentifier": "GitHub.GitHubDesktop", + "InstallerType": "exe" + }, + {"PackageIdentifier": "dbeaver.dbeaver"}, {"PackageIdentifier": "Microsoft.EdgeWebView2Runtime"}, - {"PackageIdentifier": "Microsoft.PowerToys"} + {"PackageIdentifier": "Microsoft.DotNet.DesktopRuntime.8"}, + {"PackageIdentifier": "Malwarebytes.Malwarebytes"} ] } ] diff --git a/resume.psm1 b/resume.psm1 index 2e0509d..349af90 100644 --- a/resume.psm1 +++ b/resume.psm1 @@ -270,7 +270,8 @@ Function Install-VSCodeExtensions { $design = "pkief.material-icon-theme" $vspowershell = "ms-vscode.powershell", "tobysmith568.run-in-powershell", "ms-vscode-remote.remote-wsl" $frontend = "emin.vscode-react-native-kit", "msjsdiag.vscode-react-native", "pranaygp.vscode-css-peek", "rodrigovallades.es7-react-js-snippets", - "dsznajder.es7-react-js-snippets", "dbaeumer.vscode-eslint", "christian-kohler.path-intellisense", "esbenp.prettier-vscode", "ms-python.python", "naumovs.color-highlight" + "dsznajder.es7-react-js-snippets", "dbaeumer.vscode-eslint", "christian-kohler.path-intellisense", "esbenp.prettier-vscode", "ms-python.python", + "naumovs.color-highlight", "meezilla.json", "oliversturm.fix-json" $github = "github.vscode-pull-request-github", "github.copilot" $linux = "rogalmic.bash-debug", "shakram02.bash-beautify", "mads-hartmann.bash-ide-vscode", "redhat.vscode-yaml" $vsextensions = $docker + $autocomplete + $design + $vspowershell + $frontend + $github + $linux @@ -333,79 +334,6 @@ catch { Write-Host "[WARNING] $_" -ForegroundColor Red -BackgroundColor Black } -Function Remove-ChromeComponents { - Write-Host "Disabling and removing Chrome Update services..." -NoNewline - $chromeservices = "gupdate", "gupdatem" - foreach ($service in $chromeservices) { - $serviceObject = Get-Service -Name $service -ErrorAction SilentlyContinue - - if ($serviceObject) { - if ($serviceObject.Status -ne 'Running' -and $serviceObject.StartType -eq 'Disabled') { - continue - } - - try { - Stop-Service -Name $service -Force -ErrorAction Stop - Set-Service -Name $service -StartupType Disabled -ErrorAction Stop - } - catch { - $errorMessage = $_.Exception.Message - Write-Host "[WARNING] $errorMessage" -ForegroundColor Red -BackgroundColor Black - } - - try { - sc.exe delete $service *>$null - if ($LASTEXITCODE -ne 0) { throw "sc.exe returned error code: $LASTEXITCODE" } - } - catch { - $errorMessage = $_.Exception.Message - Write-Host "[WARNING] $errorMessage" -ForegroundColor Red -BackgroundColor Black - } - } - } - - $chromeDirectories = @( - "C:\Program Files\Google\Chrome\Application\", - "$env:userprofile\AppData\Local\Google\Chrome\Application" - ) - - $isSuccess = $false - - foreach ($chromeDirectory in $chromeDirectories) { - $chromeVersion = Get-ChildItem -Path $chromeDirectory -Directory -ErrorAction SilentlyContinue | - Where-Object { $_.Name -match '^\d+\.\d+\.\d+\.\d+$' } | - Sort-Object { [Version]($_.Name) } -Descending | - Select-Object -First 1 - - if ($null -eq $chromeVersion) { - continue - } - else { - $chromeInstallerPath = Join-Path -Path $chromeDirectory -ChildPath $chromeVersion.Name - $installerDirectory = Join-Path -Path $chromeInstallerPath -ChildPath "Installer" - if (Test-Path $installerDirectory) { - Set-Location -Path $installerDirectory - Remove-Item -Path chrmstp.exe -Recurse -ErrorAction SilentlyContinue - Set-Location c:\ - Write-Host "[DONE]" -ForegroundColor Green -BackgroundColor Black - $isSuccess = $true - break - } - else { - if (-not $isSuccess) { - Write-Host "[INFO]: No Installer directory found in $chromeInstallerPath" -ForegroundColor Yellow - } - } - } - } - - if (-not $isSuccess) { - Write-Host "[WARNING] A valid version of Chrome was not found." -ForegroundColor Red -BackgroundColor Black - } -} - -Remove-ChromeComponents - # Malwarebytes trial reset Function MalwarebytesReset { Write-Host "Adding task for Malwarebytes trial version reset..." -NoNewline