PDA

View Full Version : Deleting Desktop Icons In Windows



NewsArchive
04-14-2017, 12:41 PM
Hi ALl

Is there any function in SetupBuilder that will allow me to delete old
desktop icon shortcuts from the repository held in windows?

Quite desperate for this sort of function or program I can call to do it.

Cheers
Andre

NewsArchive
04-14-2017, 12:41 PM
Hi Andre,

I use this line in SB:

Run Command Line ("ie4uinit.exe -ClearIconCache")

See "Refresh icon cache without rebooting":
http://superuser.com/questions/499078/refresh-icon-cache-without-rebooting

Perhaps you can use this info.

Best regards,
Jeffrey

NewsArchive
04-14-2017, 12:41 PM
Hi Jeffrey

That is exactly what I was looking for. Yo have obviously used this
before and it works. I am going to try this at execute programs. or
should it be modify system? Where do you insert it?

Cheers
Andre

NewsArchive
04-14-2017, 12:42 PM
Hi Andre,

I use this at the end of my SB script.
So first SB creates a Desktop shortcut (to MyApp.exe).
After that I run the command line to refresh the desktop in order to
show the current icon of the shortcut on the Desktop.

Best regards,
Jeffrey

NewsArchive
04-14-2017, 12:42 PM
> I use this at the end of my SB script.
> So first SB creates a Desktop shortcut (to MyApp.exe).
> After that I run the command line to refresh the desktop in order to
> show the current icon of the shortcut on the Desktop.

Thanks - it does seem to work very well indeed. I can also add and
remove desktop icons at will from within any app now. I may include
this dos command somewhere as well. There is an excellent batch file
explained at the end of that thread you posted. Virtualization may have
an impact here as the iconcache.db file seems to be unique to each user.
I am having a look at that as well.

Andre Labuschagne

NewsArchive
04-14-2017, 12:43 PM
Andre,

> an impact here as the iconcache.db file seems to be unique to each user.

As I mentioned in your other thread, but to Charles, it is...

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

--
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-14-2017, 12:43 PM
Glad I could help you!

Best regards,
Jeffrey

NewsArchive
04-14-2017, 12:44 PM
> Andre,
>
>> an impact here as the iconcache.db file seems to be unique to each user.
>
> As I mentioned in your other thread, but to Charles, it is...
>
> C:\Users\<user name>\AppData\Local\IconCache.db
>

That is what Jeffrey is referring to and what I am talking about.

Andre Labuschagne

NewsArchive
04-14-2017, 12:46 PM
Thanks - it certainly deals with potential rogue icon issues.

Andre Labuschagne