Thanks for your help. It seems I was being rather stupid, I was just doing <RemoveFolder Id=" FooBarProgramsFolder"> Because that's all I was doing with the other directory not realising that the other one worked because it was inside a <DirectoryRef> already. I needed to specify the Directory attribute explicitly.
Was staring at that for hours, I should read the documentation more closely I think. Thanks again Rich -----Original Message----- From: Blair [mailto:os...@live.com] Sent: 27 August 2009 01:36 To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Add to Existing ProgramsMenu Folder IIRC any component can put a RemoveFolder to any folder and have it found by the ICE. Are you sure your Component was linked in? -----Original Message----- From: Richard Hallett [mailto:richard.hall...@eduserv.org.uk] Sent: Wednesday, August 26, 2009 1:53 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Add to Existing ProgramsMenu Folder The problem is though you can only specify a RemoveFolder for the other directory within a component. I create shortcuts within a component underneath a <DirectoryRef> to "SpamEggsProgramsFolder" I can't put a <RemoveFolder id="FooBarProgramsFolder"> within that component because it will still complain about not being in the RemoveFile table. I tried to create a "dummy" component beneath a <DirectoryRef> to "FooBarProgramsFolder" but that threw up quite a few errors (I don't have them to hand as I'm not at work right now) but eitherway I feel like that isn't the right way to go about it. Perhaps I am missing something obvious about where to put the <RemoveFolder> Thanks Rich ________________________________________ From: Alexander Shevchuk (Volt) [a-ale...@microsoft.com] Sent: 26 August 2009 18:38 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Add to Existing ProgramsMenu Folder <RemoveFolder> will delete only empty folders. If your shortcut is not the last in the FooBarProgramsFolder, it won't be deleted on your product uninstall. Alex -----Original Message----- From: Richard Hallett [mailto:richard.hall...@eduserv.org.uk] Sent: Wednesday, August 26, 2009 9:03 AM To: 'wix-users@lists.sourceforge.net' Subject: [WiX-users] Add to Existing ProgramsMenu Folder Hi, I need to add a Start Menu shortcut to an existing folder within the ProgramsMenu instead of creating a new Folder within the ProgramsMenu. For example say there is a folder called "FooBar" already existing within The ProgramsMenu and I want to create a sub folder SpamEggs within it. My assumption was to do create a Directory structure like the following. <Directory Id="ProgramMenuFolder"> <Directory Id="FooBarProgramsFolder" Name="FooBar"> <Directory Id="SpamEggsProgramsFolder" Name="SpamEggs"/> </Directory> </Directory> And then I would reference SpamEggsProgramsFolder for creating my shortcuts within a Component later on. This unfortunately gives me the following error: ICE64: The directory FooBarProgramsFolder is in the user profile but is not listed in the RemoveFile table. I don't actually want to remove the existing folder with my install as it's separate. I suppose another example for this might be if I wanted to install to the accessories directory. I have looked through the docs but can't seem to find any example for adding to existing directory structures. Any help on this would be great. Thanks Rich ________________________________ Eduserv has moved office! For details visit www.eduserv.org.uk/contacts ---------------------------------------------------------------------------- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users Eduserv has moved office! For details visit www.eduserv.org.uk/contacts ---------------------------------------------------------------------------- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users Eduserv has moved office! For details visit www.eduserv.org.uk/contacts ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users