Summary
Associating a File Extension With an IconSynopsis
Applies to InstallScript projects. This article associates a different icon file with an already existing file extension.
Discussion
Call RegDBSetKeyValueEx, or use a registry set, to change the data in the extension's DefaultIcon registry key.
HKEY_CLASSES_ROOT\<file extension type>\DefaultIcon
For example:
HKEY_CLASSES_ROOT\htmlfile\DefaultIcon
This registry key's "Default" registry value contains the path to the specfied icon is for the file extension. The string data in the DefaultIcon key can have either of the following formats:
"<path to icon file>"
For example:
"C:\Myicon.ico"
or
"<path to dll or exe>,<icon index>"
For example:
"C:\Mydll.dll,2"
If the data is an executable file's name with no icon index, the first icon in the file (the icon with index 0) is used.
Additional Information
For more information on setting shortcut icons, see the Help Library topics:
Related Articles
Associate Rule Expression to File Extensions 3Number of Views Creating File Extension Association with Express 3Number of Views "Unexpected error" occurred when clicking the Download icon of the attached document that has "#" in the file name 10Number of Views Inventory NDI file from Kubernetes node is discarded if it is older than associated cluster inventory 10Number of Views How Do I Associate File Types with My Program? 4Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago