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

前端 未结 2 697
春和景丽
春和景丽 2021-01-17 12: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

相关标签:
2条回答
  • 2021-01-17 13:27

    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
    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题