mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Add force option
This commit is contained in:
@@ -42,15 +42,15 @@ installContextMenu = (callback) ->
|
||||
callback(error)
|
||||
|
||||
installFileMenu = ->
|
||||
args = [fileKeyPath, '/ve', '/d', 'Open with Atom']
|
||||
args = [fileKeyPath, '/ve', '/d', 'Open with Atom', '/f']
|
||||
spawnReg args, (error) ->
|
||||
return callback(error) if error?
|
||||
|
||||
args = [fileKeyPath, '/v', 'Icon', '/d', process.execPath]
|
||||
args = [fileKeyPath, '/v', 'Icon', '/d', process.execPath, '/f']
|
||||
spawnReg args, (error) ->
|
||||
return callback(error) if error?
|
||||
|
||||
args = ["#{fileKeyPath}\\command", '/ve', '/d', process.execPath]
|
||||
args = ["#{fileKeyPath}\\command", '/ve', '/d', process.execPath, '/f']
|
||||
spawnReg(args, callback)
|
||||
|
||||
installFileMenu(callback)
|
||||
|
||||
Reference in New Issue
Block a user