mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Use setx to set path
This commit is contained in:
@@ -86,7 +86,7 @@ updatePath = (callback) ->
|
||||
|
||||
addBinToPath = (envSegments, callback) ->
|
||||
envSegments.push(binFolder)
|
||||
args = ['add', environmentKeyPath, '/v', 'Path', '/d', envSegments.join(';'), '/f']
|
||||
args = ['setx', 'Path', envSegments.join(';')]
|
||||
spawnReg(args, callback)
|
||||
|
||||
installCommands (error) ->
|
||||
|
||||
Reference in New Issue
Block a user