• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 589
  • Last Modified:

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

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
dominicwong
Asked:
dominicwong
  • 3
  • 2
1 Solution
 
Jacques Bourgeois (James Burger)Commented:
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
 
dominicwongAuthor Commented:
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
 
Jacques Bourgeois (James Burger)Commented:
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
 
dominicwongAuthor Commented:
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
 
dominicwongAuthor Commented:
Thank you.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now