Update the docs for *firefox* and *chrome* scripts

This commit is contained in:
Markus Fleschutz 2023-09-08 20:09:27 +02:00
parent 843a12ed7d
commit 84a62b5d4c
4 changed files with 33 additions and 37 deletions

View File

@ -46,13 +46,13 @@ clean-repos.ps1, Cleans all Git repositories under the current/given directory f
clear-recycle-bin.ps1, Removes the content of the recycle bin folder (can not be undo!), clear-recycle-bin.ps1, Removes the content of the recycle bin folder (can not be undo!),
clone-repos.ps1, Clones well-known Git repositories, clone-repos.ps1, Clones well-known Git repositories,
close-calculator.ps1, Closes the calculator program gracefully, close-calculator.ps1, Closes the calculator program gracefully,
close-chrome.ps1, Closes the Google Chrome Web browser,
close-cortana.ps1, Closes Cortana gracefully, close-cortana.ps1, Closes Cortana gracefully,
close-file-explorer.ps1, Closes Microsoft File Explorer gracefully, close-file-explorer.ps1, Closes Microsoft File Explorer gracefully,
close-google-chrome.ps1, Closes the Google Chrome Web browser, close-firefox.ps1, Closes the Mozilla Firefox browser,
close-program.ps1, Closes the given program gracefully, close-program.ps1, Closes the given program gracefully,
close-microsoft-edge.ps1, Closes the Microsoft Edge Web browser, close-microsoft-edge.ps1, Closes the Microsoft Edge Web browser,
close-microsoft-store.ps1, Closes the Microsoft Store app, close-microsoft-store.ps1, Closes the Microsoft Store app,
close-mozilla-firefox.ps1, Closes the Mozilla Firefox Web browser,
close-netflix.ps1, Closes the Netflix application gracefully, close-netflix.ps1, Closes the Netflix application gracefully,
close-onedrive.ps1, Closes Microsoft OneDrive gracefully, close-onedrive.ps1, Closes Microsoft OneDrive gracefully,
close-serenade.ps1, Closes the Serenade.ai application gracefully, close-serenade.ps1, Closes the Serenade.ai application gracefully,
@ -88,8 +88,8 @@ get-sha1.ps1, Prints the SHA1 checksum of the given file,
get-sha256.ps1, Prints the SHA256 checksum of the given file, get-sha256.ps1, Prints the SHA256 checksum of the given file,
hibernate.ps1, Enables hibernate mode for the local computer (needs admin rights), hibernate.ps1, Enables hibernate mode for the local computer (needs admin rights),
inspect-exe.ps1, Prints basic information of the given executable file, inspect-exe.ps1, Prints basic information of the given executable file,
install-chrome-browser.ps1, Installs the Google Chrome browser, install-chrome.ps1, Installs the Google Chrome browser,
install-firefox.ps1, Installs the Firefox browser, install-firefox.ps1, Installs the Mozilla Firefox browser,
install-github-cli.ps1, Installs GitHub CLI, install-github-cli.ps1, Installs GitHub CLI,
install-knot-resolver.ps1, Installs the Knot Resolver (needs admin rights), install-knot-resolver.ps1, Installs the Knot Resolver (needs admin rights),
install-signal-cli.ps1, Installs signal-cli from github.com/AsamK/signal-cli, install-signal-cli.ps1, Installs signal-cli from github.com/AsamK/signal-cli,
@ -339,7 +339,7 @@ uninstall-crystal-disk-info.ps1,Uninstalls CrystalDiskInfo,
uninstall-crystal-disk-mark.ps1,Uninstalls CrystalDiskMark, uninstall-crystal-disk-mark.ps1,Uninstalls CrystalDiskMark,
uninstall-discord.ps1,Uninstalls Discord, uninstall-discord.ps1,Uninstalls Discord,
uninstall-edge.ps1,Uninstalls Microsoft Edge, uninstall-edge.ps1,Uninstalls Microsoft Edge,
uninstall-firefox.ps1,Uninstalls Mozilla Firefox, uninstall-firefox.ps1,Uninstalls the Mozilla Firefox browser,
uninstall-git-extensions.ps1,Uninstalls Git Extensions, uninstall-git-extensions.ps1,Uninstalls Git Extensions,
uninstall-github-cli.ps1,Uninstalls GitHub CLI, uninstall-github-cli.ps1,Uninstalls GitHub CLI,
uninstall-irfanview.ps1,Uninstalls IrfanView, uninstall-irfanview.ps1,Uninstalls IrfanView,

