https://github.com/lexz-08/url-scheme-manager
Makes adding/removing and managing custom URL Protocols for Windows easier.
https://github.com/lexz-08/url-scheme-manager
csharp registry registry-editor windows-10 windows-11
Last synced: 2 months ago
JSON representation
Makes adding/removing and managing custom URL Protocols for Windows easier.
- Host: GitHub
- URL: https://github.com/lexz-08/url-scheme-manager
- Owner: Lexz-08
- Created: 2022-10-09T20:43:51.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-09T21:01:44.000Z (over 3 years ago)
- Last Synced: 2025-06-18T18:47:38.494Z (about 1 year ago)
- Topics: csharp, registry, registry-editor, windows-10, windows-11
- Language: C#
- Homepage: https://github.com/Lexz-08/url-scheme-manager/
- Size: 14.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# url-scheme-manager
## Description
Makes adding/removing and managing custom URL Protocols for Windows easier.
## How To Use
This code example is made automatically referencing ***`url-scheme-manager.dll`***.
```csharp
// create custom uri-scheme info for example
var schemeInfo = new URLSchemeInfo
{
FriendlyName = "Example Scheme",
ProtocolPrefix = "example-scheme",
ProgramPath = "example-program.exe
};
bool hasScheme = SchemeManager.CheckForSchemeInfo(schemeInfo);
// add scheme info to Registry if not already added
if (!hasInstall) SchemeManager.AddSchemeInfo(schemeInfo);
// remove scheme info from Registry if already added
if (hasInstall) SchemeManager.RemoveSchemeInfo(schemeInfo);
```
## Documentation
* `URLSchemeInfo`: Uri-scheme info for your program
* `SchemeManager`
* `CheckForSchemeInfo`
* Returns `true` or `false` depending on whether or not the specified uri-scheme info was added to the Registry
* `AddSchemeInfo`
* Adds the provided uri-scheme info to the Registry
* `RemoveSchemeInfo`
* Removes the specified uri-scheme info from the Registry
## Download
[Standalone (x86/x32)](https://github.com/Lexz-08/url-scheme-manager/releases/latest/download/url-scheme-manager-x86.dll)
[Standalone (x64)](https://github.com/Lexz-08/url-scheme-manager/releases/latest/download/url-scheme-manager-x64.dll)