How do we use the ProgID column in the File Associations settings?

我与影子孤独终老i 提交于 2019-12-01 14:10:40

问题


I'm deploying my application using ClickOnce.

I want to register a file association but I can't manage to make it work: What should I use as ProgID in the File Associations section of the Publish Options?


回答1:


It's a name that uniquely identifies the file type. So a description might be "Document created with Microsoft Word" and the ProgID might be "Word". If your app name is short, you can just put that in there. If your app name isn't short, put in some abbreviation of it.




回答2:


Some examples from the registry subkeys
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\ ~ \OpenWithProgids:

  • .bmp - Paint.Picture
  • .csproj - VisualStudio.Launcher.csproj.15.0
  • .csv - Excel.CSV
  • .docx - Word.Document.12
  • .mp4 - WMP11.AssocFile.MP4


来源:https://stackoverflow.com/questions/2681604/how-do-we-use-the-progid-column-in-the-file-associations-settings

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!