Alex Gordon
Alex Gordon

Reputation: 60871

specifying an icon to be put on the desktop during installation

when the user installs my vb.net application, i would like my icon (a shortcut) to be placed on the user's desktop. i am using vb express 2008, and am using the installer that it comes with. how do i specify an icon for this:?

Upvotes: 1

Views: 8309

Answers (2)

Shimmy Weitzhandler
Shimmy Weitzhandler

Reputation: 104811

When you create the setup project include the icon in the desktop folder:

Open Visual Studio

  1. Create New Project->Project types = setup and deployment -> Setup Project
  2. Add your application to the setup project (Right click on Application->Add)
  3. Select "User's Desktop item"
  4. Right-click the space
  5. Browse to the applicaiton and add the shortcur.

UPDATE after comment:

You can make a manual installer that simply copies the exe file + a shortcut on the desktop (read this).

Upvotes: 4

dnatoli
dnatoli

Reputation: 7012

Not sure if it's the same in vb 2008 express but in VS2008, you can right click on the setup project and choose View->File System, then in the User's Desktop folder add the shortcut. I believe the shortcut will pick up whatever icon you have specified for the output you select for that shortcut. You can set up the icon by right clicking on your UI project, going to Properties->Application, then selecting the icon in the Icon drop down.

Again this is all VS2008 so not sure if its the same as vb 2008 express but hope it helps.

Upvotes: 1

Related Questions