Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I embed a banner image and or add remove programs icon in my setup project?

I'm using a setup project in visual studio 2010 to create an installer for a program I'm working on. I want to have a custom banner image in my setup as well as a custom icon in add remove programs.

I've added both these images to the "Application Folder" of my installer and was able to get them to show up correctly. However, my program is not very big and only installs as an EXE and a few DLLs. So it seems a little silly to me that the 4th and 5th files that get "installed" are graphics only used during installation.

Is there some way I can embed these images in the installer or one of my other projects?

like image 211
Eric Anastas Avatar asked Feb 04 '11 18:02

Eric Anastas


People also ask

How do I add an icon to setup project in Visual Studio?

Right click on you windows application project, select properties. In the properties window, select the application tab. In the application tab, there is a radio button saying Icon and manifest. Select that and browse and select your custom icon for the application in the Icon drop down menu.

What is a banner image?

A banner image (also called a “hero” image) is the big picture that you see when opening up a website design. It is usually located at the top, but its location can vary as recent design trends shift and designers try to make their websites look more unique.


1 Answers

I'm currently using VS 2008 and just been playing around with the setup project. I believe the following works - it did in my tests.

  1. Select the setup project in the solution explorer window.
  2. Right click and select Add/File
  3. Find your banner Image file and add it.

You will see that it's been added to the Application folder.

  1. Select the banner file in the application folder - or in the project list on the solution explorer.
  2. Open the Properties Window
  3. On the properties set "EXCLUDE" to TRUE.

When you set exclude to true you will see the banner file removed from application folder - but it will still be shown in the project tree - the icon will for the file will have a little red circle with a line through it.

I've done this with both the banner and a custom icon and tested my install - worked fine with both and neither file showed up in the application folder.

Hope this helps.

like image 157
Harag Avatar answered Nov 05 '22 00:11

Harag