Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install python from command line and wait till finished

The docs have this command: pythoninstall.exe /quiet InstallAllUsers=1 PrependPath=1

But that just kicks off a background process, I want to script this and run other commands after the install is finished. How can run this as a background process?

Edit: wound up using PS: Start-Process <path to exe> -NoNewWindow -Wait

like image 860
red888 Avatar asked Feb 14 '26 03:02

red888


1 Answers

You can use START /WAIT like this:

$ START /WAIT pythoninstall.exe /quiet InstallAllUsers=1 PrependPath=1
like image 167
Ramazan Polat Avatar answered Feb 15 '26 16:02

Ramazan Polat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!