Can you a bit more specific about what the actual problem you are seeing?

One thing I'm pretty sure is going to mess things up is that the fact that 
Advertised Shortcuts point at the KeyPath of the Component.  A Component can 
only have one KeyPath so I would guess that your advertised shortcuts are 
pointing at the same File right now.

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Simon Alford
Sent: Tuesday, September 18, 2007 03:18
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Shortcut creation problem

Hi all,

I am having a problem with a WiX pakage I have created. All is working well 
with it except the creation of shortcuts. I have included the XML used to 
create my shortcuts. The problem I get is that all my shortcuts endup with the 
same action. Which is to run " StartDragon.bat",  the "Stop Dragon Service" 
shortcut should run "StopDragon.bat".

Originally I was using the same <Icon> tag for all 4 Shortcuts, I though this 
may be the problem so I commented out two of the shortcuts and created a second 
<Icon> tag for " StopDragon.bat" . This had no effect and I still had the same 
problem. I have been over the XML code several times and can't see anything 
wrong. It all compiles and links fine.

Is there some thing wrong with my XML (am I blind)? Has any one else had this 
problem? Is it a know bug? Are there any workarounds?


            <Component Id="StartStop" 
Guid="2bdc5166-62a7-11dc-8314-0800200c9a66">
              <File Id="StartDragon.bat" Name="StartDragon.bat" DiskId="1" 
Source="..\Applications\StartDragon.bat" Vital="yes">
               <Shortcut Advertise="yes" Id="PM_DragonStart" 
Directory="DragonMenuDir" Name="Start Dargon Service" 
WorkingDirectory="INSTALLLOCATION" Icon="DragonIcon.exe " IconIndex="0">
                  <Icon Id="DragonIcon.exe" 
SourceFile="..\..\bin\Release\Dragon.exe"/>
                </Shortcut>
               <!-- <Shortcut Advertise="yes" Id="DT_DragonStart" 
Directory="DesktopFolder" Name="Start Dargon Service" 
WorkingDirectory="INSTALLLOCATION" Icon=" DragonIcon.exe" 
IconIndex="0"></Shortcut>-->
              </File>

              <File Id="StopDragon.bat" Name="StopDragon.bat" DiskId="1" 
Source="..\Applications\StopDragon.bat" Vital="yes">
                <Shortcut Advertise="yes" Id="PM_DragonStop" 
Directory="DragonMenuDir" Name="Stop Dargon Service" 
WorkingDirectory="INSTALLLOCATION" Icon="DragonIcon2.exe " IconIndex="0">
                  <Icon Id="DragonIcon2.exe" 
SourceFile="..\..\bin\Release\Dragon.exe"/>
                </Shortcut>
                <!--<Shortcut Advertise="yes" Id="DT_DragonStop" 
Directory="DesktopFolder" Name="Stop Dargon Service" 
WorkingDirectory="INSTALLLOCATION" Icon=" DragonIcon2.exe" 
IconIndex="0"></Shortcut>-->
              </File>
              <RemoveFolder Id="CleanProgramMenu1" On="uninstall" 
Property="DragonMenuDir"/>
              <RemoveFolder Id="CleanProgramMenu2" On="uninstall" 
Property="SmithMyersMenuDir"/>
            </Component>

Thanks for any help in advance.

Simon.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to