vboxmanage path windows

This commit is contained in:
Sebastian Hildebrandt 2019-05-29 23:53:08 +02:00
parent e0570818eb
commit ed2e321487

View File

@ -617,7 +617,8 @@ function versions(callback) {
});
}
});
exec('vboxmanage -v 2>&1', function (error, stdout) {
const vboxmanagePath = _windows ? process.env.VBOX_INSTALL_PATH || process.env.VBOX_MSI_INSTALL_PATH + '\\VBoxManage.exe' + '" ' : 'vboxmanage';
exec(vboxmanagePath + ' -v 2>&1', function (error, stdout) {
if (!error) {
const vbox = stdout.toString().split('\n')[0] || '';
const parts = vbox.split('r');