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.
A tool was created, and a script for association in Windows 10.
There is also an appropriate function.
This is great news !
Is it possible on the basis of this function to make a plugin for NSIS ? It would be just wonderful !
Association of files in windows 10
7 posts
Is setting the association directly not enough?
Excerpt from makensis.nsi:
Excerpt from makensis.nsi:
ReadRegStr $R0 HKCR ".nsh" ""
StrCmp $R0 "NSHFile" 0 +2
DeleteRegKey HKCR "NSHFile"
WriteRegStr HKCR ".nsh" "" "NSIS.Header"
WriteRegStr HKCR ".nsh" "PerceivedType" "text"
WriteRegStr HKCR "NSIS.Header" "" "NSIS Header File"
WriteRegStr HKCR "NSIS.Header\DefaultIcon" "" "$INSTDIR\makensisw.exe,2"
ReadRegStr $R0 HKCR "NSIS.Header\shell\open\command" ""
${If} $R0 == ""
WriteRegStr HKCR "NSIS.Header\shell" "" "open"
WriteRegStr HKCR "NSIS.Header\shell\open\command" "" 'notepad.exe "%1"'
${EndIf}
${NotifyShell_AssocChanged} If the association is already "busy" by the default program - then not enough...
Windows 10 now always calculates the hash sum for file associations.
Windows 10 now always calculates the hash sum for file associations.
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
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
Maybe changes ... and maybe not, as not changes for years, many nonsense in Windows ...Originally Posted by Pawel View PostHowever, I think Microsoft will change HASH alghoritm for ProgID.
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 ...)
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...
Part of the secret key is "User Choice" which is perhaps why people are not really spreading this everywhere and using it in installers...
But in the NSIS of this still no ! And today it is very necessary and relevant.
And yet - can anyone make a plugin to associate files in windows 10 ?
And yet - can anyone make a plugin to associate files in windows 10 ?