diff --git a/scripts/uninstall-chrome.ps1 b/scripts/uninstall-chrome.ps1 deleted file mode 100755 index 27336cef..00000000 --- a/scripts/uninstall-chrome.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -<# -.SYNOPSIS - Uninstalls the Chrome browser -.DESCRIPTION - This PowerShell script uninstalls the Google Chrome browser from the local computer. -.EXAMPLE - PS> ./uninstall-chrome.ps1 -.LINK - https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz | License: CC0 -#> - -try { - "⏳ Uninstalling Google Chrome..." - - & winget uninstall --id Google.Chrome - if ($lastExitCode -ne "0") { throw "Can't uninstall Google Chrome, is it installed?" } - - "✔️ Google Chrome is uninstalled now." - exit 0 # success -} catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" - exit 1 -} \ No newline at end of file diff --git a/scripts/uninstall-crystal-disk-info.ps1 b/scripts/uninstall-crystal-disk-info.ps1 deleted file mode 100755 index aa991cfc..00000000 --- a/scripts/uninstall-crystal-disk-info.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -<# -.SYNOPSIS - Uninstalls CrystalDiskInfo -.DESCRIPTION - This PowerShell script uninstalls CrystalDiskInfo from the local computer. -.EXAMPLE - PS> ./uninstall-crystal-disk-info -.LINK - https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz | License: CC0 -#> - -try { - "Uninstalling CrystalDiskInfo, please wait..." - - & winget uninstall "CrystalDiskInfo" - if ($lastExitCode -ne "0") { throw "Can't uninstall CrystalDiskInfo, is it installed?" } - - "CrystalDiskInfo is uninstalled now." - exit 0 # success -} catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" - exit 1 -} \ No newline at end of file diff --git a/scripts/uninstall-crystal-disk-mark.ps1 b/scripts/uninstall-crystal-disk-mark.ps1 deleted file mode 100755 index f3f79001..00000000 --- a/scripts/uninstall-crystal-disk-mark.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -<# -.SYNOPSIS - Uninstalls CrystalDiskMark -.DESCRIPTION - This PowerShell script uninstalls CrystalDiskMark from the local computer. -.EXAMPLE - PS> ./uninstall-crystal-disk-mark -.LINK - https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz | License: CC0 -#> - -try { - "Uninstalling CrystalDiskMark, please wait..." - - & winget uninstall "CrystalDiskMark Shizuku Edition" - if ($lastExitCode -ne "0") { throw "Can't uninstall CrystalDiskMark, is it installed?" } - - "CrystalDiskMark is uninstalled now." - exit 0 # success -} catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" - exit 1 -} \ No newline at end of file diff --git a/scripts/uninstall-discord.ps1 b/scripts/uninstall-discord.ps1 deleted file mode 100755 index e50db8a2..00000000 --- a/scripts/uninstall-discord.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -<# -.SYNOPSIS - Uninstalls Discord -.DESCRIPTION - This PowerShell script uninstalls Discord from the local computer. -.EXAMPLE - PS> ./uninstall-discord -.LINK - https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz | License: CC0 -#> - -try { - "Uninstalling Discord, please wait..." - - & winget uninstall "Discord" - if ($lastExitCode -ne "0") { throw "Can't uninstall Discord, is it installed?" } - - "Discord is uninstalled now." - exit 0 # success -} catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" - exit 1 -} \ No newline at end of file diff --git a/scripts/uninstall-edge.ps1 b/scripts/uninstall-edge.ps1 deleted file mode 100755 index 7fedd473..00000000 --- a/scripts/uninstall-edge.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -<# -.SYNOPSIS - Uninstalls Microsoft Edge -.DESCRIPTION - This PowerShell script uninstalls Microsoft Edge from the local computer. -.EXAMPLE - PS> ./uninstall-edge -.LINK - https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz | License: CC0 -#> - -try { - "Uninstalling Microsoft Edge, please wait..." - - & winget uninstall "Microsoft Edge Browser" - if ($lastExitCode -ne "0") { throw "Can't uninstall Edge, is it installed?" } - - "Microsoft Edge is uninstalled now." - exit 0 # success -} catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" - exit 1 -} \ No newline at end of file diff --git a/scripts/uninstall-firefox.ps1 b/scripts/uninstall-firefox.ps1 deleted file mode 100755 index 3127385c..00000000 --- a/scripts/uninstall-firefox.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -<# -.SYNOPSIS - Uninstalls Mozilla Firefox -.DESCRIPTION - This PowerShell script uninstalls Mozilla Firefox from the local computer. -.EXAMPLE - PS> ./uninstall-firefox -.LINK - https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz | License: CC0 -#> - -try { - "Uninstalling Mozilla Firefox, please wait..." - - & winget uninstall "Mozilla Firefox" - if ($lastExitCode -ne "0") { throw "Can't uninstall Firefox, is it installed?" } - - "Mozilla Firefox is uninstalled now." - exit 0 # success -} catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" - exit 1 -} \ No newline at end of file diff --git a/scripts/uninstall-git-extensions.ps1 b/scripts/uninstall-git-extensions.ps1 deleted file mode 100755 index 588764d8..00000000 --- a/scripts/uninstall-git-extensions.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -<# -.SYNOPSIS - Uninstalls Git Extensions -.DESCRIPTION - This PowerShell script uninstalls Git Extensions from the local computer. -.EXAMPLE - PS> ./uninstall-git-extensions -.LINK - https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz | License: CC0 -#> - -try { - "Uninstalling Git Extensions, please wait..." - - & winget uninstall --id GitExtensionsTeam.GitExtensions - if ($lastExitCode -ne "0") { throw "Can't uninstall Git Extensions, is it installed?" } - - "Git Extensions is uninstalled now." - exit 0 # success -} catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" - exit 1 -} \ No newline at end of file diff --git a/scripts/uninstall-github-cli.ps1 b/scripts/uninstall-github-cli.ps1 deleted file mode 100755 index 54cc3491..00000000 --- a/scripts/uninstall-github-cli.ps1 +++ /dev/null @@ -1,35 +0,0 @@ -<# -.SYNOPSIS - Uninstalls GitHub CLI -.DESCRIPTION - This PowerShell script uninstalls the GitHub CLI from the local computer. -.EXAMPLE - PS> ./uninstall-github-cli.ps1 - ⏳ Uninstalling GitHub CLI... - ✔️ Removal of GitHub CLI took 7 sec -.LINK - https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz | License: CC0 -#> - -try { - "⏳ Uninstalling GitHub CLI..." - $StopWatch = [system.diagnostics.stopwatch]::startNew() - - if ($IsMacOS) { - & brew uninstall gh - } elseif ($IsLinux) { - & sudo apt remote gh - } else { - & winget uninstall --id GitHub.cli - } - if ($lastExitCode -ne "0") { throw "Can't uninstall GitHub CLI, is it installed?" } - - [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds - "✔️ Removal of GitHub CLI took $Elapsed sec" - exit 0 # success -} catch { - "Sorry: $($Error[0])" - exit 1 -} diff --git a/scripts/uninstall-irfanview.ps1 b/scripts/uninstall-irfanview.ps1 deleted file mode 100755 index e5ae5179..00000000 --- a/scripts/uninstall-irfanview.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -<# -.SYNOPSIS - Uninstalls IrfanView -.DESCRIPTION - This PowerShell script uninstalls IrfanView from the local computer. -.EXAMPLE - PS> ./uninstall-irfanview -.LINK - https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz | License: CC0 -#> - -try { - "Uninstalling IrfanView, please wait..." - - & winget uninstall "IrfanView64" - if ($lastExitCode -ne "0") { throw "Can't uninstall IrfanView, is it installed?" } - - "IrfanView is uninstalled now." - exit 0 # success -} catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" - exit 1 -} diff --git a/scripts/uninstall-microsoft-teams.ps1 b/scripts/uninstall-microsoft-teams.ps1 deleted file mode 100755 index a21a3dc9..00000000 --- a/scripts/uninstall-microsoft-teams.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -<# -.SYNOPSIS - Uninstalls Microsoft Teams -.DESCRIPTION - This PowerShell script uninstalls Microsoft Teams from the local computer. -.EXAMPLE - PS> ./uninstall-microsoft-teams -.LINK - https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz | License: CC0 -#> - -try { - "Uninstalling Microsoft Teams, please wait..." - - & winget uninstall --id Microsoft.Teams - if ($lastExitCode -ne "0") { throw "Can't uninstall Microsoft Teams, is it installed?" } - - "Microsoft Teams is uninstalled now." - exit 0 # success -} catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" - exit 1 -} \ No newline at end of file diff --git a/scripts/uninstall-netflix.ps1 b/scripts/uninstall-netflix.ps1 deleted file mode 100755 index d927279a..00000000 --- a/scripts/uninstall-netflix.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -<# -.SYNOPSIS - Uninstalls Netflix -.DESCRIPTION - This PowerShell script uninstalls Netflix from the local computer. -.EXAMPLE - PS> ./uninstall-netflix -.LINK - https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz | License: CC0 -#> - -try { - "Uninstalling Netflix, please wait..." - - & winget uninstall "Netflix" - if ($lastExitCode -ne "0") { throw "Can't uninstall Netflix, is it installed?" } - - "Netflix is uninstalled now." - exit 0 # success -} catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" - exit 1 -} \ No newline at end of file diff --git a/scripts/uninstall-nine-zip.ps1 b/scripts/uninstall-nine-zip.ps1 deleted file mode 100755 index effc9c4e..00000000 --- a/scripts/uninstall-nine-zip.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -<# -.SYNOPSIS - Uninstalls 9 ZIP -.DESCRIPTION - This PowerShell script uninstalls 9 ZIP from the local computer. -.EXAMPLE - PS> ./uninstall-nine-zip -.LINK - https://github.com/fleschutz/talk2windows -.NOTES - Author: Markus Fleschutz | License: CC0 -#> - -try { - "Uninstalling 9 ZIP, please wait..." - - & winget uninstall "9 ZIP - open rar, zip, 7zip, gzip" - if ($lastExitCode -ne "0") { throw "Can't uninstall 9 ZIP, is it installed?" } - - "9 ZIP is uninstalled now." - exit 0 # success -} catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" - exit 1 -} \ No newline at end of file diff --git a/scripts/uninstall-one-calendar.ps1 b/scripts/uninstall-one-calendar.ps1 deleted file mode 100755 index e95f24b1..00000000 --- a/scripts/uninstall-one-calendar.ps1 +++ /dev/null @@ -1,27 +0,0 @@ -<# -.SYNOPSIS - Uninstalls One Calendar -.DESCRIPTION - This PowerShell script uninstalls One Calendar from the local computer. -.EXAMPLE - PS> ./uninstall-one-calendar.ps1 -.LINK - https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz | License: CC0 -#> - -try { - "⏳ Uninstalling One Calendar ..." - $StopWatch = [system.diagnostics.stopwatch]::startNew() - - & winget uninstall "One Calendar" - if ($lastExitCode -ne "0") { throw "Can't uninstall One Calendar, is it installed?" } - - [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds - "✔️ Removal of One Calendar tool $Elapsed sec" - exit 0 # success -} catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" - exit 1 -} \ No newline at end of file diff --git a/scripts/uninstall-opera-browser.ps1 b/scripts/uninstall-opera-browser.ps1 deleted file mode 100755 index d34e1136..00000000 --- a/scripts/uninstall-opera-browser.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -<# -.SYNOPSIS - Uninstalls Opera Browser -.DESCRIPTION - This PowerShell script uninstalls Opera Browser from the local computer. -.EXAMPLE - PS> ./uninstall-opera-browser -.LINK - https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz | License: CC0 -#> - -try { - "Uninstalling Opera Browser, please wait..." - - & winget uninstall "Opera Browser" - if ($lastExitCode -ne "0") { throw "Can't uninstall Opera Browser, is it installed?" } - - "Opera Browser is uninstalled now." - exit 0 # success -} catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" - exit 1 -} \ No newline at end of file diff --git a/scripts/uninstall-opera-gx.ps1 b/scripts/uninstall-opera-gx.ps1 deleted file mode 100755 index ab0a7546..00000000 --- a/scripts/uninstall-opera-gx.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -<# -.SYNOPSIS - Uninstalls Opera GX -.DESCRIPTION - This PowerShell script uninstalls Opera GX from the local computer. -.EXAMPLE - PS> ./uninstall-opera-gx -.LINK - https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz | License: CC0 -#> - -try { - "Uninstalling Opera GX, please wait..." - - & winget uninstall "Opera GX" - if ($lastExitCode -ne "0") { throw "Can't uninstall Opera Browser, is it installed?" } - - "Opera GX is uninstalled now." - exit 0 # success -} catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" - exit 1 -} \ No newline at end of file diff --git a/scripts/uninstall-paint-3d.ps1 b/scripts/uninstall-paint-3d.ps1 deleted file mode 100755 index a3f7c671..00000000 --- a/scripts/uninstall-paint-3d.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -<# -.SYNOPSIS - Uninstalls Paint 3D -.DESCRIPTION - This PowerShell script uninstalls Paint 3D from the local computer. -.EXAMPLE - PS> ./uninstall-paint-3d -.LINK - https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz | License: CC0 -#> - -try { - "Uninstalling Paint 3D, please wait..." - - & winget uninstall "Paint 3D" - if ($lastExitCode -ne "0") { throw "Can't uninstall Paint 3D, is it installed?" } - - "Paint 3D is uninstalled now." - exit 0 # success -} catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" - exit 1 -} \ No newline at end of file diff --git a/scripts/uninstall-rufus.ps1 b/scripts/uninstall-rufus.ps1 deleted file mode 100755 index 1aab1925..00000000 --- a/scripts/uninstall-rufus.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -<# -.SYNOPSIS - Uninstalls Rufus -.DESCRIPTION - This PowerShell script uninstalls Rufus from the local computer. -.EXAMPLE - PS> ./uninstall-rufus -.LINK - https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz | License: CC0 -#> - -try { - "Uninstalling Rufus, please wait..." - - & winget uninstall "Rufus" - if ($lastExitCode -ne "0") { throw "Can't uninstall Rufus, is it installed?" } - - "Rufus is uninstalled now." - exit 0 # success -} catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" - exit 1 -} \ No newline at end of file diff --git a/scripts/uninstall-skype.ps1 b/scripts/uninstall-skype.ps1 deleted file mode 100755 index 46d566c5..00000000 --- a/scripts/uninstall-skype.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -<# -.SYNOPSIS - Uninstalls Skype -.DESCRIPTION - This PowerShell script uninstalls Skype from the local computer. -.EXAMPLE - PS> ./uninstall-skype -.LINK - https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz | License: CC0 -#> - -try { - "Uninstalling Skype, please wait..." - - & winget uninstall "Skype" - if ($lastExitCode -ne "0") { throw "Can't uninstall Skype, is it installed?" } - - "Skype is uninstalled now." - exit 0 # success -} catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" - exit 1 -} \ No newline at end of file diff --git a/scripts/uninstall-spotify.ps1 b/scripts/uninstall-spotify.ps1 deleted file mode 100755 index d79698eb..00000000 --- a/scripts/uninstall-spotify.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -<# -.SYNOPSIS - Uninstalls Spotify -.DESCRIPTION - This PowerShell script uninstalls Spotify from the local computer. -.EXAMPLE - PS> ./uninstall-spotify -.LINK - https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz | License: CC0 -#> - -try { - "Uninstalling Spotify, please wait..." - - & winget uninstall "Spotify - Music and Podcasts" - if ($lastExitCode -ne "0") { throw "Can't uninstall Spotify, is it installed?" } - - "Spotify is uninstalled now." - exit 0 # success -} catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" - exit 1 -} \ No newline at end of file diff --git a/scripts/uninstall-twitter.ps1 b/scripts/uninstall-twitter.ps1 deleted file mode 100755 index c9b9705c..00000000 --- a/scripts/uninstall-twitter.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -<# -.SYNOPSIS - Uninstalls Twitter -.DESCRIPTION - This PowerShell script uninstalls Twitter from the local computer. -.EXAMPLE - PS> ./uninstall-twitter -.LINK - https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz | License: CC0 -#> - -try { - "Uninstalling Twitter, please wait..." - - & winget uninstall "Twitter" - if ($lastExitCode -ne "0") { throw "Can't uninstall Twitter, is it installed?" } - - "Twitter is uninstalled now." - exit 0 # success -} catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" - exit 1 -} \ No newline at end of file diff --git a/scripts/uninstall-visual-studio-code.ps1 b/scripts/uninstall-visual-studio-code.ps1 deleted file mode 100755 index f259ed2c..00000000 --- a/scripts/uninstall-visual-studio-code.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -<# -.SYNOPSIS - Uninstalls Visual Studio Code -.DESCRIPTION - This PowerShell script uninstalls Visual Studio Code from the local computer. -.EXAMPLE - PS> ./uninstall-visual-studio-code -.LINK - https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz | License: CC0 -#> - -try { - "Uninstalling Visual Studio Code, please wait..." - - & winget uninstall "Visual Studio Code" - if ($lastExitCode -ne "0") { throw "Can't uninstall Visual Studio Code, is it installed?" } - - "Visual Studio Code is uninstalled now." - exit 0 # success -} catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" - exit 1 -} \ No newline at end of file diff --git a/scripts/uninstall-vlc.ps1 b/scripts/uninstall-vlc.ps1 deleted file mode 100755 index c8a45ca1..00000000 --- a/scripts/uninstall-vlc.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -<# -.SYNOPSIS - Uninstalls VLC -.DESCRIPTION - This PowerShell script uninstalls the VLC media player from the local computer. -.EXAMPLE - PS> ./uninstall-vlc.ps1 - ⏳ Uninstalling VLC media player... - ✔️ Removal of VLC media player took 7 sec -.LINK - https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz | License: CC0 -#> - -try { - "⏳ Uninstalling VLC media player..." - $StopWatch = [system.diagnostics.stopwatch]::startNew() - - & winget uninstall --id XPDM1ZW6815MQM - if ($lastExitCode -ne "0") { throw "Can't uninstall VLC media player, is it installed?" } - - [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds - "✔️ Removal of VLC media player took $Elapsed sec" - exit 0 # success -} catch { - "Sorry: $($Error[0])" - exit 1 -} diff --git a/scripts/uninstall-windows-terminal.ps1 b/scripts/uninstall-windows-terminal.ps1 deleted file mode 100755 index aafcdb3b..00000000 --- a/scripts/uninstall-windows-terminal.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -<# -.SYNOPSIS - Uninstalls Windows Terminal -.DESCRIPTION - This PowerShell script uninstalls Windows Terminal from the local computer. -.EXAMPLE - PS> ./uninstall-windows-terminal -.LINK - https://github.com/fleschutz/PowerShell -.NOTES - Author: Markus Fleschutz | License: CC0 -#> - -try { - "Uninstalling Windows Terminal, please wait..." - - & winget uninstall --id Microsoft.WindowsTerminal - if ($lastExitCode -ne "0") { throw "Can't uninstall Windows Terminal, is it installed?" } - - "Windows Terminal is uninstalled now." - exit 0 # success -} catch { - "Sorry: $($Error[0])" - exit 1 -}