Re: Running IDE as a standard user in Vista

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Do you get this with no project loaded ? If so try disabling add-ins.



"Jack" <replyto@it> wrote in message news:uhUt8UdUJHA.5084@xxxxxxxxxxxxxxxxxxxxxxx
I done it as you suggetested, Bill.
Now, when I start IDE there is a message "Permission denied"
Jack

"Bill McCarthy" <Bill@xxxxxxxxxxxxx> wrote in message news:eEK0NhcUJHA.1960@xxxxxxxxxxxxxxxxxxxxxxx
Hi Jack,

It shouldn't. I run VB6 IDE as a normal user without problem. Have you checked the properties on the shortcut and or the VB6.exe ?
Click on the compatibility tab and make sure run as administrator is not checked. You need to also click on the Show settings for all users button just below that.



"Jack" <replyto@it> wrote in message news:edd8AacUJHA.2468@xxxxxxxxxxxxxxxxxxxxxxx
That is not really the answer I am looking for.
When I start IDE in Vista standard user profile, I cannot run IDE as a current user.
Vista forces me to start IDE as an administrator. I do not want that, because it changes environment I want to use IDE in.
Jack

"expvb" <nobody@xxxxxxx> wrote in message news:eYevXp3TJHA.6044@xxxxxxxxxxxxxxxxxxxxxxx
"Jack" <replyto@it> wrote in message news:eAONVQ3TJHA.1908@xxxxxxxxxxxxxxxxxxxxxxx
Hello,
It is more to Vista security as I thought.
Starting project's IDE under Vista (as standard user) invokes User Account Control asking for the administrator password. Supplying one it is possible to step or run IDE but the result is not the same as running the compiled executable.
One of the differences is that the registry cannot be read from IDE, but the same registry is read by the compiled executable (and it is not run on elevated privileges!)!
Why is that difference? How to simulate in IDE the same environment the single executable has?

The IDE is probably calling RegCreateKeyEx with KEY_ALL_ACCESS, which is denied for HKLM and HKCR, but should fine for HKCU although I am not sure about the later. The IDE was made in 1998, before NT usage was common.








.



Relevant Pages

  • Re: Starting Existing VB6 Project in Vista
    ... Are you starting the IDE using "run as administrator"? ... On Vista I place a shortcut for VB6 on my desktop and always launch it by right clicking and selecting "Run ...
    (microsoft.public.vb.general.discussion)
  • Re: Running IDE as a standard user in Vista
    ... Since time immortal I've been starting IDE by clicking directly on .vbp file. ... Click on the compatibility tab and make sure run as administrator is not checked. ... When I start IDE in Vista standard user profile, I cannot run IDE as a current user. ... One of the differences is that the registry cannot be read from IDE, but the same registry is read by the compiled executable! ...
    (microsoft.public.vb.general.discussion)
  • Re: Running IDE as a standard user in Vista
    ... Also you will have trouble adding COM components to the toolbox because it wants to write the .oca file etc. I've found that if I run the IDE as admin, add the components there and to the form, then save, I can then open as a normal user. ... "Jack" wrote in message ... When I start IDE in Vista standard user profile, I cannot run IDE as a current user. ...
    (microsoft.public.vb.general.discussion)
  • Re: Running IDE as a standard user in Vista
    ... Click on the compatibility tab and make sure run as administrator is not checked. ... When I start IDE in Vista standard user profile, I cannot run IDE as a current user. ... One of the differences is that the registry cannot be read from IDE, but the same registry is read by the compiled executable! ...
    (microsoft.public.vb.general.discussion)
  • Re: Running IDE as a standard user in Vista
    ... I run VB6 IDE as a normal user without problem. ... Vista forces me to start IDE as an administrator. ... One of the differences is that the registry cannot be read from IDE, ...
    (microsoft.public.vb.general.discussion)