The shortcut should be under the Component tag, not the file tag, as
described in the Stack Overflow answer to your question there. If
that's not working then you could supply a bit more info about what
you've tried.
---------------
Phil Wilson


On Sun, Apr 27, 2014 at 11:18 PM, Satbir Singh <ig.sat...@gmail.com> wrote:
> I am working with WiX from last 5 month with no issues. Recently, i am in
> need to have "StartIn" property in App Desktop shortcut. By default, its
> empty.
>
> I am working with below code:
>
>
>
>
>
>
>
> *<Component Id="myapplication.EXE" DiskId="1"
> Guid="D42BBB80-579B-42B3-A65D-130829F2982D">   <File Id="myapplication.EXE"
> Name="My Application.exe" Source="D:\My Application\My Application.exe">
>          <Shortcut Id="desktopShortcut" Directory="DesktopFolder" Name="My
> Application" WorkingDirectory="INSTALLDIR" Icon="DesktopIcon.exe"
> IconIndex="0" Description="My Application Description" />
>  <Shortcut Id="ExeShortcut" Directory="ProgramMenuDir" Name="My
> Application" Icon="StartMenuIcon.exe" IconIndex="0" />
> </File></Component>*
> But didn't worked.
>
>
> I have also tried adding "Target" property:
>
>
> *<Shortcut Target= "INSTALLDIR" Id="desktopShortcut"
> Directory="DesktopFolder" Name="Virtual Sim Center Beta"
> WorkingDirectory="INSTALLDIR" Icon="DesktopIcon.exe" IconIndex="0"
> Description="My Application Description"  />*
> but getting error message:
> The Shortcut/@Target attribute cannot be specified when the Shortcut
> element is nested underneath a File element.
>
> Please Help.
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.  Get
> unparalleled scalability from the best Selenium testing platform available.
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to