Hello,
Welcome to Microsoft Q&A!
Hope this method should help you.
Run scripts with the Package Support Framework
You can use powershell Get-ItemProperty
to determine whether the user's operating environment needs to be installed.
Check if pv(REG_SZ) regkey exists and is not null or empty.
Find pv(REG_SZ) at: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}
Thank you.
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 "Comment".
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.