Bump Active Setup version on install only

Otherwise, "msiexec /fu" keeps triggering on each user logon.

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2020-01-03 12:50:25 +01:00
parent 7e69fd6005
commit 024d705cce

View File

@ -37,10 +37,12 @@ try {
version = "0";
}
if (Session.EvaluateCondition("NOT Installed") == 1/*msiEvaluateConditionTrue*/) {
// Increment the last version component.
var v = version.split(",").slice(0, 4);
v[v.length - 1] = (parseInt(v[v.length - 1], 10) + 1).toString();
version = v.join(",");
}
// Save the data for deferred action.
Session.Property("PublishActiveSetup") =