PDA

View Full Version : Icon On Desktop Issue



NewsArchive
04-10-2017, 04:03 AM
Hi All

I am clearly missing something here.

I have an install set that uses icon index 0 in the exe as the icon for
the desktop. There is only one icon used in the exe.

I have changed the icon and checked that it is changed in the exe.
Recompiled, built the install set and installed on the computer.

The icon on the desktop is still the old icon.

Checked the properties of the shortcut and the icon in the exe which has
changed. Confirmed it is the new icon. Pressed change icon, selected
index 0 and pressed apply. The icon remains the same on the desktop.
Pressed refresh desktop and still the same.

Deleted the shortcut and reinstalled the app with SetupBuilder and the
old icon reappears.

MS is playing silly buggers with me. What's up? What it the trick to
get this desktop icon to change?

Cheers
Andre

NewsArchive
04-10-2017, 04:04 AM
> What's up? What it the trick to get this desktop icon to change?

Hi Andre,

If you look at the file in the folder in Windows Explorer and confirm it
has the right icon, then you probably need to call the SetupBuilder
"Refresh Desktop" function at the end of your install (after the loop
wizard ends).

Does that help?

Charles



--
-------------------------------------------------------------------------------------------------------
Charles Edmonds

cjeByteMeSpammers@lansrad.com (remove the "ByteMeSpammers" to email me)
www.clarionproseries.com - ImageEx, ProScan, ProImage, ProPath and other
Clarion developer tools!
www.seal-soft.com - The xProduct Clarion templates - xWordCOM, xToolTip,
xDataBackup Manager and more!
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms - Now with PNG support!
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
04-10-2017, 04:06 AM
Charles,

> Does that help?

As it was explained to me Windows hangs on to shortcut information
even if the shortcut has been deleted from the desktop. Part of that
information is the icon offset within the icon source, such as the
EXE. If the offset and source remain the same Windows will continue to
use the icon it has written into its cache.

In Windows 7 and 10 the cache is a hidden file...

C:\Users\<user name>\AppData\Local\IconCache.db

You can delete this file and Windows will rebuild it during the next
user login. Or, what usually works, is selecting a different icon
offset in the source. In other words recompile the source putting the
new icon in slot 0 and 1 and tell the shortcut to use 1 instead of 0.

Did that make any sense?!<g>

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com

Creative Reporting: http://www.CreativeReporting.com

Product Release & Update Notices
http://twitter.com/DeveloperPLUS

Windows 8 brings us "The Oval, Bumper Car, Roller Coaster of Wait!"
And, now, Windows 10 brings us "The Inch Worm, Bumper Car of Wait!"

NewsArchive
04-10-2017, 04:15 AM
That helps - looking now. Thanks.

Andre Labuschagne

NewsArchive
04-10-2017, 04:16 AM
Did not work for one of the installs. No idea why.

And two of the installs are not listed in the Add Remove Programs in the
Control Panel. Really weird.

Andre Labuschagne

NewsArchive
04-10-2017, 04:16 AM
Andre,

> And two of the installs are not listed in the Add Remove Programs in the
> Control Panel. Really weird.

Make sure you haven't duplicated the Product GUID in the installs.

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com

Creative Reporting: http://www.CreativeReporting.com

Product Release & Update Notices
http://twitter.com/DeveloperPLUS

Windows 8 brings us "The Oval, Bumper Car, Roller Coaster of Wait!"
And, now, Windows 10 brings us "The Inch Worm, Bumper Car of Wait!"

NewsArchive
04-10-2017, 04:19 AM
That makes sense - but it sounds like a real mess to me. This is for
tens of thousands of users out there. They hardly know which planet
they are on.

