How can I associate file types with a StoreApp using Win32 programs or MSIX installers?

sosan 0 Reputation points
2023-08-16T07:49:53.95+00:00

I couldn't find how to associate file types with a StoreApp using Win32 programs or MSIX installers.

If there is a method, please let me know.

Thank you.

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,823 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,681 Reputation points
    2023-08-17T13:06:02.0366667+00:00
    Hello there,
    
    Using SupportedTypes seems more convenient.
    
    <RegistryValue Root="HKLM"  
                     Key="SOFTWARE\Classes\ConsoleApplication11.MyProgId"  
                     Name="FriendlyTypeName"  
                     Value="ConsoleApplication11 ProgID"  
                     Type="string" />  
      <ProgId Id="ConsoleApplication11.MyProgId"  
            Description="ConsoleApplication11 MyProgId"  
            Advertise="yes">  
        <Extension Id="xyz">  
          <Verb Id="open"  
                Command="Open"  
                Argument="&quot;%1&quot;"/>  
        </Extension>  
      </ProgId>  
      
       
      <RegistryValue Root="HKLM"  
                     Key="SOFTWARE\Classes\.xyz\OpenWithProgids"  
                     Name="ConsoleApplication11.MyProgId"  
                     Value=""  
                     Type="string" />  
    
    Similar discussion here https://learn.microsoft.com/en-us/answers/questions/1027477/how-to-associate-win32-app-with-existing-file-type
    
    
    Hope this resolves your Query !!
    
    --If the reply is helpful, please Upvote and Accept it as an answer--
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.