Set file extensions after install by script #87

Closed
opened 2023-01-19 11:47:15 +01:00 by mschmidt · 7 comments
Owner

The goal is to assign file extensions automatically by a script. This has already been done for Firefox. No we need to do that also for .jpg and .png and so forth.

Beware! For ".txt" you can do this (like in old times) with "assoc" and "ftype" BUT NOT FOR image/photo files! For these you must do it with DISM (or some other method). See here:

https://www.itechtics.com/set-default-apps/

Reason: Irfan View CAN NOT set this for windows 10! (see screenshot).

image

The goal is to assign file extensions automatically by a script. This has already been done for Firefox. No we need to do that also for .jpg and .png and so forth. Beware! For ".txt" you can do this (like in old times) with "assoc" and "ftype" BUT NOT FOR image/photo files! For these you must do it with DISM (or some other method). See here: https://www.itechtics.com/set-default-apps/ Reason: Irfan View CAN NOT set this for windows 10! (see screenshot). ![image](/attachments/0af58ff7-cb1a-4258-8aab-278512304bc7)
mschmidt added the
bug
enhancement
labels 2023-01-19 11:47:15 +01:00
mschmidt self-assigned this 2023-01-19 11:47:15 +01:00
Author
Owner
https://www.winhelponline.com/blog/set-default-browser-file-associations-command-line-windows-10/
Author
Owner
We will use THIS: https://danysys.com/set-file-type-association-default-application-command-line-windows-10-userchoice-hash-internal-method/ Compiled with PureBasic from Source: https://raw.githubusercontent.com/DanysysTeam/SFTA/master/SFTA.pb
Author
Owner

SFTA tested and integrated.

SFTA tested and integrated.
Author
Owner

commit ad5abad9f1 (HEAD -> master, origin/master, origin/HEAD)
Author: Michael H.G. Schmidt michael@schmidt2.de
Date: Thu Jan 19 14:31:37 2023 +0100

Set file extensions after install by script #87
commit ad5abad9f1f2cd21f3fe4cfea0b46cb2cc1f2f58 (HEAD -> master, origin/master, origin/HEAD) Author: Michael H.G. Schmidt <michael@schmidt2.de> Date: Thu Jan 19 14:31:37 2023 +0100 Set file extensions after install by script #87
Author
Owner
SetUserFTA and the binary SFTA is ONLY per user. Crap. Please evaluate: https://learn.microsoft.com/en-us/archive/blogs/windowsinternals/windows-10-how-to-configure-file-associations-for-it-pros
Author
Owner

Microsoft "solution" doesn't work with 20H2.

Microsoft "solution" doesn't work with 20H2.
Author
Owner

fixed:

commit 41a12df810 (HEAD -> master, origin/master, origin/HEAD)
Author: Michael H.G. Schmidt michael@schmidt2.de
Date: Fri Jan 20 22:33:32 2023 +0100

bugfixing
fixed: commit 41a12df8103bc028c25c710fb00e3e484958bb85 (HEAD -> master, origin/master, origin/HEAD) Author: Michael H.G. Schmidt <michael@schmidt2.de> Date: Fri Jan 20 22:33:32 2023 +0100 bugfixing
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: WINDOWS/w10install#87
No description provided.