Skip to content

Commit aa7efa2

Browse files
fix: utils imports (#329)
1 parent 633652a commit aa7efa2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/install-wad.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import _ from 'lodash';
44
import path from 'node:path';
55
import { tmpdir } from 'node:os';
66
import { log } from '../build/lib/logger.js';
7-
import { shellExec, downloadToFile } from '../build/lib/utils.js';
7+
import { runElevated, downloadToFile } from '../build/lib/utils.js';
88
import fs from 'node:fs/promises';
99

1010
const OWNER = 'microsoft';
@@ -168,9 +168,9 @@ async function installWad(version) {
168168
try {
169169
await downloadToFile(asset.url, installerPath);
170170
if (_.toLower(parsedName.ext) === EXT_MSI) {
171-
await shellExec('msiexec.exe', ['/i', installerPath, '/quiet', '/norestart']);
171+
await runElevated('msiexec.exe', ['/i', installerPath, '/quiet', '/norestart']);
172172
} else if (_.toLower(parsedName.ext) === EXT_EXE) {
173-
await shellExec(installerPath, ['/install', '/quiet', '/norestart']);
173+
await runElevated(installerPath, ['/install', '/quiet', '/norestart']);
174174
} else {
175175
throw new Error(`Unsupported WAD installer: ${asset.name}`);
176176
}

0 commit comments

Comments
 (0)