Windows shell replacement in Rust: taskbar, file manager, NTFS search, task manager, disk cleaner. One installer exe.
Rust
# Rebuilds the plugins (cargo only recompiles what changed), refreshes payload\ and runs `plugin-launcher update`: no launcher rebuild.
# scripts\update-plugin.ps1 rust-search|rtaskmgr-win32|topbar|rust-explorer|wiztree|photoview|rust-settings|debloat
# Build + copy need no admin. The update step does: from a normal shell this script asks for it via a UAC prompt (the user clicks Yes),
# then prints the last lines of %ProgramData%\plugin-launcher\install.log (the elevated window's own output is lost).
param([Parameter(Mandatory)][ValidateSet('rust-search', 'rtaskmgr-win32', 'topbar', 'rust-explorer', 'wiztree', 'photoview', 'rust-settings', 'debloat')][string]$name)
$ErrorActionPreference = 'Stop'
$root = Split-Path $PSScriptRoot
& "$PSScriptRoot\build-plugins.ps1" # rebuilds what changed (and what ships with the plugin), refreshes payload\
$exe = "$root\target\release\plugin-launcher.exe"
if (-not (Test-Path $exe)) { throw "build the launcher once first: cargo build --release in $root" }
# Started through explorer.exe, never as our child: from a packaged app (the Claude desktop app is MSIX) every child process,
# the elevated launcher included, writes HKCU into the package's private copy of the registry, which the real session
# never sees (Run keys, ReplaceExplorer, folder verbs were silently lost that way). Explorer asks for admin (UAC) itself.
$log = "$env:ProgramData\plugin-launcher\install.log"
$before = if (Test-Path $log) { @(Get-Content $log -Encoding UTF8).Count } else { 0 }
$lnk = "$root\target\update-$name.lnk"
$s = (New-Object -ComObject WScript.Shell).CreateShortcut($lnk); $s.TargetPath = $exe; $s.Arguments = "update $name"; $s.Save()
Start-Process explorer.exe -ArgumentList "`"$lnk`""
# explorer returns at once: wait for the launcher's verdict in the log (the user may take a while to answer UAC)
$deadline = (Get-Date).AddMinutes(5)
do {
Start-Sleep 2
$new = if (Test-Path $log) { @(Get-Content $log -Encoding UTF8 | Select-Object -Skip $before) } else { @() }
} until (($new -match "^\[\d+\] ${name}: ") -or (Get-Date) -gt $deadline)
Remove-Item $lnk -ErrorAction SilentlyContinue
if (-not ($new -match "^\[\d+\] ${name}: ")) { Write-Warning "no result in $log after 5 minutes (UAC declined?)" }
$new | Select-Object -Last 4