1 SCRIPT DESCRIPTION
46 clear-recycle-bin.ps1 Removes the content of the recycle bin folder (can not be undo!)
47 clone-repos.ps1 Clones well-known Git repositories
48 close-calculator.ps1 Closes the calculator program gracefully
49 close-chrome.ps1 Closes the Google Chrome Web browser
50 close-cortana.ps1 Closes Cortana gracefully
51 close-file-explorer.ps1 Closes Microsoft File Explorer gracefully
52 close-google-chrome.ps1 close-firefox.ps1 Closes the Google Chrome Web browser Closes the Mozilla Firefox browser
53 close-program.ps1 Closes the given program gracefully
54 close-microsoft-edge.ps1 Closes the Microsoft Edge Web browser
55 close-microsoft-store.ps1 Closes the Microsoft Store app
close-mozilla-firefox.ps1 Closes the Mozilla Firefox Web browser
56 close-netflix.ps1 Closes the Netflix application gracefully
57 close-onedrive.ps1 Closes Microsoft OneDrive gracefully
58 close-serenade.ps1 Closes the Serenade.ai application gracefully
88 get-sha256.ps1 Prints the SHA256 checksum of the given file
89 hibernate.ps1 Enables hibernate mode for the local computer (needs admin rights)
90 inspect-exe.ps1 Prints basic information of the given executable file
91 install-chrome-browser.ps1 install-chrome.ps1 Installs the Google Chrome browser
92 install-firefox.ps1 Installs the Firefox browser Installs the Mozilla Firefox browser
93 install-github-cli.ps1 Installs GitHub CLI
94 install-knot-resolver.ps1 Installs the Knot Resolver (needs admin rights)
95 install-signal-cli.ps1 Installs signal-cli from github.com/AsamK/signal-cli
339 uninstall-crystal-disk-mark.ps1 Uninstalls CrystalDiskMark
340 uninstall-discord.ps1 Uninstalls Discord
341 uninstall-edge.ps1 Uninstalls Microsoft Edge
342 uninstall-firefox.ps1 Uninstalls Mozilla Firefox Uninstalls the Mozilla Firefox browser
343 uninstall-git-extensions.ps1 Uninstalls Git Extensions
344 uninstall-github-cli.ps1 Uninstalls GitHub CLI
345 uninstall-irfanview.ps1 Uninstalls IrfanView

View File

