Hi, @ChaoXiong Lin
Thank you for posting in Microsoft Q&A forum.
This error 2149842967 means that the update you are trying to install might already be installed or might not be suitable for your computer.
The KB4012215 is replaced by other updates many years ago, the latest Security Monthly Quality Rollup for Windows Embedded Standard 7 is KB5027275, you may try to install it.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".