Oh and Reference the Desktop directory in your directory structure...

<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="YOURDIR" Name="NAMEOFYOURDIR"/>
<Directory Id ="DesktopFolder" Name="Desktop"/>
   </Directory>
</Directory>

Sorry,

J


On Tue, Apr 29, 2014 at 5:17 PM, Jeremiahf <jeremi...@gmail.com> wrote:

> Try this
>
>      <DirectoryRef Id="DesktopFolder">
>       <Component Id="ShortcutComponentID" Guid="YOUR-GUID-HERE">
>         <Shortcut Id="ShortcutID"
>              Name="Shortcutname"
>            Description="Shortcutname"
>             Target="[INSTALLDIR]myapplication.EXE"
>                   WorkingDirectory="INSTALLDIR"/>
>         <RegistryValue Root="HKCU"
> Key='Software\[Manufacturer]\[ProductName]' Name="installed" Type="integer"
> Value="1" KeyPath="yes"/>
>       </Component>
>     </DirectoryRef>
>
>
>     <Feature Id="YourFeatureID" Title="YourFeatureTitle" Level="1">
>       <ComponentGroupRef Id="NamedComponentGroup />
>       <ComponentRef Id ="ShortcutComponentID"/>
>
>
> On Mon, Apr 28, 2014 at 1:18 AM, 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
>>
>
>
>
> --
> "They may forget what you said but they will never forget how you made
> them feel." -- Anonymous
>



-- 
"They may forget what you said but they will never forget how you made them
feel." -- Anonymous
------------------------------------------------------------------------------
"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