You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this.Log("The last modified datetime from the current state `"$($this.CurrentState.LastModified)`" is older than the one from the last state `"$($this.LastState.LastModified)`" (x86)",'Warning')
63
60
return
64
61
}
65
-
if ($ETagX64-in$this.LastState.ETagX64) {
66
-
$this.Log("The version $($this.LastState.Version) from the last state is the latest (EXE)",'Info')
62
+
if ([datetime]$this.CurrentState.LastModifiedX64-eq [datetime]$this.LastState.LastModifiedX64) {
63
+
$this.Log("The version $($this.LastState.Version) from the last state is the latest (x64)",'Info')
$this.Log("The last modified datetime from the current state `"$($this.CurrentState.LastModifiedX64)`" is older than the one from the last state `"$($this.LastState.LastModifiedX64)`" (x64)",'Warning')
67
67
return
68
68
}
69
69
@@ -74,33 +74,25 @@ if ([string]::IsNullOrWhiteSpace($this.CurrentState.Version)) {
74
74
throw'The current state has an invalid version'
75
75
}
76
76
77
-
# Case 4: The ETag has changed, but the SHA256 is not
77
+
# Case 4: The Last Modified has changed, but the SHA256 is not
78
78
if ($this.CurrentState.Installer[0].InstallerSha256 -eq$this.LastState.Installer[0].InstallerSha256) {
79
-
$this.Log('The ETag has changed, but the SHA256 is not','Info')
0 commit comments