add vmware-workstation-pro install script and README section

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XFn3QekarqiDEYnrbupCyz
This commit is contained in:
Jonas8272andClaude Sonnet 5.5 committed 2026-11-22 18:25:52 +00:00
1 parent 6089c0b66d
commit 91dd40fda3
2 files changed
+115 -4

No files matched your search

+24 -4
View File
@@ -43,17 +43,17 @@ This does the same setup and then installs all the apps listed below:
irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-all.ps1 | iex irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-all.ps1 | iex
``` ```
Apps that need administrator rights (FxSound) are skipped unless you run it from an elevated PowerShell. To choose which apps to install, download the script and pass `-Only` or `-Exclude`: Apps that need administrator rights (FxSound and VMware Workstation Pro) are skipped unless you run it from an elevated PowerShell. To choose which apps to install, download the script and pass `-Only` or `-Exclude`:
```powershell ```powershell
irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-all.ps1 -OutFile install-all.ps1 irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-all.ps1 -OutFile install-all.ps1
.\install-all.ps1 -Exclude fxsound .\install-all.ps1 -Exclude fxsound,vmware-workstation-pro
.\install-all.ps1 -Only mornye,socialstreamninja .\install-all.ps1 -Only mornye,socialstreamninja
``` ```
### Install a single app with a script ### Install a single app with a script
Every app also has its own script (`install-<app>.ps1`) in the [`installations`](installations) folder. It does the same setup as above (Scoop, git and the bucket, only if missing) and then installs just that app. The one-liner for each app is in its section below. Run it in a normal (non-admin) PowerShell window, except for FxSound, which needs an elevated one. Every app also has its own script (`install-<app>.ps1`) in the [`installations`](installations) folder. It does the same setup as above (Scoop, git and the bucket, only if missing) and then installs just that app. The one-liner for each app is in its section below. Run it in a normal (non-admin) PowerShell window, except for FxSound and VMware Workstation Pro, which need an elevated one.
> **Tip:** Read a script before you run it. All scripts are in the `installations` folder of this repository. > **Tip:** Read a script before you run it. All scripts are in the `installations` folder of this repository.
@@ -165,6 +165,26 @@ irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/
> **Note:** This one is installed through winget. Edge is already built into Windows, so this usually just reports that it is installed. Edge updates itself, not `scoop update`. > **Note:** This one is installed through winget. Edge is already built into Windows, so this usually just reports that it is installed. Edge updates itself, not `scoop update`.
## Installing vmware-workstation-pro
VMware Workstation Pro 26H1u1 (build 25688693): run virtual machines on Windows.
```powershell
scoop install Jonas8272/vmware-workstation-pro
```
Or set up everything and install it with one script (from an elevated PowerShell):
```powershell
irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-vmware-workstation-pro.ps1 | iex
```
> **Note:** VMware installs drivers and virtual network adapters, so run PowerShell as administrator for this one. The script stops with a message if it is not elevated, and you may need to restart Windows afterwards.
> **Note:** The installer (about 267 MB) is downloaded from the [`vmwareworkstationarchive`](https://archive.org/details/vmwareworkstationarchive) item on archive.org, a third-party upload of Broadcom's installer. The download is checked against a pinned SHA-256 hash, and the file's digital signature was verified as Broadcom Inc. VMware is proprietary software, so Broadcom's licence terms apply.
> **Note:** There is no autoupdate for this one. New builds only appear in that archive when its owner uploads them, so the version, URL and hash in `bucket/vmware-workstation-pro.json` are updated by hand.
## Updating ## Updating
Update Scoop and its bucket manifests: Update Scoop and its bucket manifests:
@@ -202,4 +222,4 @@ scoop bucket rm Jonas8272
## License ## License
See the repository for licensing information. See the repository for licensing information.
@@ -0,0 +1,91 @@
<#
.SYNOPSIS
Installs VMware Workstation Pro from the Jonas8272 bucket. Sets up Scoop,
git and the bucket first if they are missing.
.DESCRIPTION
VMware Workstation installs drivers and virtual network adapters, so this
script must be run from an elevated PowerShell (right-click PowerShell,
then "Run as administrator"). A reboot is probably needed afterwards.
If Scoop is not installed yet, it is installed in admin mode.
The installer (about 267 MB) is downloaded from the vmwareworkstationarchive
item on archive.org and checked against a pinned SHA-256 hash.
.EXAMPLE
irm https://codefloe.com/Jonas8272/scoop-bucket/raw/branch/master/installations/install-vmware-workstation-pro.ps1 | iex
#>
$ErrorActionPreference = 'Stop'
$App = 'vmware-workstation-pro'
$BucketName = 'Jonas8272'
$BucketUrl = 'https://codefloe.com/Jonas8272/scoop-bucket'
function Test-Command($name) {
return [bool](Get-Command $name -ErrorAction SilentlyContinue)
}
function Test-Admin {
$id = [Security.Principal.WindowsIdentity]::GetCurrent()
$principal = New-Object Security.Principal.WindowsPrincipal($id)
return $principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)
}
$scoopRoot = if ($env:SCOOP) { $env:SCOOP } else { Join-Path $env:USERPROFILE 'scoop' }
# 0. Administrator rights (VMware installs drivers) ---------------------------
if (-not (Test-Admin)) {
Write-Warning 'VMware Workstation installs drivers and network adapters, so this needs an elevated PowerShell. Right-click PowerShell, choose "Run as administrator", then run this script again.'
return
}
# 1. Scoop -------------------------------------------------------------------
if (-not (Test-Command 'scoop')) {
Write-Host 'Scoop not found. Installing Scoop...' -ForegroundColor Cyan
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
Invoke-Expression "& {$(Invoke-RestMethod -Uri 'https://get.scoop.sh')} -RunAsAdmin"
# Make scoop available in this session without reopening PowerShell
$env:PATH = "$scoopRoot\shims;$env:PATH"
if (-not (Test-Command 'scoop')) {
throw 'Scoop was installed but is not on PATH. Open a new PowerShell window and run this script again.'
}
} else {
Write-Host 'Scoop is already installed.' -ForegroundColor Green
}
# 2. git (needed to add buckets) ---------------------------------------------
if (-not (Test-Command 'git')) {
Write-Host 'git not found. Installing git through Scoop...' -ForegroundColor Cyan
scoop install git
if ($LASTEXITCODE -ne 0) { throw 'Failed to install git through Scoop.' }
$env:PATH = "$scoopRoot\shims;$env:PATH"
} else {
Write-Host 'git is already installed.' -ForegroundColor Green
}
# 3. Bucket ------------------------------------------------------------------
$existing = scoop bucket list | Where-Object {
$_.Name -eq $BucketName -or $_.Source -like '*Jonas8272/scoop-bucket*'
} | Select-Object -First 1
if ($existing) {
$BucketName = $existing.Name
Write-Host "Bucket '$BucketName' is already added. Updating it..." -ForegroundColor Green
scoop update
} else {
Write-Host "Adding bucket '$BucketName'..." -ForegroundColor Cyan
scoop bucket add $BucketName $BucketUrl
if ($LASTEXITCODE -ne 0) { throw "Failed to add bucket '$BucketName'." }
}
# 4. The app -----------------------------------------------------------------
Write-Host ''
Write-Host "Installing $App (about 267 MB download)..." -ForegroundColor Cyan
scoop install "$BucketName/$App"
if ($LASTEXITCODE -ne 0) { throw "Failed to install $App." }
Write-Host ''
Write-Host "Done. $App is installed. Restart Windows if VMware asks for it." -ForegroundColor Green