Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 120661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:50:48+00:00 2026-05-11T03:50:48+00:00

I have an application that gets installed with a Wise installer (EDIT: Wise creates

  • 0

I have an application that gets installed with a Wise installer (EDIT: Wise creates a Setup.exe file, not an MSI). Upon installation, an icon is set for a certain file type:

HKEY_CLASSES_ROOT\.auz\DefaultIcon = C:\Path\To\App\some_icon.ico,0 

Right after the installation, however, Explorer chooses to display this icon using the generic ‘white sheet + application icon’ icon, which is different (and not provided by me).

Upon first launch, the application itself registers icons and other file associations, so that the last run version ‘owns’ those documents. At that point, Explorer changes the icon for this file type and displays the correct one, but when I look at the registry, the value for DefaultIcon is exactly the same.

This is what I’ve tried so far

  • Removing all entries from the registry, and writing them myself.
  • After the installation, ‘touching’ the value of DefaultIcon, and then launching a small little program that only calls SHChangeNotify(SHCNE_ASSOCCHANGED) (my program does this after updating the file associations in the registry).
  • After the installation, killing and restarting Explorer.
  • After the installation, using TweakUI to ‘repair’ the icons on the desktop.

None of these work. The only way to get the correct icon is to let the program itself install it. I can’t find any change in the registry. I’m pulling my hair off.

What I would like to avoid

  • Testing with another installer software
  • Changing the installation script too much (I don’t have Wise itself, as the installer gets built on another machine on demand).
  • Embed the icons in the executable.

Any suggestions on how to get Explorer to display the correct icon after installation?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T03:50:48+00:00Added an answer on May 11, 2026 at 3:50 am

    Here’s the solution.

    Each file type (let’s say ‘.auz’ in this case) was registered with:

    • A DefaultIcon key with the path to the icon resource, and
    • A value for the HKEY_CLASSES_ROOT\.auz\(default) value giving a description of the file type, e.g. ‘Foobar Document’.

    In addition to this, there was an entry for the ‘Foobar Document’ document type, or more specifically, a key for how to open such documents from the shell:

    HKEY_CLASSES_ROOT\Foobar Document\Shell\command\open\(default) = C:\Path\To\App.exe '%1' 

    Apparently, this key supersedes the value written for the specific file extension. Because the icons are external to the .exe file, Windows Explorer then used the first icon of the application to create an icon for all files of type ‘Foobar Document’ (that ‘white sheet + application icon’ icon I mentioned).

    Now, what I had wrong was that the application itself does change the value of

    HKEY_CLASSES_ROOT\.auz\(default) 

    to a slightly different value when starting, say ‘Foobar 1.2 Document’ (the problem with not being DRY). Thus, the link to ‘Foobar Document’ was lost, and the .auz files got their icons after the first launch.

    So I fixed this all by simply removing the HKEY_CLASSES_ROOT\Foobar Document key altogether, and voilà!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have an application that gets hit with over 20,000 users daily and
We have a web application that is based around a form that gets passed
I have an application that is sensitive to the directory it gets invoked from
I currently have a database that gets updated from a legacy application. I'd like
I have an application that reads a CSV file with piles of data rows.
I have an application that sends messages to an external web service. I build
I have an application that displays an image inside of a Windows Forms PictureBox
I have an application that uses NHibernate as its ORM and sometimes it experiences
I have an application that I would like to embed inside our companies CMS.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.