I thought of something to try right after I sent the note below
and it worked. I'd like to know why it worked though.

I had another component containing a shortcut to nunit.exe, the
same file that has the icon for the shortcuts below. So, it looked
like this...

<Component...>
 <File Id="nunit.exe" ...>
  <Shortcut...>
 </File>
</Component>

<Component...>
 <File Id="clr.bat" ...>
  <Shortcut...> 
  <Shortcut...>
  <Shortcut...>
 </File
</Component>

<Icon Id="nunit_icon.exe" SourceFile="nunit.exe"/>

I combined the two files and four shortcuts into a single
component and it worked.

My instinct is that there is something here I should
understand better. :-)

Charlie 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Charlie Poole
> Sent: Saturday, September 16, 2006 2:32 PM
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] Shortcuts that won't go away
> 
> Hi All,
> 
> I have a set of shortcuts in one component that won't go away 
> on uninstall.
> 
> Here's a snippet from my wxs file...
> 
>       <Component Id="C__RuntimeSelector"
> Guid="0E428D48-6EC3-91C3-C230-09C34647D786">
>           <File Id="clr.bat" Name="clr.bat" src="clr.bat" 
> KeyPath="yes"
> DiskId="1">
>                         <Shortcut Id="Shortcut_1.0" 
> Arguments="1.0 nunit.exe" Directory="D__nunit_menu" 
>                           Name="SNUNIT10" LongName="NUnit GUI 
> (.NET 1.0)"
> Advertise="no"
>                               Icon="nunit_icon.exe" IconIndex="0"
> Show="minimized" 
>                               WorkingDirectory="D__bin" />
>                         <Shortcut Id="Shortcut_1.1" 
> Arguments="1.1 nunit.exe" Advertise="no"
>                           Directory="D__nunit_menu" Name="SNUNIT11"
> LongName="NUnit GUI (.NET 1.1)" 
>                               Icon="nunit_icon.exe" IconIndex="0"
> Show="minimized" 
>                               WorkingDirectory="D__bin" />
>                         <Shortcut Id="Shortcut_2.0" 
> Arguments="2.0 nunit.exe"  Advertise="no"
>                           Directory="D__nunit_menu" Name="SNUNIT20"
> LongName="NUnit GUI (.NET 2.0)" 
>                               Icon="nunit_icon.exe" IconIndex="0"
> Show="minimized" 
>                               WorkingDirectory="D__bin" />
>               </File>
>       </Component>
> 
> On uninstall, the log says...
> 
> MSI (s) (B4:C0) [14:29:01:000]: 'Shortcut_1.0' shortcut's, 
> 'C__RuntimeSelector' component will not be removed, so that 
> 'nunit_icon.exe'
> icon will not be removed.
> 
> Charlie
> 
> 
> 
> --------------------------------------------------------------
> -----------
> Using Tomcat but need to do more? Need to support web 
> services, security?
> Get stuff done quickly with pre-integrated technology to make 
> your job easier Download IBM WebSphere Application Server 
> v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&;
> dat=121642
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to