/build/static/layout/Breadcrumb_cap_w.png

Add Icon to shortcut?

Hello!

Trying to add an icon to a shortcut that i have created and it is harder then i thought i would be! :)

As i understand i need to put the .EXE file with the icon that i want to use in the Binary Table, then create a record in the Icon Table and specify that Icon in the Icon field of the Shortcut table? Right?

The problem is that i have no idea how to populate the Binary Table with any information. I am Using Inst ED.

Can anyone give help me or give me some direction on how to accomplish this.

Thanks!

// Bartoooo

0 Comments   [ + ] Show comments

Answers (4)

Answer Summary:
Posted by: Bartoooo 12 years ago
Orange Belt
23
Found out how!!!

I just added a record in Icon table and browsed to the .EXE file. Added that file to Icon Field of the Shortcut table and BAMM!

A New Nice Icon!
Posted by: RandomITPro 12 years ago
4th Degree Black Belt
4
The following vbs script will create a shortcut in the allusers folder, and assign it an icon

set objShell = Wscript.Createobject("Wscript.Shell")
strDesktopFld = objShell.SpecialFolders("AllUsersDesktop")
Set objURLShortcut = objShell.createShortcut(strDesktopFld&"\YourShortcut.lnk")
'Name for Shortcut to add
objURLShortcut.Targetpath = "http://www.itninja.com/question/add-icon-to-shortcut"
'Path to icon
objURLShortcut.IconLocation = "C:\PATHTO\YourIcon.ico"
'Path for Shortcut
objURLShortcut.Save
Posted by: saranyadurairasu 12 years ago
Orange Belt
0

Open your windows installer editor .. In the installation expert tab go to project definition and click to Add/Remove programs and select the  display icon in add /remove programs .and display icon, browse to the .exe file..save your installation and test 

Posted by: lukus22 8 years ago
White Belt
0
I'd like to expand on this - Using Insted:

  • Open the MSI
  • Click "Show Empty Tables" checkbox
  • Open the "Icon" Table.
  • Right click, then add row.
  • First value will be whatever the icon will be referred to within the MSI.
  • Second value, browse to the exe with the icon you want, and click the <-- button to load the file.
  • Click OK

  • Open the shortcut table
  • Identify the shortcut you are working on, and enter the name of the icon you entered into the icon table.
You can now save the MSI, and the shortcut should now have the icon you specified.

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