Skip to content

Commit 7575da8

Browse files
committed
use 'start' command when install win32 drivers
1 parent 8368fa3 commit 7575da8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ResInstaller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,8 @@ export class ResInstaller {
453453
if (toolInfo.getDrvInstaller) {
454454
let drvExePath = toolInfo.getDrvInstaller();
455455
if (drvExePath) {
456-
drvExePath = outDir.path + File.sep + drvExePath;
457-
utility.runShellCommand(`install driver`, `start "${resourceName}" /MAX "${drvExePath}"`, undefined, true);
456+
const ok = await utility.execInternalCommand(`start "win32 driver: ${resourceName}" ".\\${drvExePath}"`, outDir.path);
457+
GlobalEvent.emit('globalLog.append', `\n=== install win32 driver '${drvExePath}' ${ok ? 'done' : 'failed'} ===\n\n`);
458458
}
459459
}
460460

0 commit comments

Comments
 (0)