dist: Make Windows installer modify system %PATH%

Modify the system %PATH% environment variable instead of the current
user's %PATH% environment. The current user will be an admin user
that may not be the same user who originally started the installer.
Closes #17570.
This commit is contained in:
Mike Boutin 2014-09-26 17:58:01 -04:00
parent 5d653c17a6
commit 35f5a674d4

View file

@ -8,7 +8,7 @@
SetupIconFile=rust-logo.ico
AppName=Rust
AppVersion={#CFG_RELEASE}
AppCopyright=Copyright (C) 2006-2013 Mozilla Foundation, MIT license
AppCopyright=Copyright (C) 2006-2014 Mozilla Foundation, MIT license
AppPublisher=Mozilla Foundation
AppPublisherURL=http://www.rust-lang.org
VersionInfoVersion={#CFG_VERSION_WIN}
@ -43,7 +43,7 @@ Source: "tmp/dist/win/*.*" ; DestDir: "{app}"; Flags: ignoreversion recursesubdi
[Code]
const
ModPathName = 'modifypath';
ModPathType = 'user';
ModPathType = 'system';
function ModPathDir(): TArrayOfString;
begin