Results 1 to 9 of 9

Thread: Icon on shoft cut not changing?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Icon on shoft cut not changing?

    Hi Friedrich,

    One my clients recently updated their main icon for their application.
    He is reporting to me that when he upgrades and existing installation on XP
    the desktop shortcut icon is changing to the new one.
    However, when upgrading a Win 7 machine the shortcut on the desktop still
    has the old icon but the shortcut in the Program Folders has the new icon.
    They've reproduced on more than one set of systems.

    The short cut is set to replace existing, is set to always install and the
    installer is running elevated.

    Any ideas?

    Thanks,
    Rick

  2. #2

    Default Re: Icon on shoft cut not changing?

    > One my clients recently updated their main icon for their application.
    > He is reporting to me that when he upgrades and existing installation on XP
    > the desktop shortcut icon is changing to the new one.
    > However, when upgrading a Win 7 machine the shortcut on the desktop still
    > has the old icon but the shortcut in the Program Folders has the new icon.
    > They've reproduced on more than one set of systems.
    >
    > The short cut is set to replace existing, is set to always install and the
    > installer is running elevated.
    >
    > Any ideas?

    Did you try issuing the Refresh Desktop script command at the end of your
    installer? That usually helps with things like that.

    Also does the correct one appear after a reboot?

    If not then you may be seeing Windows caching the old icon.

    Charles

    --
    -------------------------------------------------------------------------------------------------------
    Charles Edmonds
    www.clarionproseries.com - ProScan, ProImage, ProPath and other Clarion
    developer tools!
    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.pagesnip.com - "Print and Save the Web, just the way you want it!"
    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"
    -------------------------------------------------------------------------------------------------------

  3. #3

    Default Re: Icon on shoft cut not changing?

    Hi Rick,

    What Charles said. The machines seem to have a typical icon cache problem.
    What you can try is the "Refresh Desktop" script function. This might or
    might not help (depends on different factors). Other than that you can't do
    anything else (except a machine reboot).

    Friedrich

  4. #4

    Default Re: Icon on shoft cut not changing?

    I believe they said they tried a reboot.
    But I'll try adding the refresh desktop action.

    Thanks

    Rick Martin

  5. #5

    Default Re: Icon on shoft cut not changing?

    Hi Rick,

    > I believe they said they tried a reboot.
    > But I'll try adding the refresh desktop action.

    If it still displays the "wrong" icon even after a reboot then the Shortcut
    points to an incorrect icon file or icon index from the .exe resource.

    For example, you have an existing Shortcut and you display icon #3 from an
    ..exe. Now you update the .exe and you would like to display icon #5. But
    you did not replace the (existing) Shortcut so your shortcut still points to
    icon #3 in the next .exe.

    If a reboot does not help then it definitely points to the wrong icon
    file/index (and it is NOT a cache problem). If you do not point to a
    specific icon index then the icon in the .exe resource is incorrect (not the
    first icon in the .exe resource).

    Friedrich

  6. #6

    Default Re: Icon on shoft cut not changing?

    but then why would it work in XP and not in Win 7?

    Rick

  7. #7

    Default Re: Icon on shoft cut not changing?

    Rick,

    >
    > but then why would it work in XP and not in Win 7?
    >

    There must be a reason for it. If the Shortcut still displays the wrong
    icon even after a reboot then that specific Shortcut points to the wrong
    icon file or index (because a reboot always clears the cache).

    Friedrich

  8. #8

    Default Re: Icon on shoft cut not changing?

    Rick,

    We have tested the Shortcut replacement scenario on three different Windows
    7 (x64) machines. No "Refresh Desktop" function used, just a standard
    setup.

    The first setup installs a single test executable and a Desktop icon that
    points to icon #27 (located in the .exe). The update replaces the
    executable and the Shortcut (and points to icon #47 now). All Windows
    machines displayed the new Desktop icon immediately.

    Friedrich
    Attached Images Attached Images    

  9. #9

    Default Re: Icon on shoft cut not changing?

    If I get one stuck and nothing else works I do this (I'm sure the location is
    different on XP)

    Delete or rename:

    C:\Users\<username>\AppData\Local\IconCache.db

    Reboot.

    Forces Windows Explorer to completely rebuild it's Icon Cache as I'm sure you
    can see.

    Regards,
    Kelly E Major

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •