Skip to content

Commit dc37938

Browse files
authored
Merge pull request #955 from AgentTechnoman/patch-1
Simplify Windows install command
2 parents 0f023d2 + 6ed959b commit dc37938

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Server/Components/Pages/Deploy.razor

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,7 @@
283283
private void SetScriptContent()
284284
{
285285
_windowsScript =
286-
$"Invoke-WebRequest -Uri '{NavMan.BaseUri}api/ClientDownloads/WindowsInstaller/{_organizationId}' -OutFile \"${{env:TEMP}}\\Install-Remotely.ps1\" -UseBasicParsing;" +
287-
"Start-Process -FilePath 'powershell.exe' -ArgumentList (\"-executionpolicy\", \"bypass\", \"-f\", \"${env:TEMP}\\Install-Remotely.ps1\") -Verb RunAs;";
286+
$"irm '{NavMan.BaseUri}api/ClientDownloads/WindowsInstaller/{_organizationId}'|iex";
288287

289288
_ubuntuScript = GetLinuxScript("UbuntuInstaller-x64");
290289

@@ -334,4 +333,4 @@
334333
}
335334
}
336335

337-
}
336+
}

0 commit comments

Comments
 (0)