/build/static/layout/Breadcrumb_cap_w.png

Shortcut Repair

Hi guys.

In my MSI i have created a custom action to set a path the quick launch folder in the users profile.

My question is , is there a way when say a user deletes a shortcut out of the Quick Launch folder that the application will repair and put the shortcut back?

Any help anyone can give would be fab
.
Thanks

0 Comments   [ + ] Show comments

Answers (3)

Posted by: AngelD 17 years ago
Red Belt
0
If an entry point is invoked each component's keypath will be checked and if any is broken the shortcut will be repaired. This is true for the feature the component resides in and all parent feature of that feature.
Posted by: nheim 17 years ago
10th Degree Black Belt
0
Hi cjwallace,
AFAIK, this won't be possible, because you can't use such a link as key to a feature. In the users context, only registry entries are allowed as keys. Therefore, there is now way, how Windows Installer could detect the absence of the link.
If you do need that really, then you have to check it programatically.
I wouldn't do such things anyway, because the quick launch belongs to each user alone.
You don't need a custom action to put the link into quick launch, that can be done by a MSI alone.
Regards, Nick
Posted by: AngelD 17 years ago
Red Belt
0
I wouldn't say that it is not allowed... it's just a rule like many others ;)

But to make this happen you would have to add the shortcut .lnk file as a regular file to the package in its own component and then set that .lnk file as the keypath (You will get ICE error on this that you should use a registry keypath instead of file). One thing to have in mind is that the Quick Launch shortcut (.lnk) will only repair on regular users and not local admins.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