@ -58,8 +58,6 @@ Mega Collection of PowerShell Scripts
| [enable-crash-dumps.ps1](Scripts/enable-crash-dumps.ps1) | Enables the writing of crash dumps. [Read more...](Docs/enable-crash-dumps.md) | | [enable-crash-dumps.ps1](Scripts/enable-crash-dumps.ps1) | Enables the writing of crash dumps. [Read more...](Docs/enable-crash-dumps.md) |
| [hibernate.ps1](Scripts/hibernate.ps1) | Hibernates the local computer immediately. [Read more...](Docs/hibernate.md) | | [hibernate.ps1](Scripts/hibernate.ps1) | Hibernates the local computer immediately. [Read more...](Docs/hibernate.md) |
| [install-github-cli.ps1](Scripts/install-github-cli.ps1) | Installs GitHub CLI. [Read more...](Docs/install-github-cli.md) | | [install-github-cli.ps1](Scripts/install-github-cli.ps1) | Installs GitHub CLI. [Read more...](Docs/install-github-cli.md) |
| [install-chrome-browser.ps1](Scripts/install-chrome-browser.ps1) | Installs the Google Chrome browser. [Read more...](Docs/install-chrome-browser.md) |
| [install-firefox.ps1](Scripts/install-firefox.ps1) | Installs the Firefox browser. [Read more...](Docs/install-firefox.md) |
| [install-knot-resolver.ps1](Scripts/install-knot-resolver.ps1) | Installs the Knot Resolver (needs admin rights). [Read more...](Docs/install-knot-resolver.md)| | [install-knot-resolver.ps1](Scripts/install-knot-resolver.ps1) | Installs the Knot Resolver (needs admin rights). [Read more...](Docs/install-knot-resolver.md)|
| [install-ssh-client.ps1](Scripts/install-ssh-client.ps1) | Installs a SSH client (needs admin rights). [Read more...](Docs/install-ssh-client.md) | | [install-ssh-client.ps1](Scripts/install-ssh-client.ps1) | Installs a SSH client (needs admin rights). [Read more...](Docs/install-ssh-client.md) |
| [install-ssh-server.ps1](Scripts/install-ssh-server.ps1) | Installs a SSH server (needs admin rights). [Read more...](Docs/install-ssh-server.md) | | [install-ssh-server.ps1](Scripts/install-ssh-server.ps1) | Installs a SSH server (needs admin rights). [Read more...](Docs/install-ssh-server.md) |
@ -96,7 +94,7 @@ Mega Collection of PowerShell Scripts
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------- | | ---------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| [close-calculator.ps1](Scripts/close-calculator.ps1) | Closes the calculator application. [Read more...](Docs/close-calculator.md) | | [close-calculator.ps1](Scripts/close-calculator.ps1) | Closes the calculator application. [Read more...](Docs/close-calculator.md) |
| [close-cortana.ps1](Scripts/close-cortana.ps1) | Closes Cortana. [Read more...](Docs/close-cortana.md) | | [close-cortana.ps1](Scripts/close-cortana.ps1) | Closes Cortana. [Read more...](Docs/close-cortana.md) |
| [close-chrome.ps1](Scripts/close-chrome.ps1) | Closes the Chrome browser. [Read more...](Docs/close-chrome.md) | | [close-chrome.ps1](Scripts/close-chrome.ps1) | Closes the Google Chrome browser. [Read more...](Docs/close-chrome.md) |
| [close-program.ps1](Scripts/close-program.ps1) | Closes the given program gracefully. [Read more...](Docs/close-program.md) | | [close-program.ps1](Scripts/close-program.ps1) | Closes the given program gracefully. [Read more...](Docs/close-program.md) |
| [close-edge.ps1](Scripts/close-edge.ps1) | Closes the Edge browser. [Read more...](Docs/close-edge.md) | | [close-edge.ps1](Scripts/close-edge.ps1) | Closes the Edge browser. [Read more...](Docs/close-edge.md) |
| [close-file-explorer.ps1](Scripts/close-file-explorer.ps1)| Closes Microsoft File Explorer. [Read more...](Docs/close-file-explorer.md) | | [close-file-explorer.ps1](Scripts/close-file-explorer.ps1)| Closes Microsoft File Explorer. [Read more...](Docs/close-file-explorer.md) |
@ -113,6 +111,8 @@ Mega Collection of PowerShell Scripts
| [close-vlc.ps1](Scripts/close-vlc.ps1) | Closes the VLC media player application. [Read more...](Docs/close-vlc.md) | | [close-vlc.ps1](Scripts/close-vlc.ps1) | Closes the VLC media player application. [Read more...](Docs/close-vlc.md) |
| [close-windows-terminal.ps1](Scripts/close-windows-terminal.ps1) | Closes the Windows Terminal application. [Read more...](Docs/close-windows-terminal.md) | | [close-windows-terminal.ps1](Scripts/close-windows-terminal.ps1) | Closes the Windows Terminal application. [Read more...](Docs/close-windows-terminal.md) |
| [enable-god-mode.ps1](Scripts/enable-god-mode.ps1) | Enables the god mode (adds a new icon to the desktop). [Read more...](Docs/enable-god-mode.md) | | [enable-god-mode.ps1](Scripts/enable-god-mode.ps1) | Enables the god mode (adds a new icon to the desktop). [Read more...](Docs/enable-god-mode.md) |
| [install-chrome.ps1](Scripts/install-chrome.ps1) | Installs the Google Chrome browser. [Read more...](Docs/install-chrome-browser.md) |
| [install-firefox.ps1](Scripts/install-firefox.ps1) | Installs the Firefox browser. [Read more...](Docs/install-firefox.md) |
| [list-clipboard.ps1](Scripts/list-clipboard.ps1) | Lists the contents of the clipboard. [Read more...](Docs/list-clipboard.md) | | [list-clipboard.ps1](Scripts/list-clipboard.ps1) | Lists the contents of the clipboard. [Read more...](Docs/list-clipboard.md) |
| [new-email.ps1](Scripts/new-email.ps1) | Starts the default email client to write a new email. [Read more...](Docs/new-email.md) | | [new-email.ps1](Scripts/new-email.ps1) | Starts the default email client to write a new email. [Read more...](Docs/new-email.md) |
| [open-amazon-website.ps1](Scripts/open-amazon-website.ps1)| Opens Amazon's website. [Read more...](Docs/open-amazon-website.md) | | [open-amazon-website.ps1](Scripts/open-amazon-website.ps1)| Opens Amazon's website. [Read more...](Docs/open-amazon-website.md) |

View File

@ -1,29 +0,0 @@
<#
.SYNOPSIS
Installs the Chrome browser
.DESCRIPTION
This PowerShell script installs the latest Google Chrome Web browser.
.EXAMPLE
PS> ./install-chrome-browser.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
try {
$StopWatch = [system.diagnostics.stopwatch]::startNew()
$Path = $env:TEMP;
$Installer = "chrome_installer.exe"
Invoke-WebRequest "http://dl.google.com/chrome/install/latest/chrome_installer.exe" -OutFile $Path\$Installer
Start-Process -FilePath $Path\$Installer -Args "/silent /install" -Verb RunAs -Wait
Remove-Item $Path\$Installer
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
"✔️ installed Google Chrome in $Elapsed sec"
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}

View File

@ -0,0 +1,25 @@
<#
.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
}