المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Installer doesn't register file types' icons properly.



C# Programming
09-04-2010, 01:40 AM
Hello,

I wrote my own installer in C#. It's all finished, except I'm having trouble with file type association, specifically file icons. I made my installer extract .ico embedded resource from its own .exe into the installation directory and set the registry key's DefaultIcon value to the icon file's path. (e.g C:\Program Files\Moonlite Map Studio\FileIcons\gx.ico,0), however in Windows Explorer only the .txt file icon shows up, so something must obviously be wrong.

What is the normal method to do it, and would I be able to do it programmatically?

Thanks,
Theo