![]() |
#1 |
Senior Member
Join Date: Nov 2012
Posts: 165
|
Association of files in windows 10
With the advent of Windows 10, it was not possible to associate the necessary files in advance when installing any program - due to the individual hash amount for each file associations ...
But the calculation algorithm for this hash amount was found. https://github.com/DanysysTeam/PS-SFTA A tool was created, and a script for association in Windows 10. There is also an appropriate function. https://pastebin.com/raw/GFUz3snK This is great news ! Is it possible on the basis of this function to make a plugin for NSIS ? It would be just wonderful ! |
![]() |
![]() |
![]() |
#2 |
Major Dude
Join Date: May 2005
Location: New Zealand
Posts: 906
|
Is setting the association directly not enough?
Excerpt from makensis.nsi: PHP Code:
"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me) NSIS 3 POSIX Ninja Wiki Profile |
![]() |
![]() |
![]() |
#3 |
Senior Member
Join Date: Nov 2012
Posts: 165
|
If the association is already "busy" by the default program - then not enough...
Windows 10 now always calculates the hash sum for file associations. |
![]() |
![]() |
![]() |
#4 |
Moderator
|
That is interesting!
However, I think Microsoft will change HASH alghoritm for ProgID. There should not be possibility to associate file extansions without user manual action... Are we going to back to XP times, where all programs could make a mess in registry? -Pawel PLEASE DONATE Projects: My Website | NSIS PL | Winamp PL | Winamp Help (PL) | Ultimate File Manager Winamp translations: Oficjalny Polski Pakiet Językowy (Official Polish Language Pack) Other Winamp projects: Winamp Color Themes | Winamp Icon Packs Winamp Tools: Winamp Tools (All About Winamp | Winamp Backup & Restore | Winamp Translator) |
![]() |
![]() |
![]() |
#5 |
Senior Member
Join Date: Nov 2012
Posts: 165
|
Maybe changes ... and maybe not, as not changes for years, many nonsense in Windows ...
As long as the algorithm has not changed, it would be nice to make a plugin for file associations. (And if it change, then the coding masters and it is calculated ...) |
![]() |
![]() |
![]() |
#6 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,358
|
This has been around for many years, see https://stackoverflow.com/questions/...explorer-filee
Part of the secret key is "User Choice" which is perhaps why people are not really spreading this everywhere and using it in installers... IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#7 |
Senior Member
Join Date: Nov 2012
Posts: 165
|
But in the NSIS of this still no ! And today it is very necessary and relevant.
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|