Advertised shortcut to a directory possible? - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

fossil
Posts: 13
Joined: Wed Sep 12, 2007 6:55 pm

Advertised shortcut to a directory possible?

I can make an advertised shortcut to a key file in Application Shortcut Folder with no problems. So when the shortcut is followed, the component and feature this file belongs to is installed on-demand. However, I cannot find the way to do the same if the shortcut target is a folder. Is this even possible in AI? Windows Installer does not seem to have such a restriction on advertised shortcuts.

I've tried changing the KeyPath of the containing component to ".", and that of course broke AI :wink:
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

For an advertised shortcut the Target column of the Shortcut table must specify a Feature identifier and the Component column must specify a Component with a non-null KeyPath.

However, a Component whose key path is a folder has a null KeyPath column and the shortcut will not be created by Windows Installer if it is set as advertised (Target column specifies a Feature).

In conclusion, it is not possible to create an advertised shortcut to a folder.

For more details see:
http://msdn2.microsoft.com/en-us/library/aa371847.aspx
http://msdn2.microsoft.com/en-us/library/aa368007.aspx

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”