Unfortunately , there isn't a condition based on registry key check, than I included this check inside my inline powershell script but the if statement doesn't work.
this is my script to delete the shortcut (previously created at the begin of installation process with another script):
#Get ...
FOLLOW US
Get the latest news in Application Packaging