special icons for files created with app or associated with app

ethicalhacker

Well-known member
Joined
Apr 22, 2007
Messages
142
Location
Delhi,India
Programming Experience
5-10
Can this be done, can i make special icons for files created by my app such as Adobe reader give the pdf file its own icon. How can i associate certain files to have certain icons for my application
 
The Express ClickOnce deployment you're using now don't have this possibility, the full version MSI Setup Project can do this easily with FileType editor, see these two:
http://www.getdotnetcode.com/nexDot...05/How_To_Associate_File_Extension_VB2005.htm
http://vbcity.com/forums/topic.asp?tid=72258

There is also the possibility to create the registry settings (a leaf in the ClassesRoot) needed in code, see:
http://www.vbcity.com/forums/topic.asp?tid=72502
You can also create the registry settings manually with RegEdit on your dev system and export it to a .reg file, then to import it in target registry you can just issue the command "regedit /s c:\thefile.reg" or similar, the /s switch means 'silent' in order to avoid the default user dialog "do you want to import..?"
The problem with manual registry changes is they aren't removed if application is uninstalled, but still may be useful in some deployment situations.
 
Back
Top