3

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

2 Answers 2

6

You can use START /WAIT like this:

$ START /WAIT pythoninstall.exe /quiet InstallAllUsers=1 PrependPath=1
Sign up to request clarification or add additional context in comments.

2 Comments

this wont work for me because im running it in a container
What is your container image?
5

This seems to work for me:

Start-Process -FilePath ./python-3.7.6-amd64.exe -ArgumentList "/quiet InstallAllUsers=1 PrependPath=1" -NoNewWindow -Wait

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.