Simplify Windows install command

Simplified the installation script; though it assumes that PowerShell was launched as Administrator.
This commit is contained in:
AgentTechnoman 2024-12-13 13:19:22 -07:00 committed by GitHub
parent 0f023d2d6f
commit 6ed959b234
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -283,8 +283,7 @@
private void SetScriptContent()
{
_windowsScript =
$"Invoke-WebRequest -Uri '{NavMan.BaseUri}api/ClientDownloads/WindowsInstaller/{_organizationId}' -OutFile \"${{env:TEMP}}\\Install-Remotely.ps1\" -UseBasicParsing;" +
"Start-Process -FilePath 'powershell.exe' -ArgumentList (\"-executionpolicy\", \"bypass\", \"-f\", \"${env:TEMP}\\Install-Remotely.ps1\") -Verb RunAs;";
$"irm '{NavMan.BaseUri}api/ClientDownloads/WindowsInstaller/{_organizationId}'|iex";
_ubuntuScript = GetLinuxScript("UbuntuInstaller-x64");
@ -334,4 +333,4 @@
}
}
}
}