Hkeylocalmachine Software Clients Mail Default Program Associations

Автор:

Most likely you have some users who need to use the expensive full version of Adobe Acrobat while other users simply need to be able to view PDF documents with the free Acrobat reader. Ideally you’d like to mix these users on the same Terminal Server. The challenge is not about securing access to the Acrobat application. Rather, the challenge is that when users double-click a PDF file, you want a few of them to open it with the full version of Acrobat and you want the rest of them to open it with the free Acrobat reader. (Another popular example of this is with the full version of Microsoft Word and the free Word viewer.) This can be done by installing both applications on the same server and applying some scripting to adjust file type extensions.

In a nutshell, you’ll need to install both applications on the server and then configure the file extension associations on a per-user basis so that some users clicking a file open one application and some users open another. File type information and associations are stored in the HKEY_CLASSES_ROOT (HKCR) hive of the registry. HKCR is built-up from two locations: HKEY_LOCAL_MACHINE SOFTWARE Classes and HKEY_CURRENT_USER SOFTWARE Classes. If a subkey or entry appears in either location, it automatically appears in HKCR.

HKEY_LOCAL_MACHINE SOFTWARE Clients Mail; Right click on the Mail key and select Export option for exporting a backup copy. Save the copy for backup at the desired location. Right click on Mail key, click on New and select Key; Create a new key with the name Outlook64Bridge; Under Outlook64Bridge key, create a key with the name DLLPath. Aug 30, 2016 - To open a Write new e-mail using mailto association. REGEDIT4 [HKEY_LOCAL_MACHINE Software Microsoft Windows CurrentVersion. Prodavcov

If there are any conflicts in the source keys, the HKCU takes precedence. (This is a good thing and what fundamentally allows us to do per-user file associations.) A single file type can actually have multiple applications associated with it.

This is why right-clicking and choosing “Open With” on a.DOC file will list Microsoft Word and WordPad as options. There’s no real limit to the number of different applications that can be associated with a single file type, although each file type has a “primary” association. This primary association represents the program that’s used to open the file when the file itself is double-clicked, and it’s the option we care most about here. Windows comes with a couple of slick command-line utilities (“ftype” and “assoc”) used to manage file extension associations. In theory these tools would be perfect for what we want to do. Unfortunately, these two tools are hardwired to change file association information stored in HKLM, not HKCU. Therefore, using these tools in a Terminal Server environment would change the file associations for all users on the server instead of the specific user where the tool was used.

Because of this we’ll need to look to other ways of adjusting file associations. Fortunately, we can customize file associations on a per-user basis simply by adding a new registry key / value pair. However, knowing exactly what to add for a specific application can be tricky, so we’re going to need to dig in again to learn more about how file type associations really work. In 32-bit Windows environments, file type association is a two-step process. • First, you need to configure a file type. For example, this would simply define “Microsoft Word Document” as a file type that’s opened with “c: program files microsoft office program winword.exe.” • Second, you need to associate a particular file extension with a file type.

Hkey local machine software clients mail default program associations free

In our example, that would be saying that files with the.DOC extension are of type “Microsoft Word Document.” Fortunately the application setup procedures take care of registering the file types with Windows. They also associate the relevant file extensions with their file types.

Therefore, in order to change a file association for a user, all we need to do is point the file extension to a different file type. So why did we spend all this time talking about file types? In our simple example, we called the file type “Microsoft Word Document.” In the real world, the file type name is a bit more cryptic. (For example, the internal file type for a Microsoft Word Document is “Word.Document.8,” and the file type for a WordPad document is “WordPad.Document.1.”) Therefore, before you can configure any file associations manually (or via a script), you need to figure out the internal file type names of your applications. For me, the easiest way to do this is with a built-in command called “ftype.” I think it’s quickest and easiest to run “ftype more” from a command prompt.