Paul Rivers
Paul Rivers

Reputation: 31

Using variable from user action in shortcut with Visual Studio 2008 Installer

I have a shortcut I need to make based off of user input. I created a Textboxes (A) page in the file actions of my Visual Studio 2008 application. I changed the edit1 box to STUDYNAME.

In the variable, I used [StudyName], [STUDYNAME], $[STUDYNAME] and "[STUDYNAME]"

None of them worked.

Any help would be great.

Paul

Upvotes: 1

Views: 118

Answers (1)

Cosmin
Cosmin

Reputation: 21416

Unfortunately the shortcut name is not formatted:

http://msdn.microsoft.com/en-us/library/aa371847(VS.85).aspx

So you cannot use a property for a shortcut name. Instead, you can try creating a custom action which gets the property value and renames the shortcut.

There is no predefined support for this in Visual Studio, so you will have to write the custom action code yourself.

Upvotes: 1

Related Questions