From ad0d7873d6628c87694ab21f9f19f1dac11f6ac0 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Mon, 5 Dec 2022 17:22:07 +0100 Subject: [PATCH] Ignore error code 1638 in win installer for the vc_redist package --- .../windows/packages/io.nymea.nymeaapp/meta/installscript.qs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packaging/windows/packages/io.nymea.nymeaapp/meta/installscript.qs b/packaging/windows/packages/io.nymea.nymeaapp/meta/installscript.qs index 9c0e883c..5d26a087 100644 --- a/packaging/windows/packages/io.nymea.nymeaapp/meta/installscript.qs +++ b/packaging/windows/packages/io.nymea.nymeaapp/meta/installscript.qs @@ -13,7 +13,8 @@ changeLicenseLabels = function() Component.prototype.createOperations = function() { component.createOperations(); - component.addOperation("Execute", "@TargetDir@/vc_redist.x64.exe", "/quiet", "/norestart"); + // Ignoring return code 1638, which means a newer version of the redist is already installed + component.addOperation("Execute", "{0,1638}", "@TargetDir@/vc_redist.x64.exe", "/quiet", "/norestart"); if (systemInfo.productType === "windows") { component.addOperation("CreateShortcut", "@TargetDir@/nymea-app.exe", "@StartMenuDir@/nymea app.lnk", "workingDirectory=@TargetDir@", "iconPath=@TargetDir@/logo.ico",