Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set-default-viewer at machine level #1828

Closed
zimbo86 opened this issue Jan 16, 2024 · 3 comments
Closed

set-default-viewer at machine level #1828

zimbo86 opened this issue Jan 16, 2024 · 3 comments

Comments

@zimbo86
Copy link

zimbo86 commented Jan 16, 2024

Is your feature request related to a problem? Please describe.

We´re running Image Glass on our terminal servers. In IG8 we run
Start-Process "C:\Program Files\ImageGlass\igtasks.exe" -argumentlist "regassociations ""*.png;*.jpg;*.gif;*.jpeg;*.bmp""" -wait
after deployment, so IG Classes were registered at HKLM\Software\Classes
The users default associations can easily be modified using the existing classes, for example ImageGlass.AssocFile.PNG

In IG 9 we run
Start-Process "C:\Program Files\ImageGlass\igcmd.exe" -argumentlist "set-default-viewer "".png;.jpg;.gif;.jpeg;.bmp;.webp""" -wait
however the classes are created in HKCU:\Software\Classes (also when whe run this with administrative privilege).
So the cmd has to run for each user.

Describe the solution you'd like

A HKLM switch to igcmd to create the classes in HKLM insted of HKCU, so we can handle all of our FTAs with a generic tool.

@d2phap d2phap added this to the v9.0.10 milestone Jan 17, 2024
@d2phap
Copy link
Owner

d2phap commented Jan 17, 2024

I will add new param for set-default-viewer command in the next release

@d2phap
Copy link
Owner

d2phap commented Jan 31, 2024

You can use --per-machine parameter in ImageGlass 9.0.10.201 to tell igcmd.exe use HKEY_LOCAL_MACHINE key.
Updated docs: https://imageglass.org/docs/command-line-utilities

Example:

igcmd.exe set-default-viewer .png;.jpg;.webp --per-machine

igcmd.exe remove-default-viewer .png;.jpg;.webp --per-machine

@d2phap d2phap closed this as completed Jan 31, 2024
@zimbo86
Copy link
Author

zimbo86 commented Feb 1, 2024

Thank you, can you please remove this popup or add a silent parameter?
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants