Updating Environment Variables

I think you can use the same technique that is used in this answer.