Re: Running IDE as a standard user in Vista

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



But before loading a project ? Let's break this down:

- Can you load the IDE with no project ? (Run vb6.exe) If the problem occurs then, then it's likely to be an add-in. You'll have to run as admin, disable the add-ins, and try again.

- If you can load the IDE, but when you open a project you get that error, it may be a file permission problem. Right click on the files in explorer and ensure you have full rights to them.

Other things to be aware of once you get this sorted is you can't do activex.dll's this way becuase VB wants to write to HKLM for them.

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" <replyto@it> wrote in message news:ekMhKZdUJHA.5080@xxxxxxxxxxxxxxxxxxxxxxx
That message comes before loading forms.
Jack

"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: Running IDE as a standard user in Vista
    ... "Jack" wrote in message ... I run VB6 IDE as a normal user without problem. ... 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. ...
    (microsoft.public.vb.general.discussion)
  • Startup Problem with VS2008 on Vista
    ... Ed. on Vista. ... Usually I'm starting the IDE ... without Administrator privileges. ... Today I wanted to start it as Admin ...
    (microsoft.public.vsnet.setup)
  • Re: Just a couple of simple D8 questions
    ... > the environment for which I am developing rather than a 'jack of all ... > trades, master of none' that tries to be everything to everyone. ... Although I would prefer multi-targetting IDE, ...
    (borland.public.delphi.non-technical)
  • Re: Running IDE as a standard user in Vista
    ... Jack ... I run VB6 IDE as a normal user without problem. ... Vista forces me to start IDE as an administrator. ...
    (microsoft.public.vb.general.discussion)
  • Re: Running IDE as a standard user in Vista
    ... Jack ... I run VB6 IDE as a normal user without problem. ... Vista forces me to start IDE as an administrator. ...
    (microsoft.public.vb.general.discussion)