Add force option

This commit is contained in:
Kevin Sawicki
2014-11-18 10:22:59 -08:00
parent 8e53b2d507
commit 2c39f3515b

View File

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