Add Install Scripts (winget .NET 10 install) for the no-runtime case (held for next release)
RemSound is a .NET 10 app, so it can't install its own runtime — it can't start without it. A plain .cmd/.ps1 (which run on what's already in Windows) sidesteps that: double-click "Install Scripts\Install .NET for RemSound.cmd" and it winget-installs the .NET 10 Desktop Runtime (Microsoft.DotNet.DesktopRuntime.10), falling back to opening Microsoft's download page if winget is absent. Modelled on Andre Louis's accessible-sensor-readout Install_Scripts (his install .NET Framework 4.8 because SR is Framework; ours installs the .NET 10 Desktop Runtime RemSound needs). Bundled into the build + release zip via csproj Content + EnsureInstallScriptsPublished target. Manual Quick-start note points users here if RemSound won't start. Held for the next release. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
e710834458
commit
f9b3ed9e67
@@ -0,0 +1,33 @@
|
||||
# Installs the Microsoft .NET 10 Desktop Runtime that RemSound needs, via winget.
|
||||
# The .cmd next to this file is the easy one - just double-click it. This .ps1 is here for
|
||||
# people who prefer PowerShell; if Windows blocks it, run:
|
||||
# powershell -ExecutionPolicy Bypass -File ".\Install .NET for RemSound.ps1"
|
||||
|
||||
$downloadPage = 'https://dotnet.microsoft.com/download/dotnet/10.0'
|
||||
|
||||
Write-Host ''
|
||||
Write-Host 'RemSound needs the Microsoft .NET 10 Desktop Runtime to run.'
|
||||
Write-Host 'This will install it for you using winget (the Windows package manager).'
|
||||
Write-Host ''
|
||||
|
||||
$winget = Get-Command winget -ErrorAction SilentlyContinue
|
||||
if ($null -eq $winget) {
|
||||
Write-Host "winget isn't available on this PC (it comes with Windows 10 version 1809 or newer, and" -ForegroundColor Yellow
|
||||
Write-Host "Windows 11). Opening the manual download page - choose '.NET Desktop Runtime' for 'x64'." -ForegroundColor Yellow
|
||||
Start-Process $downloadPage
|
||||
Read-Host 'Press Enter to close'
|
||||
exit 1
|
||||
}
|
||||
|
||||
winget install --id Microsoft.DotNet.DesktopRuntime.10 -e --source winget --accept-package-agreements --accept-source-agreements
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
Write-Host ''
|
||||
Write-Host "The automatic install didn't finish. Opening the manual download page instead." -ForegroundColor Yellow
|
||||
Start-Process $downloadPage
|
||||
Read-Host 'Press Enter to close'
|
||||
exit 1
|
||||
}
|
||||
|
||||
Write-Host ''
|
||||
Write-Host 'All done. You can now run RemSound.exe.' -ForegroundColor Green
|
||||
Read-Host 'Press Enter to close'
|
||||
Reference in New Issue
Block a user