Updated the install-*.ps1 scripts

This commit is contained in:
Markus Fleschutz
2025-07-09 14:33:56 +02:00
parent 51b541e0de
commit 7b9ed92fba
54 changed files with 99 additions and 11 deletions

View File

@ -5,3 +5,6 @@ Some introductory words...
1. Do this...
2. Do that...
Copyright © 2025 Joe Doe. All Rights Reserved.

View File

@ -14,7 +14,7 @@
← enter URL to additional information here
#>
#requires -version 4
#requires -version 5.1
param() # ← enter script parameters here

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"Installing Audacity, please wait..."

View File

@ -16,6 +16,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
$stopWatch = [system.diagnostics.stopwatch]::startNew()

View File

@ -12,6 +12,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
$StopWatch = [system.diagnostics.stopwatch]::startNew()
if (!$IsLinux) { throw "Only Linux currently support snaps" }

View File

@ -21,7 +21,7 @@
Author: Markus Fleschutz | License: CC0
#>
#Requires -RunAsAdministrator
#requires -version 5.1 -RunAsAdministrator
param([int]$port = 8099, [string]$mediaFolder = "/opt/Calibre Library", [string]$userDB = "/opt/CalibreUsers.sqlite", [string]$logfile = "/opt/CalibreServer.log")

View File

@ -11,7 +11,7 @@
Author: Markus Fleschutz | License: CC0
#>
#Requires -RunAsAdministrator
#requires -version 5.1 -RunAsAdministrator
try {
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"Installing Google Chrome, please wait..."

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"⏳ Installing CrystalDiskInfo from Microsoft Store, please wait..."
$stopWatch = [system.diagnostics.stopwatch]::startNew()

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"Installing CrystalDiskMark, please wait..."

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"Installing Discord, please wait..."

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"Installing Microsoft Edge, please wait..."

2
scripts/install-edit.ps1 Normal file → Executable file
View File

@ -13,6 +13,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
$stopWatch = [system.diagnostics.stopwatch]::startNew()

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
$stopWatch = [system.diagnostics.stopwatch]::startNew()

View File

@ -13,6 +13,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
$stopWatch = [system.diagnostics.stopwatch]::startNew()
"⏳ Installing Mozilla Firefox from Microsoft Store..."

View File

@ -1,3 +1,5 @@
#requires -version 5.1
param(
[string]$sourceFolder = ""
)

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"Installing Git Extensions, please wait..."

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"Installing Git for Windows, please wait..."

View File

@ -13,6 +13,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"⏳ Installing GitHub CLI..."
$stopWatch = [system.diagnostics.stopwatch]::startNew()

View File

@ -1,3 +1,4 @@
#requires -version 5.1
"1. Install and configure the necessary dependencies"
& sudo apt-get update

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
param([int]$port = 8070, [string]$pathToMedia = "/media/")
try {

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"Installing IrfanView, please wait..."

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
param([string]$installDir = "/opt/jenkins-agent", [string]$jenkinsURL = "", [string]$secretKey = "")
try {

View File

@ -11,7 +11,7 @@
Author: Markus Fleschutz | License: CC0
#>
#Requires -RunAsAdministrator
#requires -version 5.1 -RunAsAdministrator
try {
$StopWatch = [system.diagnostics.stopwatch]::startNew()

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"Installing Microsoft Teams, please wait..."

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
$stopWatch = [system.diagnostics.stopwatch]::startNew()

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"Installing Netflix, please wait..."

View File

@ -11,7 +11,7 @@
Author: Markus Fleschutz | License: CC0
#>
#Requires -RunAsAdministrator
#requires -version 5.1 -RunAsAdministrator
try {
$StopWatch = [system.diagnostics.stopwatch]::startNew()

View File

@ -1,4 +1,5 @@

#requires -version 5.1
try {
"⏳ Installing OctoPrint (snap 'octoprint-pfs', channel 'edge')..."

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"Installing One Calendar, please wait..."

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"Installing Opera Browser, please wait..."

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"Installing Opera GX, please wait..."

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"Installing Paint 3D, please wait..."

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"Installing Microsoft Powertoys, please wait..."

View File

@ -23,6 +23,8 @@
Invoke-Expression "& { $(Invoke-RestMethod 'https://aka.ms/install-powershell.ps1') } -daily"
#>
#requires -version 5.1
[CmdletBinding(DefaultParameterSetName = "Daily")]
param(
[Parameter(ParameterSetName = "Daily")]

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"Installing Rufus, please wait..."

View File

@ -12,6 +12,8 @@
Author: Gavin R. McDavitt
#>
#requires -version 5.1
try {
# Define the URL of the Salesforce CLI installer
$url = "https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-x64.exe"
@ -33,4 +35,4 @@ try {
} catch {
Write-Output "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}
}

View File

@ -1 +1,2 @@
#requires -version 5.1
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression

View File

@ -14,6 +14,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
param([string]$Version = "")
try {

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"Installing Skype, please wait..."

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"Installing Spotify, please wait..."

View File

@ -11,7 +11,7 @@
Author: Markus Fleschutz | License: CC0
#>
#Requires -RunAsAdministrator
#requires -version 5.1 -RunAsAdministrator
try {
$StopWatch = [system.diagnostics.stopwatch]::startNew()

View File

@ -11,7 +11,7 @@
Author: Markus Fleschutz | License: CC0
#>
#Requires -RunAsAdministrator
#requires -version 5.1 -RunAsAdministrator
try {
$StopWatch = [system.diagnostics.stopwatch]::startNew()

View File

@ -14,6 +14,8 @@
https://github.com/fleschutz/PowerShell
#>
#requires -version 5.1
try {
$stopWatch = [system.diagnostics.stopwatch]::startNew()

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"Installing Mozilla Thunderbird, please wait..."

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"Installing Twitter, please wait..."

View File

@ -11,7 +11,7 @@
Author: Markus Fleschutz | License: CC0
#>
#Requires -RunAsAdministrator
#requires -version 5.1 -RunAsAdministrator
try {
$StopWatch = [system.diagnostics.stopwatch]::startNew()

View File

@ -18,6 +18,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
$stopWatch = [system.diagnostics.stopwatch]::startNew()

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"Installing Visual Studio Code, please wait..."

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"Installing Vivaldi, please wait..."

View File

@ -13,6 +13,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"⏳ Installing VLC media player from WinGet..."
$stopWatch = [system.diagnostics.stopwatch]::startNew()

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"Installing Windows Terminal, please wait..."

View File

@ -11,7 +11,7 @@
Author: Markus Fleschutz | License: CC0
#>
#Requires -RunAsAdministrator
#requires -version 5.1 -RunAsAdministrator
try {
$StopWatch = [system.diagnostics.stopwatch]::startNew()

View File

@ -11,6 +11,8 @@
Author: Markus Fleschutz | License: CC0
#>
#requires -version 5.1
try {
"Installing Zoom, please wait..."