question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

add a -yes-like parameter to start-process

See original GitHub issue

Summary of the new feature/enhancement

Sometimes I need to make installations that based on EXE files. usually , I just need to issue Start-Process -FilePath C:\path\to\file.exe -ArgumentList "/S" Then everything is on its way. Occasionally, some package does not support silent installation. It just pop up a dialog box and let me choose yes or no. So annoying and that’s why I hope developer to add a -yes-like parameter to start-process , that then help me answer all “yes/no” to yes.

Proposed technical implementation details (optional)

No idea, I am just a user.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
SeeminglySciencecommented, Jan 12, 2021

As someone who spends an unreasonable amount of their days fighting with bad installers, I definitely empathize with this.

There isn’t a good way to implement this though. At best it would be very inconsistent, and at worst quite dangerous.

1reaction
iSazonovcommented, Jan 12, 2021

You could experiment wit RedirectStandardInput parameter.

OP is referring to actual dialog windows rather than console prompts.

Who can understand them these bizarre installers? 😃 Sometimes I even have to repack them. Some installers understand a batch file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Start-Process (Microsoft.PowerShell.Management)
Starts one or more processes on the local computer. In this article. Syntax; Description; Examples; Parameters; Inputs; Outputs; Notes; Related Links ...
Read more >
Using Start-Process with -ArgumentList
My problem is that I get an error powershell.exe : Start-Process : A positional parameter cannot be found that accepts argument 'INSTALLDIR=D:\ ...
Read more >
powershell - How to add variables in a call to Start-Process
The solution from zett42 works: $Dest_Folder="DEV_Refresh" Start-Process -FilePath '\\<fileserver>\Bin\arapx' -argumentList ('acc, ...
Read more >
How to use Start-Process in PowerShell
Probably your first thought is to add the arguments between the quotes in the filepath, but as you might have noticed, that won't...
Read more >
Start Process Smart Service - Appian 23.3
This page provides guidance on how to use the Start Process Smart Service to initiate ... The Process Parameters property is a dictionary...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found