asheroto / winget-install

Install winget tool using PowerShell! Prerequisites automatically installed. Works on Windows 10/11 and Server 2019/2022.
https://bit.ly/winget-install
GNU General Public License v3.0
272 stars 33 forks source link

[Request]: Waiting 5 seconds to exit when winget is already installed is not the best for automated installs #34

Closed ben-may closed 9 months ago

ben-may commented 10 months ago

Describe the feature or improvement you're requesting

Waiting 5 seconds to exit when winget is already installed is not the best for automated installs, could we have a parameter to override this? Not sure why it would need 5 seconds after its essentially done everything?

Thank-you!

Additional context

No response

asheroto commented 10 months ago

Agreed. I will create a new parameter to bypass this.

ben-may commented 10 months ago

Thanks!

asheroto commented 9 months ago

The original idea behind waiting several seconds is that if people ran it using Start->Run, or in another way, it would give the user a few seconds to observe the finished script output. But now that I think about it, this is kind of annoying for most people because many of us probably just use it from the command line and know how to observe the output anyway.

Now the script will not wait by default.

If you want to have the script wait a few seconds, you can specify -Wait and it will wait several seconds in order for the user to observe script output.

Thanks for your feedback!

ben-may commented 9 months ago

Excellent thank-you, I'm using this latest version now!