简体   繁体   中英

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?

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.)
  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
  4. Drag the shortcut from step 2 to the folder you just created.

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):

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. Go to the Application Folder , right-click project output, then select 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. However, it seems you can't use the installer properties in the Visual Studio deployment proje

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:

  1. Right click on "Application Folder", click on "Properties", then change "AlwaysCreate" to 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! :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM