Archive: ICON Doesn't show up on install


ICON Doesn't show up on install
Hi,

I developed a install script which runs fine on
my own machine, but when used on other systems,
the Desktop Icon doesn't show up and neither
does the program icon (i.e. Start->Programs->Program Group->Program Name (icon)

Can anyone help me?

Here is some of my script.



Icon"c:\CheckEase\icon32x32.ico"

The above line grabs the icon from my pc to include
in the exe file

CreateShortCut"$DESKTOP\CheckEaseApplication.lnk""$INSTDIR\CheckEase.exe""""$SMPROGRAMS\MarknetGroup\CheckEase\icon32x32.ico"

The above line puts it on the desktop. Now this
works on my pc but not on anyone elses.

Any Idea what the problem is?

Regards,

Jim

Must be the icon cache.

Did you try rebooting the machine?


Both myself and my friend tried rebooting and the icon
cache didn't work.

Now when I click on the desktop shortcut on my
machine (which has the icon) and click on properties,
there is a button for change icon. When I click on
this, I receive an error stating that Windows can't find
'%USERPROFILE%\Start Menu\Programs\..\..\icon32x32.ico.

Could the above be the problem?

Please look at the attached image of the directory
which includes the exe and ico file.

Regards,

Jim


Try placing the icon in another folder other than $SMPROGRAMS (e.g. on C:) and see what happens.

-Stu


Well I figured it out...sorta.

I included the icon in the VB.NET exe file
then refered to it using the exe file name
and the icon relative reference of zero.

Thanks to everyone who responded.


Jim


must be

Icon "c:\CheckEaseicon32x32.ico"

(forgot the backslash)


Originally posted by Brummelchen
must be

Icon "c:\CheckEaseicon32x32.ico"

(forgot the backslash)
No, that's just because he used [PHP] for his code (it strips off all \)

-Stu

oh, sorry...

I suggest him/you to put the icon NOT into SMSPROGRAM - put into program (install) dir or under %windir%/cursors.

But the icon - once defined and accepted in NSI for exe - is shown, whereever you put the link.