Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/install-wad.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import _ from 'lodash';
import path from 'node:path';
import { tmpdir } from 'node:os';
import { log } from '../build/lib/logger.js';
import { shellExec, downloadToFile } from '../build/lib/utils.js';
import { runElevated, downloadToFile } from '../build/lib/utils.js';
import fs from 'node:fs/promises';

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