Stefan-

Thanks again.  After moving the target path into a property instead of 
specifying it directy, I got everything working. 

-Michael O. Schoneman




Stefan Pavlik <[EMAIL PROTECTED]> 
03/05/2007 02:36 AM

To
[EMAIL PROTECTED]
cc
wix-users@lists.sourceforge.net
Subject
Re: [WiX-users] Shortcut Creation






Hi Michael

you should play with the 'Advertise' attribute of 'Shortcut'
element. The default value is 'Yes'.
Also the 'Target' attribute of 'Shortcut' element should not be
absolute path.

Frm the WiX manual:
Target - The target for a non-Advertised shortcut. This attribute is
not valid for Advertised shortcuts. The value will be defaulted to
the parent File when nested under a File element. If you specify
this value then use a formatted file identifier, for example:
[!TargetFileId].


I, personaly , have no experience with advertised shortcuts but I
think that this is your scenario:
I think that in your case the first shortcut (documentation) is
created as Advertised and thus whole component is advertised. When
you double click on the documentation shortcut the component will /
should be installed and then you should see also the second shortcut.

Hope that it will help.

Stefan

[EMAIL PROTECTED] wrote:
> 
> Hi-
> 
> The install I?m creating needs to create a start menu shortcut to a
> program in a fixed location on a network mapped drive.  I?ve done a
> bunch of searching but couldn?t find anything that helped.  I may be
> missing something obvious but I can?t seem to get the shortcut created!
> 
> Here?s the relevant part of the wix file:
> 
>       <Directory Id="ProgramMenuFolder" Name="PMenu" 
LongName="Programs">
>         <Directory Id='PMDir' Name='Comp' LongName='CompanyName'>
>           <Directory Id="ProgramMenuDir" Name='SampSys' LongName="Sample
> System" />
>         </Directory>
>       </Directory>
> 
>       <Component Id='Shortcuts'
> Guid='F43D0A76-E587-449c-944F-D4D2993A05F7'>
>         <File Id='Manual' Name='Docs.chm'
> LongName='Sample.Documentation.chm'  DiskId='1'
> Source='Sample.Documentation.chm'>
>           <Shortcut Id="startmenuManual" Directory="ProgramMenuDir"
> Name="Docs" LongName="Sample Documentation" />
>         </File>
>         <Shortcut Id="startmenuApp1" Directory="ProgramMenuDir"
> Name="App1" LongName="Sample Application 1"
> Target="V:\Folder\App\App1.exe"/>
>       </Component>
> 
> When I install that component, the ?Sample Documentation? shortcuts get
> created, but the ?Sample Application 1? doesn?t.
> 
> Thanks for any help.
> 
> -Michael O. Schoneman
> 
> 
> ------------------------------------------------------------------------
> 
> 
-------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share 
your
> opinions on IT & business topics through brief surveys-and earn cash
> 
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users

-- 
Stefan Pavlik | [EMAIL PROTECTED]
Whitestein Technologies s.r.o. | www.whitestein.com
Panenska 28 | 811 03 Bratislava | Slovak Republic
Main +421 2 5443-5502 | Direct +421 2 5930-0735

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to