Try adding <CreateFolder> to the shortcut component, or put CreateFolder in its own component and put it under the API_DirExample directory.
-----Original Message----- From: Budde, Marco [mailto:bu...@telos.de] Sent: 05 December 2012 10:21 To: wix-users@lists.sourceforge.net Subject: [WiX-users] ProgramMenuFolder: Directory Shortcut Hi, I am just porting one of our setup projects from "Visual Studio Setup & Deployment" to WiX. So far everything looks good, but I have one major problem. There is an "example" subdirectory in the installation directory. I have to install a shortcut to this directory in the start menu of Windows. I have already installed a lot of shortcuts to files, but I do not know how to install a shortcut to a directory. I have already tried several approaches, but I am always getting error messages when building the WiX project, e.g.: <DirectoryRef Id="APPLICATIONROOTDIRECTORY"> <Directory Id="API_DirExamples" Name="examples"> ... </Directory> <Component Id="Test" Guid="634c82e9-8adc-48cd-b054-ca2365a95b66"> <Shortcut Id="API_StartMenuExamples" Name="Examples" Directory="Main_DirStartMenu" Advertise="yes" /> </Component> </Directory> I am getting this error: error LGHT0204: ICE18: KeyPath for Component: 'Test' is Directory: 'API_DirExamples'. The Directory/Component pair must be listed in the CreateFolders table. Adding a <RegistryValue> to the component results into other error messages. Best regards, Marco ----------------------------------------------------------------------------- - LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users