jbowshaw
29th July 2004 14:40 UTC
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
Joel
29th July 2004 14:49 UTC
Must be the icon cache.
Did you try rebooting the machine?
jbowshaw
29th July 2004 15:42 UTC
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
Afrow UK
29th July 2004 17:49 UTC
Try placing the icon in another folder other than $SMPROGRAMS (e.g. on C:) and see what happens.
-Stu
jbowshaw
30th July 2004 01:30 UTC
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
Brummelchen
30th July 2004 17:02 UTC
must be
Icon "c:\CheckEaseicon32x32.ico"
(forgot the backslash)
Afrow UK
30th July 2004 17:07 UTC
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
Brummelchen
30th July 2004 17:13 UTC
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.