I don't believe this is possible using the standard shortcut creation
methods. The issue is that the underlying functionality is the
Shortcut table of the MSI file, and the name is not a variable that
can be specified with a property (it's not the Formatted type). That
means you will need to invent your own solution. You could use code to
create the shortcuts, not something anyone would recommend, or somehow
modify the Shortcut table at install time,
---------------
Phil Wilson


On Mon, Mar 10, 2014 at 2:47 AM, Suvrajyoti Panda
<suvrajyo...@contata.co.in> wrote:
> Adding on to this, i would like to use values supplied in the dialogues
> of the installer. Also i would like to use one dialogue for the
> installation path and the other for the installation directory. Please
> let me know how i can achieve this.
>
> Regards,
> Suvra Jyoti
> -------- Original Message --------
> Subject:        How to have the shortcut name same as the installation 
> directory
> Date:   Mon, 10 Mar 2014 14:55:10 +0530
> From:   Suvrajyoti Panda <suvrajyo...@contata.co.in>
> To:     General discussion about the WiX toolset.
> <wix-users@lists.sourceforge.net>
>
>
>
> Hi All,
>
> I have the below directory structure:
>
> <Directory Id="TARGETDIR" Name="SourceDir">
>        <Directory Id="ENERGYSOLUTIONS" Name="$(var.rootFolder)">
>          <Directory Id='PFWLOCAL' Name="$(var.installFolder)">
>          </Directory>
>        </Directory>
>               <Directory Id="DesktopFolder" Name="Desktop">
>               <Component Id="PFWLocalClientShortcutDesktopCmp"
> Guid="{D24360C2-0D40-4CA9-BD9C-874D7DFEB5B1}">
>                   <Shortcut Id="PFWLocalClientShortcutDesktop"
> Name="$(var.installFolder)" Target="[PFWLOCAL]PFWLocalClient.exe"
> Description='Launch Pipeline             Framework'
> WorkingDirectory='PFWLOCAL' Icon='PFWLocalClientIcon.ico'>
>                    </Shortcut>
>                    <RemoveFolder Id="DesktopFolder" On="uninstall"/>
>                    <RegistryValue Root="HKCU"
> Key="Software\PipelineFramework" Name="PFWLocalClientShortcutdesktop"
> Type="integer" Value="1" KeyPath="yes"/>
>              </Component>
>        </Directory>
>      </Directory>
>
>
> And i am using the built in WIX UI as below:
>
> <Property Id="WIXUI_INSTALLDIR" Value="PFWLOCAL" />
>
> In the desktop shortcut i am creating above, i want that the name
> attribute of the shortcut be picked up same as the name of the directory
> the user wants to install to, for instance he might change the default
> directory, in that case the name of the shortcut should be same as the
> directory user has supplied. Please let me know how we can achieve the same.
>
> Regards,
> Suvra Jyoti
>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to