VMware Horizon Community
Lieven
Hot Shot
Hot Shot
Jump to solution

DEM 9.10 and support for File Type Associations and Protocols

Hi,

In DEM 9.10 there is now support for File Type Associations and Protocols.

The documentation however does not specify the syntax to be used.

Whilst it is easy to set up a FTA in DEM (see below screenshot), I am not sure what the syntax is to use for protocol associations.

Currently I am pushing the config via group policy through a DefaultAssociations.xml file (see attached file), but I would prefer to use DEM for both FTA and Protocol associations

Is there somewhere a good explanation on how to perform protocol associations?

Thanks,

Lieven

FTA.png

1 Solution

Accepted Solutions
DEMdev
VMware Employee
VMware Employee
Jump to solution

Hi Lieven,

There's no fancy UI (yet?) to create protocol associations, but you can do it by creating/tweaking an XML file and applying that via predefined settings or Files and Folders settings.

When DEM persists default app settings via the Default applications Windows Common Setting, it performs a "normal" registry export, but it also creates a Registry\Default Applications.xml file. That file ties file extensions and protocols to specific ProgIDs, very similar to the approach used by DefaultAssociations.xml.

The easiest approach is probably to create a personalization config file to capture Default applications, set up everything to your liking, log off, and take a look at the Registry\Default Applications.xml file from the profile archive that was created. Just remove everything that's not relevant, making sure that the overall structure and file encoding are left intact.

Then create a new predefined setting or Files and Folders setting (manually creating the Registry sub folder among all the other pre-created profile folders that you don't need Smiley Happy), and drop your Default Applications.xml file into the Registry sub folder.

For Chrome, it would look like something like this:

pastedImage_12.png

View solution in original post

5 Replies
DEMdev
VMware Employee
VMware Employee
Jump to solution

Hi Lieven,

There's no fancy UI (yet?) to create protocol associations, but you can do it by creating/tweaking an XML file and applying that via predefined settings or Files and Folders settings.

When DEM persists default app settings via the Default applications Windows Common Setting, it performs a "normal" registry export, but it also creates a Registry\Default Applications.xml file. That file ties file extensions and protocols to specific ProgIDs, very similar to the approach used by DefaultAssociations.xml.

The easiest approach is probably to create a personalization config file to capture Default applications, set up everything to your liking, log off, and take a look at the Registry\Default Applications.xml file from the profile archive that was created. Just remove everything that's not relevant, making sure that the overall structure and file encoding are left intact.

Then create a new predefined setting or Files and Folders setting (manually creating the Registry sub folder among all the other pre-created profile folders that you don't need Smiley Happy), and drop your Default Applications.xml file into the Registry sub folder.

For Chrome, it would look like something like this:

pastedImage_12.png

Lieven
Hot Shot
Hot Shot
Jump to solution

Hi DEMdev​,

Thanks for the answer.

It seems VMware marketing painted the picture nicer then it actually is: No UI, No documentation, tweaking xml files manually, ...

I think I am going to continue using the defaultassociations.xml file and push it via GPO for the moment to get the protocol associations in place.

Let's hope the next release will built protocol associations into the UI.

Regards,

Lieven

PS: Other welcome UI initiatives would be to be able to define the start layout and taskbar layout via DEM instead of using xml files being pushed via GPO.

MaxStr
Hot Shot
Hot Shot
Jump to solution

How do you set the file associations to use a UWP app? For example, open image files with Microsoft Photos?

rbich10
Contributor
Contributor
Jump to solution

MaxStr

I would love to know how to do this as well. Were you able to locate any resource on proper syntax to accomplish this?

Thanks!

How do you set the file associations to use a UWP app? For example, open image files with Microsoft Photos?

Reply
0 Kudos
Lieven
Hot Shot
Hot Shot
Jump to solution

To set file associations to use an UWP app you should do the following:

  • On a reference computer set the associations manually
  • On the reference computer run the following command: dism.exe /online /Import-DefaultAppAssociations:defaultassociations.xml
  • Run the following command to apply the file associations: dism.exe /online /Import-DefaultAppAssociations:defaultassociations.xml

See also Export or Import Default Application Associations | Microsoft Docs

Reply
0 Kudos