Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I register a custom URL scheme without Administrator elevation?

There are many stack overflow questions about how to register a custom URL scheme (e.g. this one). However, the answer in every case seems to be to write to the privileged registry key HKEY_CLASSES_ROOT. My (wix-based) installer currently runs without elevation, installing per-user. Is there any way I can register a custom URL scheme without elevating to administrator privileges? I don't need to support anything older than Windows 7.

What I'm trying to achieve is to have links on a web page that perform specific actions in my application. My application is mostly .NET. The web page is ASP.NET.

like image 689
Boinst Avatar asked Apr 08 '15 08:04

Boinst


People also ask

How to add URL scheme in xcode?

Register your scheme in Xcode from the Info tab of your project settings. Update the URL Types section to declare all of the URL schemes your app supports, as shown in the following illustration. In the URL Schemes box, specify the prefix you use for your URLs.

How do I create a custom protocol?

Use the Filter Components > Protocols > Add Protocol page to define a new, custom protocol. 1. Enter a Name for the protocol. A custom protocol can be assigned the same name as a pre-defined protocol, in order to extend the number of IP addresses or ports associated with the original protocol.

What is a protocol handler windows?

Protocol handlers give the Windows Search indexer access to data stores, enabling the indexer to crawl the nodes of a data store and extract relevant information to index. Windows Search, for example, ships with protocol handlers for file system stores and for some versions of both Microsoft Outlook data stores.


1 Answers

I found the answer in this answer to a similar question. As an alternative to HKEY_CLASSES_ROOT, put the appropriate registry keys under HKEY_CURRENT_USER\Software\Classes. This location does not require elevation to write to.

like image 62
Boinst Avatar answered Nov 12 '22 04:11

Boinst