Hello,
Please take a look at the
Conditionally create shortcut based on the user selection sample.
The only change is to use the
Windows 11 condition instead of the user selection condition. VersionNT64 = 1100 corresponds to Windows 11.
Let us know if you have any questions.
Best regards,
Liviu
FOLLOW US