mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Simplify Windows install command
Simplified the installation script; though it assumes that PowerShell was launched as Administrator.
This commit is contained in:
parent
0f023d2d6f
commit
6ed959b234
@ -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 @@
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user