1

I'm creating one-click python installer (integrated with my application). Is there any way to force Python MSI installer to add python's path to SYSTEM PATH variable? I'm using MSI installer because it is very easy to specify (using command line) how it should interact with the user.

2 Answers 2

0

User variables are stored in the Windows Registry under HKEY_CURRENT_USER\Environment

I would use winreg in a post install script to set or add to the PATH there.

http://docs.python.org/library/_winreg.html

Sign up to request clarification or add additional context in comments.

Comments

0

There has to be a way, but what some people do is provide batch files that set up the environment before invoking Python. That's what BZR does, anyway. If you can write that batch file somewhere that's already normally in the path, so much the better.

If you're just worried about invoking Python, the normal Python installer does file associations, so you can work it that way.

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.