How to change shortcut name?

9 messages Options
Embed this post
Permalink
Chunyan

How to change shortcut name?

Reply Threaded More More options
Print post
Permalink
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Rob Mensching-7

Re: How to change shortcut name?

Reply Threaded More More options
Print post
Permalink
You can't do that at run time. Only Properties, Directories and temporary
rows may be modified at install time.

On Thu, Oct 22, 2009 at 12:30 AM, Jiang, Chunyan (GE Healthcare) <
[hidden email]> 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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


--
virtually, Rob Mensching - http://RobMensching.com LLC
------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
saschabeaumont

Re: How to change shortcut name?

Reply Threaded More More options
Print post
Permalink
In reply to this post by Chunyan
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)
<[hidden email]> 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
> [hidden email]
> 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Chunyan

Re: How to change shortcut name?

Reply Threaded More More options
Print post
Permalink
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:[hidden email]]
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) <[hidden email]> 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
> [hidden email]
> 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
[hidden email]
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Blair-2

Re: How to change shortcut name?

Reply Threaded More More options
Print post
Permalink
How do you set Product\@Version?

-----Original Message-----
From: Jiang, Chunyan (GE Healthcare) [mailto:[hidden email]]
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:[hidden email]]
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)
<[hidden email]> 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
> [hidden email]
> 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
[hidden email]
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
[hidden email]
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
saschabeaumont

Re: How to change shortcut name?

Reply Threaded More More options
Print post
Permalink
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 <[hidden email]> wrote:

> How do you set Product\@Version?
>
> -----Original Message-----
> From: Jiang, Chunyan (GE Healthcare) [mailto:[hidden email]]
> 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:[hidden email]]
> 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)
> <[hidden email]> 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
>> [hidden email]
>> 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
> [hidden email]
> 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
> [hidden email]
> 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
> [hidden email]
> 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Chunyan

Re: How to change shortcut name?

Reply Threaded More More options
Print post
Permalink
Hi Sascha,

I have set Product/@Version by
  <Product Id="0943E42D-BEAB-4326-9C6B-E59544C28930" Version="6.0.0.472" Name="MyAPP" Language="1033"

My question is if I use variable like <?define version = [ProductVersion] ?>, then use it in <Shortcut Id="DesktopShortcutMyAPP" Name="MyAPP$(var.version)"... The variable doesn't pass the Produce Number, like 1.0.0.1 to var.version. Instead, it treats [ProductVersion] as a string, and pass it to ver.version. Therefore, the shortcut name shown on the desktop is like MyAPP[ProudctVersion]. It is not what I want.

How can I pass the Product/@Version via wix variable as you suggestedß

Regards,

Chunyan
 

-----Ursprüngliche Nachricht-----
Von: Sascha Beaumont [mailto:[hidden email]]
Gesendet: Dienstag, 27. Oktober 2009 21:39
An: General discussion for Windows Installer XML toolset.
Betreff: Re: [WiX-users] How to change shortcut name?

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 <[hidden email]> wrote:

> How do you set Product\@Version?
>
> -----Original Message-----
> From: Jiang, Chunyan (GE Healthcare) [mailto:[hidden email]]
> 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:[hidden email]]
> 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)
> <[hidden email]> 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
>> [hidden email]
>> 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
> [hidden email]
> 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
> [hidden email]
> 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
> [hidden email]
> 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
[hidden email]
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Blair-2

Re: How to change shortcut name?

Reply Threaded More More options
Print post
Permalink
<?define ProductVersion=6.0.0.472?>
...
  <Product Id="0943E42D-BEAB-4326-9C6B-E59544C28930"
Version="$(var.ProductVersion)" Name="MyAPP" Language="1033"
...
<Shortcut Id="DesktopShortcutMyAPP" Name="MyAPP$(var.ProductVersion)"
...

You then update the define instead of the Product/@Version in your source
files.

If the Shortcut and the Product elements are in different wxs files, put the
define into a .wxi file that you include in both wxs files.

-----Original Message-----
From: Jiang, Chunyan (GE Healthcare) [mailto:[hidden email]]
Sent: Wednesday, October 28, 2009 8:36 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] How to change shortcut name?

