Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

How to register custom file extension in vsix?

$
0
0

Hi,

I do have a custom editor that handles ".my" files. Everything is working fine, but I want to associate the ".my" extension with the devenv.exe on the machine where the vsix gets installed, so that the files get opened with VS, if a user double clicks it in the Windows Explorer.

I can achieve this with a separate wix setup, but I'd also like to register the ".my" when just installing the vsix. Is there a possibility to achieve this?

I tried to work around this issue by writing the required RegKeys into ClassesRoot in my Package.Initialize, but I am not allowed to, since the process obviously has insufficient rights.

Is there any other way than starting a separate process with privileged rights in Package.Initialize that will write the required RegKeys? There has to be some built-in mechanism in VSIX!?


A programmer ia a tool to convert coffein to code.


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>