Chances are the folders aren't empty so the RemoveFolder won't end up doing anything. However, this seems like one of those cases to document and ignore the ICE advice. Trying to remove system folders seems to trump the (IMHO) blind ICE.
Little Forest wrote: > Thanks Rob for your reply. > > I did read that post you made. Actually, I'm using that for our uninstall > shortcut. Thanks for that. > > For the QuickLaunch, however, I do have "RemoveFolder" in the component. But > I still get ICE64 error. > > Here I'd like to post my code again: > <Directory Id="AppDataFolder"> > <Directory Id="Microsoft" Name="Microsoft"> > <Directory Id="InternetExplorer" Name="Internet Explorer"> > <Directory Id="QuickLaunchFolder" Name="Quick Launch" > > </Directory> > </Directory> > </Directory> > </Directory> > > ...... ... > <DirectoryRef Id="QuickLaunchFolder"> > <Component Id="QuickLaunchShortcut" > Guid="32AB3786-02F5-45C8-9E6F-04A6041EB4FF"> > <Condition>INSTALLQUICKLAUNCHSHORTCUT</Condition> > <RegistryKey Root="HKCU" Key="MyCompany\MyApp" > Action="createAndRemoveOnUninstall"> > <RegistryValue Name="QuickLaunchSC" Value="1" Type="integer" > KeyPath="yes"/> > </RegistryKey> > <Shortcut Id="QuickLaunchShortcut" Directory="QuickLaunchFolder" > Name="My App" ShortName="MyApp" > Target="[INSTALLLOCATION]$(var.FileOutput)"/> > <RemoveFolder Id="RemoveQuickLaunchFolder" On="uninstall"/> > </Component> > </DirectoryRef> > > As what you can see, I do have "RemoveFolder" in the QuickLuanchShortcut > component. But I got errors when compile/link: > error LGHT0204: ICE64: The directory InternetExplorer is in the user profile > but is not listed in the RemoveFile table. > error LGHT0204: ICE64: The directory Microsoft is in the user profile but is > not listed in the RemoveFile table. > > The problem is, the compiler/linker complains the "InternetExplorer" and > "Microsoft" directory. > > So I made another effort - I added two more components for these two folders: > <DirectoryRef Id="InternetExplorer"> > <Component Id="RemoveIEFolder" > Guid="134BA283-0ADA-444E-8348-829C61099CDB"> > <RemoveFolder Id="RemoveIEFolder" On="uninstall"/> > </Component> > </DirectoryRef> > > <DirectoryRef Id="Microsoft"> > <Component Id="RemoveMSFolder" > Guid="F1F366ED-2145-4B7A-9571-1C34C665BAF4"> > <RemoveFolder Id="RemoveMSFolder" On="uninstall"/> > </Component> > </DirectoryRef> > .... > <ComponentRef Id="RemoveIEFolder" /> > <ComponentRef Id="RemoveMSFolder" /> > > I compiled and linked.. it seems working. > > But the problem is, these code try to remove the system folder which we > really shouldn't do. Just like what Neil ever said "To be honest I chose not > to include the RemoveFolder elements as it didn't seem correct to potentially > remove system folders"(in his post on Feb 04, 2009), I worry about if I'm > doing the right thing? Is there any risk or problem if I remove these system > folder? > > Thanks you all. > > /Brian > > > > > > ________________________________ > From: Rob Mensching <rob.mensch...@microsoft.com> > To: General discussion for Windows Installer XML toolset. > <wix-users@lists.sourceforge.net> > Sent: Tuesday, February 10, 2009 5:14:03 PM > Subject: Re: [WiX-users] WiX 3.0: how to create Quick Launch shortcut and > Desktop shortcut? > > Have you seen: > http://robmensching.com/blog/posts/2007/4/27/How-to-create-an-uninstall-shortcut-and-pass-all-the? > > > -----Original Message----- > From: Little Forest [mailto:little.for...@ymail.com] > Sent: Tuesday, February 10, 2009 14:46 > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] WiX 3.0: how to create Quick Launch shortcut and > Desktop shortcut? > > Thanks Neil. > > I ignored the ICE64. The Quick Launch shortcut got created. > > But the problem is, we're going to attend "Microsoft Vista Certified" > program soon. That means, sooner or later we'll have to fix this ICE64 > issue. Otherwise, we can't pass MS's test. I spent hours in searching a > solution. But it seems there is no decent solution for this "Quick Launch > shortcut" thing. > > So I'm asking the community again: > Is there any way that I can create the Quick Launch shortcut but not violate > ICE64? > > Thank you all. > > /Brian > > > > ________________________________ > From: Neil Sleightholm <n...@x2systems.com> > To: General discussion for Windows Installer XML toolset. > <wix-users@lists.sourceforge.net> > Sent: Wednesday, February 4, 2009 12:00:10 AM > Subject: Re: [WiX-users] WiX 3.0: how to create Quick Launch shortcut and > Desktop shortcut? > > To be honest I chose not to include the RemoveFolder elements as it didn't > seem correct to potentially remove system folders and then I ignored the > ICE64! > > Neil > > Neil Sleightholm > X2 Systems Limited > n...@x2systems.com <mailto:n...@x2systems.com> > > > ________________________________ > > From: Little Forest [mailto:little.for...@ymail.com] > Sent: Wed 04/02/2009 00:18 > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] WiX 3.0: how to create Quick Launch shortcut and > Desktop shortcut? > > > > Thanks Neil. > > After hours searching, I found out this: > http://www.dizzymonkeydesign.com/blog/misc/adding-and-customizing-dlgs-in-wi > x-3/ > I followed the instructions in the post above, and I added Desktop Shortcut > support successful. > But, when I tried to followed the same way to add "Quick Launch shortcut", I > got problems: > ICE64 > Here is the code: > <Directory Id="AppDataFolder"> > <Directory Id="Microsoft" Name="Microsoft"> > <Directory Id="InternetExplorer" Name="Internet Explorer"> > <Directory Id="QuickLaunchFolder" Name="Quick Launch" > > </Directory> > </Directory> > </Directory> > </Directory> > > ...... ... > <DirectoryRef Id="QuickLaunchFolder"> > <Component Id="QuickLaunchShortcut" > Guid="32AB3786-02F5-45C8-9E6F-04A6041EB4FF"> > <Condition>INSTALLQUICKLAUNCHSHORTCUT</Condition> > <RegistryKey Root="HKCU" Key="MyCompany\MyApp" > Action="createAndRemoveOnUninstall"> > <RegistryValue Name="QuickLaunchSC" Value="1" Type="integer" KeyPath="yes"/> > </RegistryKey> > <Shortcut Id="QuickLaunchShortcut" Directory="QuickLaunchFolder" > Name="My App" ShortName="MyApp" > Target="[INSTALLLOCATION]$(var.FileOutput)"/> > <RemoveFolder Id="RemoveQuickLaunchFolder" On="uninstall"/> > </Component> > </DirectoryRef> > > > > > As you can see, I did add RemoveFolder for Component.But the compiler > complaint that: > error LGHT0204: ICE64: The directory InternetExplorer is in the user profile > but is not listed in the RemoveFile table. > error LGHT0204: ICE64: The directory Microsoft is in the user profile but is > not listed in the RemoveFile table. > Question: > What can I do to remove these errors? > Thanks. > /Brian > > > > ________________________________ > From: Neil Sleightholm <n...@x2systems.com> > To: General discussion for Windows Installer XML toolset. > <wix-users@lists.sourceforge.net> > Sent: Thursday, January 29, 2009 11:40:33 PM > Subject: Re: [WiX-users] WiX 3.0: how to create Quick Launch shortcut and > Desktop shortcut? > > For the desktop you can use a standard Windows Installer directory reference > (see the SDK). For quick launch the only way I have found is to use this: > <Directory Id="AppDataFolder"> > <Directory Id="Microsoft" Name="Microsoft"> > <Directory Id="InternetExplorer" Name="Internet Explorer"> > <Directory Id="QuickLaunchFolder" Name="Quick Launch" /> > </Directory> > </Directory> > </Directory> > > > Neil > > Neil Sleightholm > X2 Systems Limited > n...@x2systems.com <mailto:n...@x2systems.com> > > > ________________________________ > > From: Little Forest [mailto:little.for...@ymail.com] > Sent: Fri 30/01/2009 00:31 > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] WiX 3.0: how to create Quick Launch shortcut and > Desktop shortcut? > > > > Hi, > > In WiX 3.0, is there a way to create a Quick Launch shortcut and Desktop > shortcut based on the user's choice? > I know there is a way to create a checkbox for "Launch Applition" option: > http://wix.sourceforge.net/manual-wix3/run_program_after_install.htm > I'm wondering if there is a way to create a checkbox for "Quick Luanch > shortcut" and "Desktop shortcut" on the last page of installation. > Some code example are very welcome. > Thanks. > /Brian. > > > __________________________________________________________________ > Ask a question on any topic and get answers from real people. Go to Yahoo! > Answers and share what you know at http://ca.answers.yahoo.com > <http://ca.answers.yahoo.com/> <http://ca.answers.yahoo.com/> > ---------------------------------------------------------------------------- > -- > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > __________________________________________________________________ > Connect with friends from any web browser - no download required. Try the > new Yahoo! Canada Messenger for the Web BETA at > http://ca.messenger.yahoo.com/webmessengerpromo.php > ---------------------------------------------------------------------------- > -- > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code > to > build responsive, highly engaging applications that combine the power of > local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > __________________________________________________________________ > Be smarter than spam. See how smart SpamGuard is at giving junk email the > boot with the All-new Yahoo! Mail. Click on Options in Mail and switch to > New Mail today or register for free at http://mail.yahoo.ca > ---------------------------------------------------------------------------- > -- > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code > to > build responsive, highly engaging applications that combine the power of > local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code to > build responsive, highly engaging applications that combine the power of local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > __________________________________________________________________ > Reclaim your name @ymail.com or @rocketmail.com. Get your new email address > now! Go to http://ca.promos.yahoo.com/jacko/ > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users