Hi,

I am wondering how to generate a shortcut with Start In property specified. I 
tried the following, but the Start In property of the generated shortcut is 
always empty. Do I miss anything here? Thanks.

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://schemas.microsoft.com/wix/2006/wi
C:\wix-3.0.2211.0-binaries\doc\wix.xsd">
    <Product Id="..." Name="Demo" Language="1033" Version="1.0.0.0" 
Manufacturer="m" UpgradeCode="...">
        <Package Description="This is a demo" Comments="Demo" 
InstallerVersion="200" Compressed="yes"/>
        <Media Id="1" Cabinet="product.cab" EmbedCab="yes"/>
        <Directory Id='TARGETDIR' Name='SourceDir'>
            <Directory Id='ProgramFilesFolder' Name='PFiles'>
                <Directory Id="Demo" Name="Demo1">
                    <Directory Id="dir" Name="Demo2">
                        <Component Id="MainExecutable" Guid="..." >
                            <File Id="main_exe" Name="main.exe" DiskId="1" 
Source="main.exe" Vital="yes">
                                <Shortcut Id="StudioDesktopShortcut" 
Name="Demo" Directory="DesktopFolder" WorkingDirectory="INSTALLDIR" 
Advertise="yes" Icon="main.exe" IconIndex="0" />
                            </File>
                            <File Id="main_exe_config" Name="main.exe.config" 
DiskId="1" Source="main.exe.config" Vital="yes"/>
                        </Component>
                </Directory>
                
                <Directory Id="DesktopFolder" Name="Desktop"/></Directory>
            </Directory>
        </Directory>
            
        <Feature Id="Complete" Level="1">
            <ComponentRef Id="MainExecutable"/>
        </Feature>

        <Icon Id="main.exe" SourceFile="main.exe" />
    </Product>
</Wix>

       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
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