Thank you for posting in Microsoft Q&A forum.
Generally speaking, the exit code 0 means the SCCM agent has been pushed successfully. Return code 7 means "Reboot required". Based on my research, many situation may cause this code. This could be a pending system reboot that is required or as Jason mentioned it could be .NET Framework installer that requesting a reboot. At this situation, we could push apps/software updates after rebooting the client machine (Please check if the exit code returns to 0 in CcmSetup.log).
Please refer to Jason's excellent blog for more details:
https://home.memftw.com/ugh-ccmsetup-error-codes/
Have a good day!
If the response is helpful, please click "Accept Answer" and up vote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.