Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Forums > General Discussion

Vista Tutorial - Error accessing system registry

Reply
 
Old 09-18-2008   #1 (permalink)
Newbie


Join Date: Sep 2008
vista Home Premium 32bit
 
 

Error accessing system registry

While trying to register my own ocx controls using regsvr32 command in Vista ,it responds Error accessing system registry. I've logged as administrator. What could be the solution ?

My System SpecsSystem Spec
Old 09-18-2008   #2 (permalink)
Post No Evil ;)


Join Date: Jul 2008
Windows 7 RC x64 Vista HP x86
 
 

Re: Error accessing system registry

Hello Subasri, Welcome to the Forums,

assume you are going into CMD prompt, Because of the way administrators work in vista make sure you manually elevate to admin mode (right click on CMD.EXE or Shortcut and choose "Run as Administrator") otherwise the OS will treat you as a standard user. You can confirm that you are at the right level as the title bar will show "administrator"
My System SpecsSystem Spec
Old 09-25-2008   #3 (permalink)
Newbie


Join Date: Sep 2008
vista Home Premium 32bit
 
 

Re: Error accessing system registry

thankyou, I'm able to register the my own ocx thro command Prompt But,when I try to access the Ocx from VB I get Error accessing the system registry. How to solve this
My System SpecsSystem Spec
Old 09-25-2008   #4 (permalink)
Post No Evil ;)


Join Date: Jul 2008
Windows 7 RC x64 Vista HP x86
 
 

Re: Error accessing system registry

Not VB expert myself

as this is a specific VB problem you may want to post the question here VB Script - Vista Forums
to ensure that it's seen by people with the correct expertise
My System SpecsSystem Spec
Old 09-29-2008   #5 (permalink)
Newbie


Join Date: Sep 2008
vista Home Premium 32bit
 
 

Re: Error accessing system registry

I've got it. Any application Run as Administrator to avoid these kind of problems.
Anyway thanks a lot
My System SpecsSystem Spec
Old 09-30-2008   #6 (permalink)
Post No Evil ;)


Join Date: Jul 2008
Windows 7 RC x64 Vista HP x86
 
 

Re: Error accessing system registry

Hi subasri,

The way vista handles the Admin/Standard User system, (like the SUDO command in Unix/Linux), is new but the requirement for running programs as a standard user has been in Windows OS from NT so there should be instructions, Somewhere in the VB documentation, to achieve this.

Not being a VB programmer myself, can't help directly on this but you may want to do some research, if you think this is essential in your application. Of course certain operating calls will always need Admin rights to run.
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Programs not accessing registry?! Please advise! Vista General
system lockup when accessing large files from IDE Vista General
Windows Mail accessing registry key like crazy! Vista mail
accessing the extended type system from C# PowerShell
Error accessing registry keys even with administrator priveleges Vista security


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46