在 Visual Studio 2008 安装程序的快捷方式中使用来自用户操作的变量

发布于 2024-12-02 19:07:51 字数 216 浏览 1 评论 0原文

我需要根据用户输入创建一个快捷方式。我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

音盲 2024-12-09 19:07:51

不幸的是,快捷方式名称未格式化

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文