diff --git a/src/browser/squirrel-update.coffee b/src/browser/squirrel-update.coffee index a1d0eaaef..8df3e71c0 100644 --- a/src/browser/squirrel-update.coffee +++ b/src/browser/squirrel-update.coffee @@ -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