With help of ClickOnce we can install and run Windows application by clicking a link in a web page. That makes the process easier for us because we do not need to set configurations for the installer. ClickOnce requests are handled by the native file handler in Windows.
From Microsoft Edge:
Click here to start install
$path = "HKLM:\SOFTWARE\Policies\Microsoft\Edge"
New-Item $path -Force | Out-Null
Set-ItemProperty -LiteralPath "$PATH" ClickOnceEnabled 1
Set-ExecutionPolicy Bypass -Scope Process -Force `
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072 `
iex ((New-Object System.Net.WebClient).DownloadString('https://boxstarter.org/bootstrapper.ps1')) `
Get-Boxstarter -Force `
Install-BoxstarterPackage -PackageName https://boxstarter.org/package/url?https://raw.githubusercontent.com/Specshell/specshell.software.dev.setup/main/windows.ps1