fix --add-to-path writing to the per-user instead of system environment

#86 Merged at e7019fe
Repository
ashkulz
Branch
default
Repository
anthony_tuininga
Branch
default
Author
  1. Ashish Kulkarni
Reviewers
Description

ALLUSERS=1 implies that installation always happens in a per-machine installation context. However, when updating the PATH additional flags are required to ensure that the system environment is updated as per https://msdn.microsoft.com/en-us/library/aa368369%28v=vs.85%29.aspx

   A package that is used for installation in the per-machine
   installation context should write environment variables to
   the machine's environment by including * in the Name column.

This is in line what CPython uses when generating the official MSI installer: https://hg.python.org/cpython/rev/4e9f1017355f#l2.9

Comments (3)