在 Visual Studio 2008 安装程序的快捷方式中使用来自用户操作的变量
我需要根据用户输入创建一个快捷方式。我在 Visual Studio 2008 应用程序的文件操作中创建了一个文本框 (A) 页面。我将 edit1 框更改为 STUDYNAME。
在变量中,我使用了 [StudyName]、[STUDYNAME]、$[STUDYNAME] 和“[STUDYNAME]”
,但它们都不起作用。
任何帮助都会很棒。
保罗
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,快捷方式名称未格式化:
< a href="http://msdn.microsoft.com/en-us/library/aa371847(VS.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/aa371847(VS.85).aspx
因此,您不能使用快捷方式名称的属性。相反,您可以尝试创建自定义操作它获取属性值并重命名快捷方式。
Visual Studio 中没有对此进行预定义的支持,因此您必须自己编写自定义操作代码。
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.