We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02d48b7 commit 62ad9b3Copy full SHA for 62ad9b3
1 file changed
src/installer_windows.ts
@@ -101,12 +101,11 @@ export class WindowsInstaller implements Installer {
101
102
async test(_version: versions.Version): Promise<void> {
103
const msedgeBin = await io.which("msedge", true);
104
- await exec.exec("wmic", [
105
- "datafile",
106
- "where",
107
- `name="${msedgeBin.replace(/\\/g, "\\\\")}"`,
108
- "get",
109
- "version",
+ await exec.exec("powershell", [
+ "-NoProfile",
+ "-NonInteractive",
+ "-Command",
+ `(Get-Item (Get-Command '${msedgeBin}').Source).VersionInfo.ProductVersion`,
110
]);
111
}
112
0 commit comments