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:
parent
7e69fd6005
commit
024d705cce
@ -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") =
|
||||
|
Loading…
x
Reference in New Issue
Block a user