Hi Chunyan,

I'm confused, surely you must be passing in the version number
*somewhere* during your build process (e.g. from VS, nant, msbuild,
etc?) to set Product/@Version?

Sascha

On Sat, Oct 24, 2009 at 9:52 AM, Blair <os...@live.com> wrote:
> How do you set produ...@version?
>
> -----Original Message-----
> From: Jiang, Chunyan (GE Healthcare) [mailto:chunyan.ji...@ge.com]
> Sent: Friday, October 23, 2009 1:42 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] How to change shortcut name?
>
> Hi Sascha,
>
> Thanks for your tip.
>
> I thought about using wix variable to set the name. However, the version
> number will be changed for every build. And I don't know if there is a
> varialbe for product version, so that I can refer it, instead of using fix
> string.
>
> If I define the variable like:
> <?define version = [ProductVersion] ?>
>
> And set shortcut name as:
>
> <Shortcut Id="DesktopShortcutMyAPP" Name="MyAPP$(var.version)"...
>
> When I install it, the shortcut shown on the desktop is:
>
> MyAPP[ProductVersion]
>
> Instead of
> MyAPP1.0.0.1
>
> How can I set it?
>
>
> Chunyan
>
> -----Ursprüngliche Nachricht-----
> Von: Sascha Beaumont [mailto:sascha.beaum...@gmail.com]
> Gesendet: Freitag, 23. Oktober 2009 02:31
> An: General discussion for Windows Installer XML toolset.
> Betreff: Re: [WiX-users] How to change shortcut name?
>
> 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
>
> ----------------------------------------------------------------------------
> --
> 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
>

------------------------------------------------------------------------------
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

Reply via email to