Have you thought about using a wix variable to set the shortcut name at compile time, rather than at runtime?
i.e. Shortcut/@Name="MyAPP $(var.version)" Sascha On Thu, Oct 22, 2009 at 6:30 PM, Jiang, Chunyan (GE Healthcare) <chunyan.ji...@ge.com> wrote: > Hi all, > > I have defined the shortcut like this: > > <DirectoryRef Id="ShortcutFolder"> > > <Component Id="DesktopShortcut" > Guid="D9DFCBA6-C98F-4146-87D9-C4F83349C8EC"> > > <Shortcut Id="DesktopShortcutMyAPP" Name="MyAPP" > Directory="DesktopFolder" Target="[APPLICATIONFOLDER]/MyAPP.exe" > WorkingDirectory="APPLICATIONFOLDER" /> > > <RemoveFolder Id="DesktopFolderVPAdmin" On="uninstall" /> > > <RegistryValue Root="HKCU" Key="Software\Microsoft\MyAPP" > Name="installed" Type="integer" Value="1" KeyPath="yes" /> > > </Component> > > </DirectoryRef> > > > > However, I want to give the shortcut another name, like MyAPP 1.0.0.1, > which is the version number. How can I perform it? I know that I can > define custom action to change the Product Name, like: > > <CustomAction Id="SetProductName" Property="ProductName" Value="MyAPP > [ProductVersion] " Execute="immediate" /> > > > > But it doesn't work for changing shortcut name. How to modify this > custom action to fit for shortcut name? > > > > Regards, > > > > Chunyan > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users