mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Cleanup #1275
This commit is contained in:
@@ -2,16 +2,11 @@ var fs = require('fs');
|
||||
var path = require('path');
|
||||
var runas = require('runas');
|
||||
|
||||
/* FIXME: C:\\Program Files\\ should comes from env variable
|
||||
And for 32 bit msdia80 is should be placed at %ProgramFiles(x86)% */
|
||||
var source = path.resolve(__dirname, '..', '..', 'vendor', 'breakpad', 'msdia80.dll');
|
||||
var target = 'C:\\Program Files\\Common Files\\Microsoft Shared\\VC\\msdia80.dll';
|
||||
if (fs.existsSync(target))
|
||||
return;
|
||||
|
||||
runas('cmd', ['/K',
|
||||
'copy', source, target,
|
||||
'&', 'regsvr32', '/s', target,
|
||||
'&', 'exit'],
|
||||
{admin:true}
|
||||
);
|
||||
runas('cmd',
|
||||
['/K', 'copy', source, target, '&', 'regsvr32', '/s', target, '&', 'exit'],
|
||||
{admin: true});
|
||||
|
||||
Reference in New Issue
Block a user