Major upgrade shortcuts disappear
Hello, I have a project that is a standard project major upgrade.
I create my shortcuts using AddFolderIcon in OnFirstUIAfter function.
When the install is run on a computer that has an older version to be updated, it uninstalls the older version just fine and runs the setup for the new version which also installs fine.
Problem is that it removes the old shortcuts automatically for the old version (probably as it should) and my script is run to re-add the shortcuts, however the uninstall doesn't actually remove the old shortcuts until the setup is completed.
What this means is that my old shortcuts are still there when my script attempts to re-add them so it doesn't, no problem, then *after* setup has completed and the final "finish" is clicked on, it then removes the old shortcuts.
In effect the upgrade results in no shortcuts anywhere.
I've found that if I use a different szItemName parameter in my new setup when I call AddFolderIcon then it all works because it creates new and different shortcuts and the old ones are removed, but I don't want to have to do that.
Any ideas? Is this a bug that it delays removing them so long after the uninstall was run for the old version?