I tried to mark the fixlet action for servers as “pending to reboot” instead of fixed .
My action script as follows ::
if {not exists keys whose (value “DisplayName” of it as string starts with “Microsoft Visual C++ 2015-2022 Redistributable (x64)” AND value “DisplayVersion” of it as string >= “11.12.14423.0”) of keys “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall” of ( x64 registries; x32 registries )}
prefetch 20068efb77ea99b972ca4d0f87b93ec9fdcea7e4 sha1:20068efb77ea99b972ca4d0f87b93ec9fdcea7e4 size:25389860 http://bfroot.com:52311/Uploads/20068efb77ea99b972ca4d0f87b93ec9fdcea7e4/VC_redist.x64.exe.tmp sha256:a2908bb5a2d63eed3f99ef1cda3e771b484caa9da3dbfee8324685f8af6ad68d
extract 20068efb77ea99b972ca4d0f87b93ec9fdcea7e4
waithidden __Download\VC_redist.x64.exe /quiet /noreboot
endif
continue if {exit code of action = 0 or exit code of action = 3010}
if {exit code of action = 3010}
action requires restart “Microsoft Visual C++”
endif
The above action failed in the step while checking the condition " if {exit code of action = 3010} "
Please help me to correct the code/logic to manage the 3010 code error.
I have changed the code as below. However action staus marked as failed. Need logic to fix this .
if {not exists keys whose (value “DisplayName” of it as string starts with “Microsoft Visual C++ 2015-2022 Redistributable (x64)” AND value “DisplayVersion” of it as string >= “11.12.14423.0”) of keys “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall” of ( x64 registries; x32 registries )}
prefetch 20068efb77ea99b972ca4d0f87b93ec9fdcea7e4 sha1:20068efb77ea99b972ca4d0f87b93ec9fdcea7e4 size:25389860 http://bfroot.com:52311/Uploads/20068efb77ea99b972ca4d0f87b93ec9fdcea7e4/VC_redist.x64.exe.tmp sha256:a2908bb5a2d63eed3f99ef1cda3e771b484caa9da3dbfee8324685f8af6ad68d
extract 20068efb77ea99b972ca4d0f87b93ec9fdcea7e4
waithidden __Download\VC_redist.x64.exe /quiet /noreboot
action may require restart “20068efb77ea99b972ca4d0f87b93ec9fdcea7e4”
endif
Even I tried to change it as follows in the end of action script which action executes proper. However action marked as failed.
continue if {exit code of action = 0 or exit code of action = 3010}
action may require restart “20068efb77ea99b972ca4d0f87b93ec9fdcea7e4”
endif
If the logs indicate that all lines completed successfully and the exit code is zero, but the action is still marked as failed, it’s most likely due to the defined action success criteria. You should review and adjust the success criteria in the task to align with your expected outcome
.
2 Likes
Thanks a lot .It’s working as expected now. Will test it on prod and let you know.