View Full Version : No Icons for shortcuts to .BAT files

01-01-2005, 09:05 AM
I have created a setup wich creates some shortcuts to .BAT files. The Shortcuts work great but they don't have the symbol I have given them.

The just have thise standard dos symbol (this empty window with title bar).

What can I do to fix this problem?

Thank You

Christopher Painter
01-01-2005, 09:19 AM
You could include a resource DLL and then point the shortcut to an icon index within that dll.

01-01-2005, 10:42 AM
So the shortcut most point to a .DLL an .EXE or .ICO files dosn't works.

Is this right?

Thank You

Christopher Painter
01-01-2005, 11:17 AM
Sure, you can use any icon resource ( EXE, DLL or ICO )

01-01-2005, 12:36 PM
But when I use an included .EXE file as resource or even an .ICO file this icon will not be shown in the Startmenu.


Thank You

Tao Liang Shen
01-16-2005, 07:34 PM
i have the same problem. I tried hardcoding the ico to a system resource or using a packaged ico. both did not work.

also at the end of installer if you give the option to startup program(.bat). how would you be able to set the working directory or run the newly created shortcuts instead

Tao Liang Shen
01-16-2005, 10:22 PM
ah.. if you change the name of the icon and the reference shortcut using the Direct Editor then it works.

01-19-2005, 09:54 PM
Its related with the size of the icon used by the exe. If the size doesnot comply with the InstallShield size of icon, there is high possibility that the icon will not be displayed properly. so you can extract the icon from the exe(using icon extractor tools) and store it as icon file and display it.

01-20-2005, 09:12 AM
Perhaps also see InstallShield KB article Q106029, "Shortcut Linked to Batch File Does Not Have Proper Icon", at http://support.installshield.com.