- NSIS Discussion
- Full access to the registry keys in Windows 8
Archive: Full access to the registry keys in Windows 8
stass
14th November 2012 06:46 UTC
Full access to the registry keys in Windows 8
I need to delete the key:
DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jpg\UserChoice"
and then create it with a different value :
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jpg\UserChoice" "Progid" "MyApp.jpg"
This key need full access. Any means to gain full access you can not .. AccessControl plugin does not work in Windows 8 ...
Please help to solve this problem.
Anders
14th November 2012 07:41 UTC
This registry key is protected to stop people like you from messing with it.
You are supposed register your application/file type in the documented way, the user will then pick their desired default.
The FileExts key was added as a layer on top of that and only explorer is supposed to touch it. The UserChoice key was added later and defines the default progid. In Win8 the security of this key was changed, probably because people could not keep their fingers away from it.
redxii
14th November 2012 07:42 UTC
I'm not sure why you don't already have full access, since it is under HKCU. But, Windows 8 prevents programatically changing a user's file associations anyway so it might not work, the user has to manually associate it in Default Programs.
stass
14th November 2012 07:51 UTC
Originally posted by Anders
This registry key is protected to stop people like you from messing with it.
You are supposed register your application/file type in the documented way, the user will then pick their desired default.
No messing with these keys is not going. ;) Write a program with a fixed file associations.
How to do this using NSIS?
This registry key is protected
I asked a specific question - how to remove this protection?
Anders
14th November 2012 07:51 UTC
Originally posted by redxii
I'm not sure why you don't already have full access, since it is under HKCU. But, Windows 8 prevents programatically changing a user's file associations anyway so it might not work, the user has to manually associate it in Default Programs.
You don't have write access to all keys under HKCU, the policy key(s) etc...
stass
14th November 2012 07:55 UTC
You can implement this in the AccessControl plugin?
Anders
14th November 2012 07:56 UTC
Originally posted by stass
You can implement this in the AccessControl plugin?
You are not supposed to touch the UserChoice key, use the documented keys, they don't require special access...
Anders
14th November 2012 07:58 UTC
Originally posted by stass
I asked a specific question - how to remove this protection?
People will use this information for evil, it is better for Windows users everywhere if it stays a secret...
stass
14th November 2012 08:07 UTC
I understand ... But why not help the user NSIS, setting he needed associations? For example, to make a plugin for the file associations in windows 8. Can it be a secret? :)
Anders
14th November 2012 08:10 UTC
Originally posted by stass
I understand ... But why not help the user NSIS, setting he needed associations? For example, to make a plug for the file associations in windose 8. Can it be a secret? :)
See the MSDN links I posted, this is all the information you need to register a file type...