Add missing /v argument

This commit is contained in:
Kevin Sawicki
2014-11-18 13:10:29 -08:00
parent dc69b07045
commit 84232d76de

View File

@@ -13,7 +13,6 @@ fileKeyPath = 'HKCU\\Software\\Classes\\*\\shell\\Atom'
directoryKeyPath = 'HKCU\\Software\\Classes\\directory\\shell\\Atom'
backgroundKeyPath = 'HKCU\\Software\\Classes\\directory\\background\\shell\\Atom'
environmentKeyPath = 'HKCU\\Environment'
pathKeyPath = "#{environmentKeyPath}\\Path"
spawn = (command, args, callback) ->
spawnedProcess = ChildProcess.spawn(command, args)
@@ -86,7 +85,7 @@ updatePath = (callback) ->
console.log 'updating'
console.log segments.join(';')
args = ['add', pathKeyPath, segments.join(';'), '/f']
args = ['add', environmentKeyPath, '/v', 'Path', segments.join(';'), '/f']
spawnReg(args, callback)
exports.spawn = spawnUpdate