Skip to content

Commit

Permalink
Simplify Windows install command
Browse files Browse the repository at this point in the history
Simplified the installation script; though it assumes that PowerShell was launched as Administrator.
  • Loading branch information
AgentTechnoman authored Dec 13, 2024
1 parent 0f023d2 commit 6ed959b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Server/Components/Pages/Deploy.razor
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down Expand Up @@ -334,4 +333,4 @@
}
}

}
}

0 comments on commit 6ed959b

Please sign in to comment.