Reputation: 543
How can I run an installer of an independent program (exe file) from inside of my code? The idea in general is program which install other programs. Thanks! Barak
Upvotes: 1
Views: 46
Reputation: 314
use exec of node.js
const { exec } = require('child_process');
exec('path/to/exe', (error, stdout, stderr) => {
if (error) {
console.error(`exec error: ${error}`);
return;
}
console.log(`stdout: ${stdout}`);
console.log(`stderr: ${stderr}`);
});
Upvotes: 1