What he is saying is that the Shorcut tables Name property isn't formatted so you can't use properties ( []'s ) to change the name of the shortcut at install time. The only solutions I can think of to get a dynamic shortcut name are:
If you only have a predefined set of possible names, then define them all in the MSI and use conditions to only install the one you want. If you really have no bounds and the shortcuts can be named anything, then you would have to write one or more custom actions to insert the records in the appropriate tables at runtime, which is not a trivial task to get right. -----Original Message----- From: Natalie Carr [mailto:natalie.c...@measuresoft.com] Sent: Thursday, November 29, 2012 10:08 AM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Shortcut Name Hi Phil, I see, something like this: <Shortcut Id="MainAppOrch" Directory="ProgramMenuDir" Icon="mainmenuOrch" IconIndex="0" Target="[BIN]mainmenu.exe" Arguments="[PRODUCTNAME]" Name=""> Although I'm not sure what to put in the name attribute? Kind Regards, Natalie Carr Tel: +353 42 9332399 Email: natalie.c...@measuresoft.com Web: http://www.measuresoft.com -----Original Message----- From: Phil Wilson [mailto:phil.wil...@mvps.org] Sent: Thursday, November 29, 2012 3:44 PM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Shortcut Name See the Shortcut table docs: http://msdn.microsoft.com/en-us/library/windows/desktop/aa371847(v=vs.85).as px Where the Name is not Formatted type. In contrast Arguments is Formatted, so it can be initialised dynamically from (say) a property name in square brackets. Phil -----Original Message----- From: Natalie Carr [mailto:natalie.c...@measuresoft.com] Sent: Wednesday, November 28, 2012 8:43 AM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Shortcut Name Hi Rob, Can u provide a quick sample, I'm not too sure what exactly you mean, Thanks. Kind Regards, Natalie Carr -----Original Message----- From: Rob Mensching [mailto:r...@robmensching.com] Sent: Wednesday, November 28, 2012 4:21 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Shortcut Name Yes but only if the Name column for the Shortcut is of type "Formatted". On Wed, Nov 28, 2012 at 1:22 AM, Natalie Carr <natalie.c...@measuresoft.com>wrote: > Hi, Is there any way to use a property defined at install time for the > shortcut name attribute or does this have to be defined at build time? > > > > Kind Regards, > > Natalie Carr > > > ---------------------------------------------------------------------- > -------- Keep yourself connected to Go Parallel: > INSIGHTS What's next for parallel hardware, programming and related areas? > Interviews and blogs by thought leaders keep you ahead of the curve. > http://goparallel.sourceforge.net > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- virtually, Rob Mensching http://RobMensching.com LLC ---------------------------------------------------------------------------- -- Keep yourself connected to Go Parallel: INSIGHTS What's next for parallel hardware, programming and related areas? Interviews and blogs by thought leaders keep you ahead of the curve. http://goparallel.sourceforge.net _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- Keep yourself connected to Go Parallel: INSIGHTS What's next for parallel hardware, programming and related areas? Interviews and blogs by thought leaders keep you ahead of the curve. http://goparallel.sourceforge.net _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- Keep yourself connected to Go Parallel: VERIFY Test and improve your parallel project with help from experts and peers. http://goparallel.sourceforge.net _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Keep yourself connected to Go Parallel: VERIFY Test and improve your parallel project with help from experts and peers. http://goparallel.sourceforge.net _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Keep yourself connected to Go Parallel: VERIFY Test and improve your parallel project with help from experts and peers. http://goparallel.sourceforge.net _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users