Ich versuche, Rubin im Silent-Modus mit den Optionen unten durch Powershell erwähnt zu installieren:Ruby-Silent-Installation mithilfe von Powershell
echo "Installing Ruby 2.0.0"
$ruby_inst_process = Start-Process "C:\Users\guest_new\Downloads\rubyinstaller-2.0.0-p648-x64.exe" /silent /tasks='assocfiles,modpath' -PassThru -Wait
if ($ruby_inst_process -ne 0)
{
echo "Ruby 2.0.0 installation failed"
exit 0
}
ich die folgende Störung erhalte:
Start-Process : A positional parameter cannot be found that accepts argument '/tasks=assocfiles,modpath'.
+ ... t_process = Start-Process "C:\Users\guest_new\Downloads\rubyinstaller- ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Start-Process], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.StartProcessCommand
Ich bin nicht sicher wenn ich etwas vermisse oder einfach falsche Syntax verwende.
Argumente mit dem Parameter '-ArgumentList' übergeben. '$ ruby_inst_process = Start-Prozess" C: \ Benutzer \ Gast_neu \ Downloads \ rubyinstaller-2.0.0-p648-x64.exe "-ArgumentList"/silent/tasks = 'assoziationsdateien, modpath' "-PassThru -Wait' –
@ RyanBemrose: Das sollte eine Antwort sein, kein Kommentar. – Heinzi