Use setx to set path

This commit is contained in:
Kevin Sawicki
2014-11-18 13:39:53 -08:00
parent ed23058af0
commit a36eae8e4d

View File

@@ -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) ->