I'm encountering an issue when replacing an installed program with a new one. Here's the scenario:
1. The original program places a shortcut on the desktop named "shortcut.lnk".
2. I've developed a new program that also places a shortcut named "shortcut.lnk" on the desktop, effectively replacing the old one.
3. The new program is designed to completely remove the old program upon installation.
However, upon uninstalling the old program, the desktop shortcut "shortcut.lnk" disappears along with it. This behavior is undesirable as it disrupts the user experience.
I'm seeking suggestions on how to ensure that the desktop shortcut remains intact when uninstalling the old program. Is there a way to accomplish this while still removing the old program completely?
Any insights or guidance on resolving this issue would be greatly appreciated. Thank you for your assistance!