diff --git a/setupScriptInfo.ps1 b/setupScriptInfo.ps1 index 5fbb3b0..6e6398b 100644 --- a/setupScriptInfo.ps1 +++ b/setupScriptInfo.ps1 @@ -166,7 +166,8 @@ $shortcut.WorkingDirectory = (Get-Item $targetExePath).DirectoryName $shortcut.Save() choco install arduino -y choco install ganttproject -y -Start-Process -FilePath "msiexec.exe" -ArgumentList "/i (Join-Path $tmpPath EV3_Classroom_Windows_1.5.3_Global.msi) /qn" -Wait +$msiFilePath = Join-Path -Path $tmpPath -ChildPath "EV3_Classroom_Windows_1.5.3_Global.msi" +Start-Process -FilePath "msiexec.exe" -ArgumentList "/i `"$msiFilePath`" /qn" -Wait Expand-Archive -Path (Join-Path $tmpPath RobotProg.zip) -DestinationPath $env:ProgramFiles -Force $targetExePath = "C:\Program Files\RobotProg\RobotProg.exe" $shortcutPath = (Join-Path $env:PUBLIC "Desktop\RobotProg.lnk")