Set as default app silently

1,168 views
Skip to first unread message

Manfred H.

unread,
Apr 28, 2021, 10:20:21 AM4/28/21
to ImageGlass Community
Hello,
we want to deploy ImageGlass (8.1.4.18) to our systems with Windows 10 LTSB as photo viewer alternative. Unfortunately I can't find a way to set it as a default silently.

I tried via igtasks but that doesn't do anything
igtasks.exe regassociations "*.png;"

Is there anyway to this?

Thanks
Manfred

Duong Dieu Phap

unread,
Apr 28, 2021, 10:28:41 AM4/28/21
to ImageGlass Community
Windows 10 does not allow 3rd-party apps to change default applications programmatically. 
The regassociations command is to register the supported extensions of ImageGlass to Windows, so that ImageGlass will appear under the "Default photo viewer" list in Windows Settings. However, you need to add more extensions, you can see the built-in formats at:



--
ImageGlass community
www.imageglass.org
---
You received this message because you are subscribed to the Google Groups "ImageGlass Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to imageglass+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/imageglass/6f45b12e-6e19-4fb2-92b1-4324c09067c3n%40googlegroups.com.

Manfred H.

unread,
Apr 29, 2021, 5:26:04 AM4/29/21
to ImageGlass Community
I could already set ImageGlass as Photo Viewer manually after the regassociation. But does anyone know how to set it centrally? Via .reg key or Powershell or whatever?

Duong Dieu Phap

unread,
Apr 29, 2021, 5:30:20 AM4/29/21
to ImageGlass Community
What do you mean centrally? ImageGlass window?





Manfred H.

unread,
Apr 29, 2021, 7:36:34 AM4/29/21
to ImageGlass Community
I mean with out user interaction. Installing the application on 70 clients is possible with the MSI and predefined config files. The only thing missing is setting ImageGlass as default Photo Viewer on all 70 clients e.g. by deploying a registry key or a GPO or running a local command.

Duong Dieu Phap

unread,
Apr 29, 2021, 7:41:50 AM4/29/21
to ImageGlass Community

The only thing missing is setting ImageGlass as default Photo Viewer on all 70 clients e.g. by deploying a registry key or a GPO or running a local command

Do you mind sharing the registry key, or GPO, or local command?
It may help other people, too.






Mailtrack Sender notified by
Mailtrack 04/29/21, 07:39:49 PM

Manfred H.

unread,
Apr 29, 2021, 7:48:27 AM4/29/21
to ImageGlass Community
Unfortunately I have nothing to share - I'm looking for a solution to this myself.

Allan Holdt

unread,
May 12, 2021, 9:18:04 AM5/12/21
to ImageGlass Community

This can be set using the following GPO setting.

The XML file needed can be extracted from a system with the right file associations already set using this command: dism /online /Export-DefaultAppAssociations:"C:\TEMP\DefaultFileAssociations.xml"
The XML file will include ALL file associations, so edit as needed and place on a fileshare reachable from all clients.


2021-05-12_15-13-31.png

Duong Dieu Phap

unread,
May 14, 2021, 3:15:43 AM5/14/21
to ImageGlass Community
Thanks a lot for sharing!




Manfred H.

unread,
May 14, 2021, 10:56:34 AM5/14/21
to ImageGlass Community
Thank you indeed! Worked like a charm.
What was special to consider is, that the command DISM can only be executed as admin. So you have to log in with your admin user and set the default app for photos and then export the settings.

Hint: if the GPO is assigned to a computer where ImageGlass is not (yet) installed, the default viewer might be reset to something unwanted. In my case it got set to Paint 3D on a test machine.

Reply all
Reply to author
Forward
0 new messages