PDA

View Full Version : Leave Shortcut on Uninstall



kcfischer
07-07-2008, 09:58 AM
I have a component that I install permanently and create a shortcut to it during the installation. On uninstall, the component stays (good) but the shortcut is removed (bad). How do I make the shortcut permanent?

Adam
07-07-2008, 03:50 PM
Your best bet would be to use the 'Shortcuts' section and create the shortcut manually. You could then edit the component properties and choose 'permanent'. I don't see this to be possible using the built in shortcuts on the 'shortcuts' tab of a file reference.

Adam Kapilik

Lorne
07-07-2008, 06:49 PM
You could also try putting the shortcut action in that component (the one that isn't removed)...if the action is in the same component it should only be uninstalled when the whole component is uninstalled.

(As Adam pointed out, you may need to create a shortcut action "manually" in order to set it up this way.)

kcfischer
07-08-2008, 12:38 PM
Adam --Creating a separate shortcut and making it permanent solved the problem. I didn't know that a shortcut had a component behind it... now I do.

Lorne -- the shortcut was initially part of a component that is marked permanent. The exe was left by the unistall but the shortcut was not.

Thanks for your help!!