The error is because you don't have the proper permissions to change it. So make sure you right click ArmA2OA in regedit, go to "Permissions...", Press "Advanced" then "Edit..." and then Allow "Set Value". Also don't forget to have it at "This key and every subkey"