December 18, 2009
How to hack Vista to get your Visual Studio installation to work on Windows Vista.
As we all know Vista can sometimes be a pain in the ass when it comes to permissions, on my journey for the installation of Visual studio I encountered the problem:”Requested registry access is not allowed”. Visual Studio can’t create any new projects because of restrictions in the registry.
How can we beat Vista security? well, once you have figured it out, it’s quite easy, although it took me 2 days and 3 system restores, the power is in the order of altering.
First you need to alter the authorization settings in your registry, make sure you are comfortable working in your registry, since you can cause a lot of damage to your pc if you do not know what you are doing.
select HKEY_CLASSES_ROOT right click ‘permissions’, this part of the registry doesn’t have any assigned users, so we will add ‘Administrators’ and ‘Users’ and assign them the privilege ‘ full control’ and click Ok. Now sit back, for this can take a while.
NOTE: make sure you have a back up of your registry and a system restore available, just to be safe!
After this you can close the registry.
The second step will be to download a program called SubInAcl.exe and install this little program to your computer.
next we’ll need to make a script to be able to hack our registry to alter the security settings:
open a notepad and insert the following lines:
cd /d "%programfiles%\Windows Resource Kits\Tools" subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f subinacl /subdirectories %SystemDrive% /grant=administrators=f /grant=system=f subinacl /subdirectories %windir%\*.* /grant=administrators=f /grant=system=f
save the textfile as fix_registry_permissions.cmd
You can run the file by double clicking it, this is the part where you can leave the house and do some groceries shopping and start making dinner. Don’t worry, just sit it out.
When the modifications are done, the cmd screen will disappear and you can restart your computer.
Now you will be able to successfully start Visual Studio. Good Luck!