What I have now is the following. I have made sure that there is only
one icon in each of three installs. They initially use the same icon
[don't ask why]. The new icons are correct in the exe and all the
settings in SetupBuilder seem correct as well. Everything is pointing
to the new icons. When I install the three apps the first two have the
icon changed on desktop but the third does not. And here is the odd the
thing. The third app appears in the add remove section of the control
panel and the first and second does not ROFL!

The circles are getting smaller and smaller and smaller. No idea where
to look to fix. Trying to avoid the offset 1 for the moment as that has
bitten me in the pas as well.

Andre Labuschagne

NewsArchive
04-10-2017, 04:20 AM
> Andre,
>
>> And two of the installs are not listed in the Add Remove Programs in the
>> Control Panel. Really weird.
>
> Make sure you haven't duplicated the Product GUID in the installs.
>

That was it for the add and remove - they did have the same product GUID
as like an prize idiot I have copied the install and not changed that.

Trying the icon 1 position trick now.

Andre Labuschagne

NewsArchive
04-10-2017, 04:23 AM
Now I have to work out how to get a second icon into the exe :-(

Andre Labuschagne

NewsArchive
04-10-2017, 04:26 AM
Whatever you do, have Lee test it out for you<g>.

Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.

Grammar troll's, are the worse.

NewsArchive
04-10-2017, 04:27 AM
Jeff,

> Whatever you do, have Lee test it out for you<g>.

Never gunna let it go, are ya?!


<g>

Lee White

NewsArchive
04-10-2017, 04:27 AM
Ha - good point.

Andre Labuschagne

NewsArchive
04-10-2017, 04:28 AM
> You can delete this file and Windows will rebuild it during the next
> user login. Or, what usually works, is selecting a different icon
> offset in the source. In other words recompile the source putting the
> new icon in slot 0 and 1 and tell the shortcut to use 1 instead of 0.

It is mind boggling that windows 10 does not allow a desktop icon to be
changed for any particular program. What were these people thinking?

I still have no idea how to ship a second icon inside an exe even if it
is not actually used anywhere. Any ideas?

With windows one step forward, 10 steps backwards.

Andre Labuschagne

NewsArchive
04-10-2017, 04:29 AM
>I still have no idea how to ship a second icon inside an exe even if it
>is not actually used anywhere. Any ideas?

In the Solution, add it (the icon file) to the APP's Library, Objects and Resources.

Otherwise try this:

1: delete the C:\Windows folder
2: reformat the HDD
3: Install Linux (any variety)
4: delete Linux
5: reformat the HDD
6: reinstall Windows
7: install your fresh program <G>

JohnG

NewsArchive
04-10-2017, 09:12 AM
ROFLMAO!

> In the Solution, add it (the icon file) to the APP's Library, Objects
and Resources.

This is not Clarion.....

Andre Labuschagne

NewsArchive
04-12-2017, 03:14 AM
Let what go?<g>

Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.

Grammar troll's, are the worse.

NewsArchive
04-12-2017, 03:15 AM
Jeff,

> Let what go?<g>

Luckily for others I am no longer wise but have far better wisdom
since adopting Setup Builder. I think you'll agree with that.

I know I'll always be NUMBER ONE to you!<g>

Lee White

NewsArchive
04-12-2017, 03:16 AM
You can also google

ie4uinit.exe -ClearIconCache
ie4uinit.exe -show

Jane Fleming

NewsArchive
04-12-2017, 03:16 AM
Andre,

> This is not Clarion.....

And you're wondering why you have problems?!<g>

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com

Creative Reporting: http://www.CreativeReporting.com

Product Release & Update Notices
http://twitter.com/DeveloperPLUS

Windows 8 brings us "The Oval, Bumper Car, Roller Coaster of Wait!"
And, now, Windows 10 brings us "The Inch Worm, Bumper Car of Wait!"

NewsArchive
04-12-2017, 03:17 AM
Thanks Jane.

Andre Labuschagne

NewsArchive
04-12-2017, 03:18 AM
> Andre,
>
>> This is not Clarion.....
>
> And you're wondering why you have problems?!<g>
>

Well, do not get me going down that road now :-)

Andre Labuschagne