fixed onboarding script
added more to vargscript
This commit is contained in:
Kurtis
2025-11-26 15:46:15 +10:00
parent b0ca34e4df
commit da7ae7f854
2 changed files with 85 additions and 27 deletions

View File

@@ -32,7 +32,7 @@ function Install-Thunderbird {
winget install Mozilla.Thunderbird winget install Mozilla.Thunderbird
} }
function Install-Thunderbird { function Install-7zip {
Write-Host "Installing 7zip" Write-Host "Installing 7zip"
winget install 7zip.7zip winget install 7zip.7zip
} }
@@ -83,7 +83,7 @@ do {
"1" { "1" {
Install-Updates Install-Updates
Install-Software Install-Software
Write-Head "All Done!" Write-Host "All Done!"
Pause Pause
} }
"2" { "2" {

View File

@@ -1,17 +1,17 @@
# Check if the script is running as administrator # Check if the script is running as administrator
If (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { If (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
# If not running as administrator, attempt to restart with elevation # If not running as administrator, attempt to restart with elevation
Write-Host "This script needs to run with Administrator privileges. Please Run again" Write-Host "This script needs to run with Administrator privileges. Please Run again" -ForegroundColor Red
Exit Exit
} }
function Install-Zen { function Install-Zen {
Write-Host "Installing Zen" Write-Host "Installing Zen" -ForegroundColor Yellow
winget install Zen-Team.Zen-Browser winget install Zen-Team.Zen-Browser
} }
function Config-Zen { function Config-Zen {
Write-Host "Creating Directory" Write-Host "Creating Directory" -ForegroundColor Yellow
$folderPath = "C:\Program Files\Zen Browser\distribution" $folderPath = "C:\Program Files\Zen Browser\distribution"
if (-not (Test-Path $folderPath -PathType Container)) { if (-not (Test-Path $folderPath -PathType Container)) {
New-Item -Path $folderPath -ItemType Directory -Force New-Item -Path $folderPath -ItemType Directory -Force
@@ -19,13 +19,13 @@ function Config-Zen {
} else { } else {
Write-Host "Folder '$folderPath' already exists." Write-Host "Folder '$folderPath' already exists."
} }
Write-Host "Downloading Policy" Write-Host "Downloading Policy" -ForegroundColor Yellow
$download = "https://git.tcmeta.net/kurtis/win11-scripts/raw/branch/main/vargscript/zen-policy.json" $download = "https://git.tcmeta.net/kurtis/win11-scripts/raw/branch/main/vargscript/zen-policy.json"
Invoke-WebRequest $download -Out "$folderPath\policies.json" Invoke-WebRequest $download -Out "$folderPath\policies.json"
} }
function Install-FlowLauncher { function Install-FlowLauncher {
Write-Host "Installing Flow Launcher" Write-Host "Installing Flow Launcher" -ForegroundColor Yellow
winget install Flow-Launcher.Flow-Launcher winget install Flow-Launcher.Flow-Launcher
} }
@@ -37,28 +37,28 @@ function Config-FlowLauncher {
} else { } else {
Write-Host "Folder '$folderPath' already exists." Write-Host "Folder '$folderPath' already exists."
} }
Write-Host "Downloading Theme" Write-Host "Downloading Theme" -ForegroundColor Yellow
$download = "https://git.tcmeta.net/kurtis/win11-scripts/raw/branch/main/vargscript/flow-95theme.xaml" $download = "https://git.tcmeta.net/kurtis/win11-scripts/raw/branch/main/vargscript/flow-95theme.xaml"
Invoke-WebRequest $download -Out "$folderPath\Windows 95.xaml" Invoke-WebRequest $download -Out "$folderPath\Windows 95.xaml"
} }
function Install-NextCloud { function Install-NextCloud {
Write-Host "Installing Nextcloud" Write-Host "Installing Nextcloud" -ForegroundColor Yellow
winget install Nextcloud.NextcloudDesktop winget install Nextcloud.NextcloudDesktop
} }
function Install-SteamLink { function Install-SteamLink {
Write-Host "Installing Steamlink" Write-Host "Installing Steamlink" -ForegroundColor Yellow
winget install Valve.SteamLink winget install Valve.SteamLink
} }
function Install-Clink { function Install-Clink {
Write-Host "Installing Clink" Write-Host "Installing Clink" -ForegroundColor Yellow
winget install chrisant996.Clink winget install chrisant996.Clink
} }
function Install-Starship { function Install-Starship {
Write-Host "running Nerdfont installer" Write-Host "running Nerdfont installer" -ForegroundColor Yellow
$process = Start-Process powershell.exe -ArgumentList "& ([scriptblock]::Create((iwr 'https://to.loredo.me/Install-NerdFont.ps1')))" -PassThru $process = Start-Process powershell.exe -ArgumentList "& ([scriptblock]::Create((iwr 'https://to.loredo.me/Install-NerdFont.ps1')))" -PassThru
$process.WaitForExit() $process.WaitForExit()
winget install Starship.Starship winget install Starship.Starship
@@ -83,7 +83,7 @@ function Install-Starship {
} }
function Install-JaxCore { function Install-JaxCore {
Write-Host "Installing Jaxcore" Write-Host "Installing Jaxcore" -ForegroundColor Yellow
$process = Start-Process powershell.exe -ArgumentList "iwr -useb `"https://raw.githubusercontent.com/Jax-Core/JaxCore/master/CoreInstaller.ps1`" | iex" -PassThru $process = Start-Process powershell.exe -ArgumentList "iwr -useb `"https://raw.githubusercontent.com/Jax-Core/JaxCore/master/CoreInstaller.ps1`" | iex" -PassThru
$process.WaitForExit() $process.WaitForExit()
Write-Host "Installing WeatherAddon" Write-Host "Installing WeatherAddon"
@@ -96,47 +96,47 @@ function Install-JaxCore {
} }
function Install-Cyberduck { function Install-Cyberduck {
Write-Host "Installing Cyberduck" Write-Host "Installing Cyberduck" -ForegroundColor Yellow
winget install Iterate.Cyberduck winget install Iterate.Cyberduck
} }
function Install-Bitwarden { function Install-Bitwarden {
Write-Host "Installing Bitwarden" Write-Host "Installing Bitwarden" -ForegroundColor Yellow
winget install Bitwarden.Bitwarden winget install Bitwarden.Bitwarden
} }
function Install-Discord { function Install-Discord {
Write-Host "Installing Discord" Write-Host "Installing Discord" -ForegroundColor Yellow
winget install Discord.Discord winget install Discord.Discord
} }
function Install-LibreOffice { function Install-LibreOffice {
Write-Host "Installing LibreOffice" Write-Host "Installing LibreOffice" -ForegroundColor Yellow
winget install TheDocumentFoundation.LibreOffice winget install TheDocumentFoundation.LibreOffice
} }
function Install-Gimp { function Install-Gimp {
Write-Host "Installing Gimp" Write-Host "Installing Gimp" -ForegroundColor Yellow
winget install GIMP.GIMP.3 winget install GIMP.GIMP.3
} }
function Install-Joplin { function Install-Joplin {
Write-Host "Installing Joplin" Write-Host "Installing Joplin" -ForegroundColor Yellow
winget install Joplin.Joplin winget install Joplin.Joplin
} }
function Install-PlexAmp { function Install-PlexAmp {
Write-Host "Installing Plexamp" Write-Host "Installing Plexamp" -ForegroundColor Yellow
winget install Plex.Plexamp winget install Plex.Plexamp
} }
function Install-WindowsTerminal { function Install-WindowsTerminal {
Write-Host "Installing Windows Terminal" Write-Host "Installing Windows Terminal" -ForegroundColor Yellow
winget install Microsoft.WindowsTerminal winget install Microsoft.WindowsTerminal
} }
function Config-WindowsTerminal { function Config-WindowsTerminal {
Write-Host "Configuring Windows Terminal" Write-Host "Configuring Windows Terminal" -ForegroundColor Yellow
$folderPath = "$ENV:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState" $folderPath = "$ENV:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState"
if (-not (Test-Path $folderPath -PathType Container)) { if (-not (Test-Path $folderPath -PathType Container)) {
New-Item -Path $folderPath -ItemType Directory -Force New-Item -Path $folderPath -ItemType Directory -Force
@@ -149,26 +149,78 @@ function Config-WindowsTerminal {
} }
function Install-VSCode { function Install-VSCode {
Write-Host "Installing VSCode" Write-Host "Installing VSCode" -ForegroundColor Yellow
winget install Microsoft.VisualStudioCode winget install Microsoft.VisualStudioCode
} }
function Install-Git { function Install-Git {
Write-Host "Installing GIT" Write-Host "Installing GIT" -ForegroundColor Yellow
winget install Git.Git winget install Git.Git
} }
function Install-SSHCLient { function Install-SSHCLient {
Write-Host "Installing OpenSSH Client" Write-Host "Installing OpenSSH Client" -ForegroundColor Yellow
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0 Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
} }
function Install-Mattermost { function Install-Mattermost {
Write-Host "Installing Mattermost" Write-Host "Installing Mattermost" -ForegroundColor Yellow
winget install Mattermost.MattermostDesktop winget install Mattermost.MattermostDesktop
} }
function Install-Hoarder {
Write-Host "Installing Hoarder" -ForegroundColor Yellow
$download = "https://git.tcmeta.net/kurtis/win11-scripts/raw/branch/main/vargscript/Hoarder.msi"
$tempPath = Join-Path $env:TEMP "Hoarder.msi"
Invoke-WebRequest $download -Out $tempPath
Start-Process 'msiexec.exe' -ArgumentList "/I `"$tempPath`" /qn" -Wait
Remove-Item $tempPath -Force
}
function Install-HomeBox {
Write-Host "Installing HomeBox" -ForegroundColor Yellow
$download = "https://git.tcmeta.net/kurtis/win11-scripts/raw/branch/main/vargscript/Homebox.msi"
$tempPath = Join-Path $env:TEMP "Homebox.msi"
Invoke-WebRequest $download -Out $tempPath
Start-Process 'msiexec.exe' -ArgumentList "/I `"$tempPath`" /qn" -Wait
Remove-Item $tempPath -Force
}
function Install-LubeLogger {
Write-Host "Installing LubeLogger" -ForegroundColor Yellow
$download = "https://git.tcmeta.net/kurtis/win11-scripts/raw/branch/main/vargscript/LubeLogger.msi"
$tempPath = Join-Path $env:TEMP "LubeLogger.msi"
Invoke-WebRequest $download -Out $tempPath
Start-Process 'msiexec.exe' -ArgumentList "/I `"$tempPath`" /qn" -Wait
Remove-Item $tempPath -Force
}
function Install-Mealie {
Write-Host "Installing Mealie" -ForegroundColor Yellow
$download = "https://git.tcmeta.net/kurtis/win11-scripts/raw/branch/main/vargscript/Mealie.msi"
$tempPath = Join-Path $env:TEMP "Meali.msi"
Invoke-WebRequest $download -Out $tempPath
Start-Process 'msiexec.exe' -ArgumentList "/I `"$tempPath`" /qn" -Wait
Remove-Item $tempPath -Force
}
function Install-Messages {
Write-Host "Installing Messages" -ForegroundColor Yellow
$download = "https://git.tcmeta.net/kurtis/win11-scripts/raw/branch/main/vargscript/Messages.msi"
$tempPath = Join-Path $env:TEMP "Messages.msi"
Invoke-WebRequest $download -Out $tempPath
Start-Process 'msiexec.exe' -ArgumentList "/I `"$tempPath`" /qn" -Wait
Remove-Item $tempPath -Force
}
function Install-Messenger {
Write-Host "Installing Messenger" -ForegroundColor Yellow
$download = "https://git.tcmeta.net/kurtis/win11-scripts/raw/branch/main/vargscript/Messenger.msi"
$tempPath = Join-Path $env:TEMP "Messenger.msi"
Invoke-WebRequest $download -Out $tempPath
Start-Process 'msiexec.exe' -ArgumentList "/I `"$tempPath`" /qn" -Wait
Remove-Item $tempPath -Force
}
function Show-InteractiveMenu { function Show-InteractiveMenu {
param ( param (
@@ -220,6 +272,12 @@ do {
Install-Git Install-Git
Install-SSHCLient Install-SSHCLient
Install-Mattermost Install-Mattermost
Install-HomeBox
Install-Hoarder
Install-LubeLogger
Install-Mealie
Install-Messages
Install-Messenger
Pause Pause
} }
"2" { "2" {