@@ -4,7 +4,7 @@ import _ from 'lodash';
44import path from 'node:path' ;
55import { tmpdir } from 'node:os' ;
66import { log } from '../build/lib/logger.js' ;
7- import { shellExec , downloadToFile } from '../build/lib/utils.js' ;
7+ import { runElevated , downloadToFile } from '../build/lib/utils.js' ;
88import fs from 'node:fs/promises' ;
99
1010const 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