Hi Sascha,

I have set Product/@Version by
  <Product Id="0943E42D-BEAB-4326-9C6B-E59544C28930" Version="6.0.0.472"
Name="MyAPP" Language="1033"

My question is if I use variable like <?define version = [ProductVersion]
?>, then use it in <Shortcut Id="DesktopShortcutMyAPP"
Name="MyAPP$(var.version)"... The variable doesn't pass the Produce Number,
like 1.0.0.1 to var.version. Instead, it treats [ProductVersion] as a
string, and pass it to ver.version. Therefore, the shortcut name shown on
the desktop is like MyAPP[ProudctVersion]. It is not what I want.

How can I pass the Product/@Version via wix variable as you suggestedß

Regards,

Chunyan
 

-----Ursprüngliche Nachricht-----
Von: Sascha Beaumont [mailto:[hidden email]]
Gesendet: Dienstag, 27. Oktober 2009 21:39
An: General discussion for Windows Installer XML toolset.
Betreff: Re: [WiX-users] How to change shortcut name?

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 <[hidden email]> wrote:

> How do you set Product\@Version?
>
> -----Original Message-----
> From: Jiang, Chunyan (GE Healthcare) [mailto:[hidden email]]
> 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:[hidden email]]
> 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)
> <[hidden email]> 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
>> [hidden email]
>> 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
> [hidden email]
> 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
> [hidden email]
> 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
> [hidden email]
> 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
[hidden email]
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
[hidden email]
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Chunyan

Re: How to change shortcut name?

Reply Threaded More More options
Print post
Permalink
Hi Blair,

Thanks for your reply. It is great idea. It works for me.


Regards,

Chunyan
-----Ursprüngliche Nachricht-----
Von: Blair [mailto:[hidden email]]
Gesendet: Mittwoch, 28. Oktober 2009 16:58
An: 'General discussion for Windows Installer XML toolset.'
Betreff: Re: [WiX-users] How to change shortcut name?

<?define ProductVersion=6.0.0.472?>
...
  <Product Id="0943E42D-BEAB-4326-9C6B-E59544C28930"
Version="$(var.ProductVersion)" Name="MyAPP" Language="1033"
...
<Shortcut Id="DesktopShortcutMyAPP" Name="MyAPP$(var.ProductVersion)"
...

You then update the define instead of the Product/@Version in your source files.

If the Shortcut and the Product elements are in different wxs files, put the define into a .wxi file that you include in both wxs files.

-----Original Message-----
From: Jiang, Chunyan (GE Healthcare) [mailto:[hidden email]]
Sent: Wednesday, October 28, 2009 8:36 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] How to change shortcut name?

Hi Sascha,

I have set Product/@Version by
  <Product Id="0943E42D-BEAB-4326-9C6B-E59544C28930" Version="6.0.0.472"
Name="MyAPP" Language="1033"

My question is if I use variable like <?define version = [ProductVersion] ?>, then use it in <Shortcut Id="DesktopShortcutMyAPP"
Name="MyAPP$(var.version)"... The variable doesn't pass the Produce Number, like 1.0.0.1 to var.version. Instead, it treats [ProductVersion] as a string, and pass it to ver.version. Therefore, the shortcut name shown on the desktop is like MyAPP[ProudctVersion]. It is not what I want.

How can I pass the Product/@Version via wix variable as you suggestedß

Regards,

Chunyan
 

-----Ursprüngliche Nachricht-----
Von: Sascha Beaumont [mailto:[hidden email]]
Gesendet: Dienstag, 27. Oktober 2009 21:39
An: General discussion for Windows Installer XML toolset.
Betreff: Re: [WiX-users] How to change shortcut name?

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 <[hidden email]> wrote:

> How do you set Product\@Version?
>
> -----Original Message-----
> From: Jiang, Chunyan (GE Healthcare) [mailto:[hidden email]]
> 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:[hidden email]]
> 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)
> <[hidden email]> 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
>> [hidden email]
>> 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
> [hidden email]
> 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
> [hidden email]
> 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
> [hidden email]
> 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
[hidden email]
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
[hidden email]
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
[hidden email]
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users