You're always welcome, René!
I'm afraid this is the default behavior of the OS.
If you manually create a shortcut to a file, then replace that file (with the same name), this error will be displayed.
I think this is because Windows saves the details of the shortcut in the registry and maybe some information about the file is also saved and it sees that it is not the same file (e.g. the creation date has changed or been modified).

- taskbaricon.png (61.92 KiB) Viewed 2677 times
This happens with any other shortcut to any application.
Microsoft recommends against automatically pinning to Taskbar as part of the installation as this should always be the user's choice.
https://www.advancedinstaller.com/user- ... ialog.html
Let us know if you have any other questions.
Best regards,
Liviu
FOLLOW US
Get the latest news in Application Packaging