简体   繁体   English

如何使用 VS2010 安装项目将我的程序添加到用户开始菜单?

[英]How do I add my program to the users start menu with VS2010 Setup Project?

How do I add my program to the users start menu with VS2010 Setup Project?如何使用 VS2010 安装项目将我的程序添加到用户开始菜单?

I don't see an obvious place to do this.我没有看到一个明显的地方可以做到这一点。

What would be even better than this is a link to a reference that holds my hand through setting up projects so I can see how it is supposed to be done.比这更好的是一个指向参考的链接,它通过设置项目握住我的手,这样我就可以看到它应该如何完成。

Thanks!谢谢!

  1. Go to Application Folder , look on the right hand side it should say, Primary output from X (make sure you don't have other widgets covering up this real estate.)转到Application Folder ,在右侧看它应该说, Primary output from X (确保你没有其他小部件覆盖这个空间。)
  2. Right click that => make shortcut右键单击该=>制作快捷方式
  3. Go to User's Program's Menu ==> create the folder that you want your shortcut to reside in, probably your company name转到User's Program's Menu ==> 创建您希望快捷方式驻留的文件夹,可能是您的公司名称
  4. Drag the shortcut from step 2 to the folder you just created.将步骤 2 中的快捷方式拖到刚刚创建的文件夹中。

You can add a short cut in to the executable in the File System view.您可以在“文件系统”视图中为可执行文件添加快捷方式。

在此处输入图像描述

More steps here更多步骤在这里

在此处输入图像描述

After wasting an hour, I got it done - VS 2010 (this article helped):浪费了一个小时后,我完成了 - VS 2010(这篇文章有帮助):

In your Deployment Project go to File System Editor Click on "Application Folder" (I assume you have "Primary Output" from your projects there) Right click on "Primary Output" of the project you want to target with your shortcut - select "Create Shortcut to Primary Output ..." Rename shortcut Drag shortcut to Desktop / Programs Menu folder That's it!在您的部署项目中转到文件系统编辑器单击“应用程序文件夹”(我假设您的项目中有“主要输出”)右键单击要使用快捷方式定位的项目的“主要输出” - 选择“创建主输出的快捷方式...” 重命名快捷方式 将快捷方式拖到桌面/程序菜单文件夹 就是这样!

In the Setup Project File System , right-click the User's Programs Menu , and create a folder for your application.Setup Project File System中,右键单击User's Programs Menu ,然后为您的应用程序创建一个文件夹。 Go to the Application Folder , right-click project output, then select Create Shortcut to xxx .转到Application Folder ,右键单击项目输出,然后选择Create Shortcut to xxx Drag the shortcut to the application folder.将快捷方式拖到应用程序文件夹。

Creating the shortcut at the top level of the start menu is not really standard behavior.在开始菜单的顶层创建快捷方式并不是真正的标准行为。 The shortcut should be created in the folder [Manufacturer][ProductName] in the user's "Programs" menu.快捷方式应在用户“程序”菜单的文件夹 [Manufacturer][ProductName] 中创建。 However, it seems you can't use the installer properties in the Visual Studio deployment proje但是,您似乎无法在 Visual Studio 部署项目中使用安装程序属性

Right click on the setup project and click View -> File System.右键单击安装项目,然后单击查看 -> 文件系统。 There is a foler there for User's Programs Menu.用户程序菜单有一个文件夹。 You can add a shortcut to your project's executable there.您可以在此处添加项目可执行文件的快捷方式。

Here is a link that walks you through the process. 是一个链接,可引导您完成整个过程。

Sorry I'm 11 years late for this but here is a way to do it:抱歉,我为此迟到了 11 年,但这是一种方法:

  1. Right click on "Application Folder", click on "Properties", then change "AlwaysCreate" to true.右键单击“应用程序文件夹”,单击“属性”,然后将“AlwaysCreate”更改为true。
  2. right click on "Application Folder" and click "Create Shortcut to Application Folder"右键单击“应用程序文件夹”,然后单击“创建应用程序文件夹的快捷方式”
  3. Rename the "Shortcut to Application Folder" to whatever name you choose.将“应用程序文件夹的快捷方式”重命名为您选择的任何名称。
  4. Drag that shortcut into the "User's Desktop" or "User's Programs menu".将该快捷方式拖到“用户桌面”或“用户程序菜单”中。
  5. Build the project.构建项目。
  6. You're done!你完成了! :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何向我在vs2010中发布的项目添加发布日期? - how do I add a Publish date to a project I'm publishing in vs2010? 使用自动更新功能vs2010设置项目 - Setup project with autoupdate feature vs2010 VS2010安装项目升级和快捷方式 - VS2010 Setup Project Upgrade and Shortcuts 当我打开解决方案时,如何让我的 VS2010 设置项目没有错误? - How can get my VS2010 setup projects to NOT have errors when I open the solution? 如何在VS2010 Professional中为C#项目自定义代码分析词典? - How do I customize the Code Analysis Dictionary for a C# project in VS2010 Professional? 如何从VS2010加载项中调用“新建垂直选项卡组”? - How do I invoke “New Vertical Tab Group” from a VS2010 add-in? 如何在VS2010中自动添加或删除接口的所有实现方法? - How do I automatically add or remove methods from all implementations of an interface in VS2010? VS安装项目:将开始菜单链接添加到合并模块中的文件 - VS Setup Project: Add Start Menu link to a file in a Merge Module 在我的安装项目(VS 2010)的前提条件中添加Adobe Reader - Add Adobe Reader in prerequisite of my Setup project (VS 2010) 在VS2010安装项目中为快捷方式设置正确的图标 - Setting correct icon for Shortcut in VS2010 Setup Project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM