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
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)
Please log in to answer
Posted by:
AngelD
17 years ago
Posted by:
nheim
17 years ago
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
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
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.
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.
so that the conversation will remain readable.