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>
42 lines
1.1 KiB
Batchfile
42 lines
1.1 KiB
Batchfile
@echo off
|
|
title Install .NET for RemSound
|
|
echo.
|
|
echo RemSound needs the Microsoft .NET 10 Desktop Runtime to run.
|
|
echo This will install it for you using winget (the Windows package manager).
|
|
echo.
|
|
|
|
where winget >nul 2>nul
|
|
if errorlevel 1 goto nowinget
|
|
|
|
winget install --id Microsoft.DotNet.DesktopRuntime.10 -e --source winget --accept-package-agreements --accept-source-agreements
|
|
if errorlevel 1 goto failed
|
|
|
|
echo.
|
|
echo All done. You can now run RemSound.exe.
|
|
echo.
|
|
echo Press any key to close this window.
|
|
pause >nul
|
|
exit /b 0
|
|
|
|
:nowinget
|
|
echo winget isn't available on this PC (it comes with Windows 10 version 1809 or newer,
|
|
echo and Windows 11). Falling back to the manual download.
|
|
goto manual
|
|
|
|
:failed
|
|
echo.
|
|
echo The automatic install didn't finish. Falling back to the manual download.
|
|
goto manual
|
|
|
|
:manual
|
|
echo.
|
|
echo Opening the official Microsoft download page. On it, choose
|
|
echo ".NET Desktop Runtime" for "x64", download and run it, then start RemSound.
|
|
echo.
|
|
echo https://dotnet.microsoft.com/download/dotnet/10.0
|
|
echo.
|
|
start "" "https://dotnet.microsoft.com/download/dotnet/10.0"
|
|
echo Press any key to close this window.
|
|
pause >nul
|
|
exit /b 1
|