Skip to content

Commit

Permalink
Merge pull request #955 from AgentTechnoman/patch-1
Browse files Browse the repository at this point in the history
Simplify Windows install command
  • Loading branch information
dkattan authored Dec 13, 2024
2 parents 0f023d2 + 6ed959b commit dc37938
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 dc37938

Please sign in to comment.