8

In my VS Setup & Deployment project, I want to create a desktop shortcut whose name is set to the [ProductName] property. Instead of using the property, the setup program simply treats [ProductName] as a string literal. How can I get it to behave the way I want?

Brandon
  • 3,684
  • 1
  • 18
  • 25

1 Answers1

0

Have you considered using some hard coded name and use build events to rename the shortcut upon installation?

Daniel Mošmondor
  • 19,718
  • 12
  • 58
  • 99
  • I realize I could probably do something with a custom action, but I'm trying to find the simplest method here. Also, I'd need some more explanation of what you mean for me to accept this as an answer. – Brandon Nov 01 '10 at 18:14
  • No problem, but tell me, what do you really trying to accomplish? Is there some deeper reason for you not wanting to type ProductName in two places? – Daniel Mošmondor Nov 01 '10 at 21:50
  • This is part of an automated build process; I only want to change the ProductName in one place and have it propogate everywhere it's referenced within the install, including the name of the shortcut. – Brandon Nov 10 '10 at 13:35
  • OK, but how often does the productName change? What you want is unsupported. – Beth Jan 19 '11 at 20:44