Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

In C# with VS2008 Setup project, how to add my program to the Programs menu?

Posted on 2012-03-21
5
Medium Priority
?
579 Views
Last Modified: 2012-03-22
Hi experts
I would like to create a short cut to my program so that user can execute the program by going to the Programs Menu.

I am using C# and VS2008.

Please refer to my attached screen shot:
I went into the "File System" under the Setup project.
I selected the "FAT" folder under the "User's Program Menu".
I right-click on "Create New Shortcut" in the Context Menu.
I got the screen as in the screen shot.
I want to select an executable but there is only "Primary output from FAT (Active)".

This "Primary output from FAT (Active)" consists of two files: FAT.exe (which I want) and app.config (which I also need but not to be displayed in the Programs Menu).

Could someone please tell me what I am missing? Thanks in advance.
Setup.JPG
0
Comment
Question by:dominicwong
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 40
ID: 37750841
For a Windows application, primary output is your executable. Create the shortcut on that and it should work.

When you have the shortcut selected, you can use the properties window to change a few things such as adding an icon and rephrasing the text (Name property), but leave the Target as Primary Output.
0
 

Author Comment

by:dominicwong
ID: 37750861
Hi James
Thanks for your prompt response.
When you said "Create the shortcut on the executable", did you mean I do it from the "Add File" button in the dialog box that I showed in the previous screen shot?
The only location for this executable will be in my development folder though. Had I misunderstood something? Kindly please enlighten.

Thanks.
0
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 2000 total points
ID: 37751730
Simply go OK in the "Select Item in Project" dialog in the screenshot. Although it is not explicitely stated, the shortcut to the Primary output is the shortcut to the executable.

The location is not saved at this step. You just told the installer to create a shortcut after the installation is complete. This shortcut cannot be created until that time, because the installer will give to the user the choice of the installation directory.
0
 

Author Comment

by:dominicwong
ID: 37755296
Thanks James. It works fine.

Somehow, when I chose the 'Primary output from FAT' yesterday,  it not only gave me the executable but also the "app.config" at the Programs Menu. I probably had selected "Add" rather than "Create New ShortCut".

Thanks again for your help and prompt responses.
0
 

Author Closing Comment

by:dominicwong
ID: 37755298
Thank you.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Viewers will learn the different options available in the Backstage view in Excel 2013.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question