microsoft / AppModelSamples

Sample code for AppModel features
MIT License
200 stars 102 forks source link

Register sparse package from other than .NET application #29

Open winseros opened 2 years ago

winseros commented 2 years ago

The example demonstrates how to register a sparse package from a .NET app.

Apparently, a non-uwp application might be made in a number of non-.NET technologies.

How do I register my sparse package, if my application is implemented, say, in plain C++?

modz2014 commented 1 year ago

While the example is in .NET, the basic principles remain applicable across languages so it would not matter if its written in C++

ddomingos-encora commented 1 year ago

There is a great example in the Notepad++ repository: https://github.com/notepad-plus-plus/nppShell/blob/master/Installer.cpp And they did it in a smart way, so when regsvr32 is executed, if running on Windows 11, the sparse package gets registered as well. I hope it helps