I have several inno setups with shared files. With the 'Sharedfile' flag a can make sure that the they only get uninstalled if they're no longer used.
However this is not working for shortcuts or icons as they are called in inno pointing to those files. shortcuts are always getting removed even if the target file is not getting uninstalled.
So is there something i'm missing? a flag for shortcuts?
or do you have some starting point on how to prevent this in code?
Thanks a lot
Thanks alot TLama this seems to be working:
I prevent my shard icons from being uninstalled with the 'uninsneveruninstall' flag.
Then in pascal, check if the file still exists if not manually delete the shortcut or folder:
Personally i think that inno setup should do this by default, checking if the installed shortcuts target is reference counted and use this value for the shortcut.
But anyhow thank you all very much and have a nice day.