Skip to content

Commit

Permalink
fix cpu check
Browse files Browse the repository at this point in the history
  • Loading branch information
itviewer committed May 18, 2024
1 parent 1914bb9 commit c9fa35a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion installer/packages/root/meta/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Component.prototype.createOperations = function()

// https://forum.qt.io/topic/87431/how-could-we-detect-users-vcredist-installed-when-using-qt-installer-framework/4
// https://doc.qt.io/qtinstallerframework/scripting-systeminfo.html#buildCpuArchitecture-prop
if (systemInfo.buildCpuArchitecture === "x86_64") {
if (systemInfo.currentCpuArchitecture === "x86_64") {
component.addElevatedOperation("Execute", "{0,3010,1638,5100}", "@TargetDir@/vc_redist.x64.exe", "/norestart", "/q");
} else {
component.addElevatedOperation("Execute", "{0,3010,1638,5100}", "@TargetDir@/vc_redist.arm64.exe", "/norestart", "/q");
Expand Down

0 comments on commit c9fa35a

Please sign in to comment.