Hello all
I'm having trouble when uninstalling a product that has shared shortcuts in the startmenu (Shared as in used in more than one product configuration). It removes all shortcuts that were specific to the uninstalling product (as well it should) but also removes shortcuts that are still being used by others (but the files remain). In the example I provide below, If Program1 and Program2 are installed, when uninstalling Program1 shortcuts for Program1.exe and SomeSharedThing.exe will be removed from the startmenu. I only want it to remove the SomeSharedThing.exe shortcut if it is no longer in use. Any help with this problem will be greatly appreciated. Example of current implementation: Program 1 WIX <Component Id="Program1Exe" Guid="{D63BC581-2EA0-4e3c-B395-93F3D63DF58E}"> <File Id="Program1Exe" Name="Program1.exe" DiskId="1" Vital="yes" KeyPath="yes"> <Shortcut Id="Program1Exe" Name="Program 1" Advertise="yes" Directory="ProgramMenuDir" WorkingDirectory="INSTALLLOCATION" Icon="Program1.exe"> <Icon Id="Program1.exe" SourceFile="Program1.exe" /> </Shortcut> </File> <!-- Make sure the start-menu directory gets removed properly. Source: http://blogs.technet.com/alexshev/archive/2008/02/20/from-msi-to-wix-par t-10-shortcuts.aspx --> <RemoveFolder Id="DeleteShortcutFolder" Directory="ProgramMenuDir" On="uninstall" /> </Component> <Component Id="SomeSharedThing" Guid="{02F84320-8F1B-4aba-B021-4AC9181F2F39}"> <File Id="SomeSharedThing" Name="SomeSharedThing.exe" DiskId="1" Vital="yes" KeyPath="yes"> <Shortcut Id="SomeSharedThing" Name="Some Shared Thing" Directory="ProgramMenuDir" Advertise="yes" Icon="SomeSharedThing.exe"> <Icon Id="SomeSharedThing.exe" SourceFile="SomeSharedThing.exe" /> </Shortcut> </File> </Component> Program 2 WIX <Component Id="Program2Exe" Guid="{6382007A-4190-4c33-9C44-29BF84F91C7E}"> <File Id=" Program2Exe " Name=" Program2.exe" DiskId="1" Vital="yes" KeyPath="yes"> <Shortcut Id=" Program2Exe " Name="Program 2" Advertise="yes" Directory="ProgramMenuDir" WorkingDirectory="INSTALLLOCATION" Icon=" Program2.exe"> <Icon Id=" Program2.exe" SourceFile=" Program2.exe" /> </Shortcut> </File> <!-- Make sure the start-menu directory gets removed properly. Source: http://blogs.technet.com/alexshev/archive/2008/02/20/from-msi-to-wix-par t-10-shortcuts.aspx --> <RemoveFolder Id="DeleteShortcutFolder" Directory="ProgramMenuDir" On="uninstall" /> </Component> <Component Id="SomeSharedThing" Guid="{02F84320-8F1B-4aba-B021-4AC9181F2F39}"> <File Id="SomeSharedThing" Name="SomeSharedThing.exe" DiskId="1" Vital="yes" KeyPath="yes"> <Shortcut Id="SomeSharedThing" Name="Some Shared Thing" Directory="ProgramMenuDir" Advertise="yes" Icon="SomeSharedThing.exe"> <Icon Id="SomeSharedThing.exe" SourceFile="SomeSharedThing.exe" /> </Shortcut> </File> </Component> I have used: <RemoveFolder Id="DeleteShortcutFolder" Directory="ProgramMenuDir" On="uninstall" /> to remove the shortcuts, I imagine this is where my changes need to be? Again, any help would be greatly appreciated, Colin. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users