Hi,

I'm trying to create shortcut to some arbitrary folder, that is not the part of 
installation package tree. It can be, for example c:\windows or d:\temp. 
Second, I have to create the shortcut in two new Windows 7 known folders: 
Documents and Favorites - not IE Favorites, but Explorer Favorites which is 
located in %USERPROFILE%\Links. I encountered two problems: 1. Wix doesn't 
allow to use the target if this target is not part of installation package 
tree. Second, I cannot find constants corresponding to new Win 7 known folders. 
Here is the extract of wix script:

<DirectoryRef Id="ApplicationProgramsFolder">
            <Component Id="ApplicationShortcut" 
Guid="CE8F1AB5-9992-4CA5-B9D0-AE46BFDCA1DB">
                <Shortcut Id="ApplicationStartMenuShortcut"
                     Name="My Application Name"
                   Description="My Application Description" Target="d:\temp" 
Directory="FavoritesFolder"
                          WorkingDirectory="APPLICATIONROOTDIRECTORY" />
                <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
                <RegistryValue Root="HKCU" 
Key="Software\Microsoft\MyApplicationName" Name="installed" Type="integer" 
Value="1" KeyPath="yes"/>
           </Component>
        </DirectoryRef>

FavoritesFolder referenced here is resolved int IE favorites and not into Win 7 
known folder Favorites. Target="d:\temp" causes linkage error.

Also, I would ask the more general question: How to create shortcut to some 
arbitrary folder under another arbitrary folder inside wix script. For example 
how to create shortcut for d:\aaa directory under d:\bbb directory. Neither aa 
nor bb are part of installation package tree.


Thanks for help,
Maxim

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
WiX-devs mailing list
WiX-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to