Home All Groups Group Topic Archive Search About
Author
23 Feb 2007 7:54 PM
vovan
Is there any way to run Shell command in VB6 app running on Vista with admin
rights?
I know that everything that worked on XP must be redesigned in order to run
on Vista.
I'm trying to do it step by step. Now I have a problem with Shell running
Regasm.exe and registering DLL. On XP no problem, on Vista it doesn't
register

Thank you
vovan

Author
23 Feb 2007 8:03 PM
Rick Rothstein (MVP - VB)
> Is there any way to run Shell command in VB6 app running on Vista with
> admin rights?
> I know that everything that worked on XP must be redesigned in order to
> run on Vista.
> I'm trying to do it step by step. Now I have a problem with Shell running
> Regasm.exe and registering DLL. On XP no problem, on Vista it doesn't
> register

If your user doesn't have administrative rights on his/her computer, you
surely won't be able to have it (just think of the security issues if
programs could have wide open access to a secured computer).

Rick
Author
23 Feb 2007 8:17 PM
vovan
It's funny with Vista to be an owner, administrator etc of the machine, but
have no real admin rights.
So, as I understood you, there is no way to register DLL from VB app running
by administrator but without administrative rights (owner of the
workstation). Right?

Thank you
vovan

Show quoteHide quote
"Rick Rothstein (MVP - VB)" <rickNOSPAMnews@NOSPAMcomcast.net> wrote in
message news:%23zfP7W4VHHA.4624@TK2MSFTNGP03.phx.gbl...
>> Is there any way to run Shell command in VB6 app running on Vista with
>> admin rights?
>> I know that everything that worked on XP must be redesigned in order to
>> run on Vista.
>> I'm trying to do it step by step. Now I have a problem with Shell running
>> Regasm.exe and registering DLL. On XP no problem, on Vista it doesn't
>> register
>
> If your user doesn't have administrative rights on his/her computer, you
> surely won't be able to have it (just think of the security issues if
> programs could have wide open access to a secured computer).
>
> Rick
>
Author
23 Feb 2007 8:24 PM
Rick Rothstein (MVP - VB)
> It's funny with Vista to be an owner, administrator etc of the machine,
> but have no real admin rights.
> So, as I understood you, there is no way to register DLL from VB app
> running by administrator but without administrative rights (owner of the
> workstation). Right?

I have no first-hand experience with Vista yet... I was answering from a
theoretical standpoint; however, are you saying your user (you perhaps) are
**logged-in** as the **administrator** and your program cannot register the
DLL?

Rick
Author
23 Feb 2007 8:38 PM
vovan
Exactly.
Many operations are not allowed on Vista.
I already fixed some incompatibilities. For instance my program is installed
in Program Files before Vista and everything was working including writing
to files located in the application folder. I had to change installation
location in order to continue to work with files in the app directory.
I used to read/write settings for the application and service working for
this application from the same location in HKLM. Now I have to have 2
locations in the registry - one for service because it's running having real
admin rights (HKLM), and another for the app itself (HKLM_USERS) because
it's running with those funny admin rights and uses so called
virtualization.

vovan

Show quoteHide quote
"Rick Rothstein (MVP - VB)" <rickNOSPAMnews@NOSPAMcomcast.net> wrote in
message news:udvRQi4VHHA.4188@TK2MSFTNGP06.phx.gbl...
>> It's funny with Vista to be an owner, administrator etc of the machine,
>> but have no real admin rights.
>> So, as I understood you, there is no way to register DLL from VB app
>> running by administrator but without administrative rights (owner of the
>> workstation). Right?
>
> I have no first-hand experience with Vista yet... I was answering from a
> theoretical standpoint; however, are you saying your user (you perhaps)
> are **logged-in** as the **administrator** and your program cannot
> register the DLL?
>
> Rick
>
Author
23 Feb 2007 8:39 PM
Karl E. Peterson
Rick Rothstein (MVP - VB) <rickNOSPAMnews@NOSPAMcomcast.net> wrote:
>> It's funny with Vista to be an owner, administrator etc of the machine,
>> but have no real admin rights.
>> So, as I understood you, there is no way to register DLL from VB app
>> running by administrator but without administrative rights (owner of the
>> workstation). Right?
>
> I have no first-hand experience with Vista yet... I was answering from a
> theoretical standpoint; however, are you saying your user (you perhaps) are
> **logged-in** as the **administrator** and your program cannot register the
> DLL?

I think that's the default, yep!
--
..NET: It's About Trust!
http://vfred.mvps.org
Author
23 Feb 2007 8:56 PM
Rick Rothstein (MVP - VB)
Show quote Hide quote
>>> It's funny with Vista to be an owner, administrator etc of the machine,
>>> but have no real admin rights.
>>> So, as I understood you, there is no way to register DLL from VB app
>>> running by administrator but without administrative rights (owner of the
>>> workstation). Right?
>>
>> I have no first-hand experience with Vista yet... I was answering from a
>> theoretical standpoint; however, are you saying your user (you perhaps)
>> are
>> **logged-in** as the **administrator** and your program cannot register
>> the
>> DLL?
>
> I think that's the default, yep!

So there is what, an administrator and then a super-administrator?<g>

You say "the default"... then it is a configurable thing (the administrator
can change the permissions he/she has)?

Rick
Author
23 Feb 2007 9:03 PM
Karl E. Peterson
Rick Rothstein (MVP - VB) <rickNOSPAMnews@NOSPAMcomcast.net> wrote:
Show quoteHide quote
>>>> It's funny with Vista to be an owner, administrator etc of the machine,
>>>> but have no real admin rights.
>>>> So, as I understood you, there is no way to register DLL from VB app
>>>> running by administrator but without administrative rights (owner of the
>>>> workstation). Right?
>>>
>>> I have no first-hand experience with Vista yet... I was answering from a
>>> theoretical standpoint; however, are you saying your user (you perhaps)
>>> are
>>> **logged-in** as the **administrator** and your program cannot register
>>> the
>>> DLL?
>>
>> I think that's the default, yep!
>
> So there is what, an administrator and then a super-administrator?<g>
>
> You say "the default"... then it is a configurable thing (the administrator
> can change the permissions he/she has)?

I think the key acronyms are "UAC" and "WRP".  WTH they mean, I dunno.  But yeah,
you (the admin) really needs to come to terms with them, or just BOGU and <sigh>.
--
..NET: It's About Trust!
http://vfred.mvps.org
Author
26 Feb 2007 9:26 AM
Jan Hyde
"Rick Rothstein \(MVP - VB\)"
<rickNOSPAMnews@NOSPAMcomcast.net>'s wild thoughts were
released on Fri, 23 Feb 2007 15:56:34 -0500 bearing the
following fruit:

Show quoteHide quote
>>>> It's funny with Vista to be an owner, administrator etc of the machine,
>>>> but have no real admin rights.
>>>> So, as I understood you, there is no way to register DLL from VB app
>>>> running by administrator but without administrative rights (owner of the
>>>> workstation). Right?
>>>
>>> I have no first-hand experience with Vista yet... I was answering from a
>>> theoretical standpoint; however, are you saying your user (you perhaps)
>>> are
>>> **logged-in** as the **administrator** and your program cannot register
>>> the
>>> DLL?
>>
>> I think that's the default, yep!
>
>So there is what, an administrator and then a super-administrator?<g>
>
>You say "the default"... then it is a configurable thing (the administrator
>can change the permissions he/she has)?

UAC - User account control.

Even logged in as administrator anything you run will be run
with normal rights, not admin rights. This is sensible since
most home users will be the admin user - and probably the
only account set up.

An admin user can give a program permission to do something
which requires admin priveleges.

A normal user can too provided he knows the admin password.

You could of course just switch of UAC.



Jan Hyde (VB MVP)

--
A wedding aboard a luxurious cruise boat can run from $3,000 to $20,000, if someone wants to go overboard.  (Richard Lederer)
Author
26 Feb 2007 9:23 AM
Jan Hyde
"vovan" <some***@vovan.com>'s wild thoughts were released on
Fri, 23 Feb 2007 15:17:31 -0500 bearing the following fruit:

>It's funny with Vista to be an owner, administrator etc of the machine, but
>have no real admin rights.
>So, as I understood you, there is no way to register DLL from VB app running
>by administrator but without administrative rights (owner of the
>workstation). Right?

Actually, if your VB6 program has admin rights then it
should have no problems running regsvr32 or in registering
activex exes.

J

Show quoteHide quote
>Thank you
>vovan
>
>"Rick Rothstein (MVP - VB)" <rickNOSPAMnews@NOSPAMcomcast.net> wrote in
>message news:%23zfP7W4VHHA.4624@TK2MSFTNGP03.phx.gbl...
>>> Is there any way to run Shell command in VB6 app running on Vista with
>>> admin rights?
>>> I know that everything that worked on XP must be redesigned in order to
>>> run on Vista.
>>> I'm trying to do it step by step. Now I have a problem with Shell running
>>> Regasm.exe and registering DLL. On XP no problem, on Vista it doesn't
>>> register
>>
>> If your user doesn't have administrative rights on his/her computer, you
>> surely won't be able to have it (just think of the security issues if
>> programs could have wide open access to a secured computer).
>>
>> Rick
>>
>


Jan Hyde (VB MVP)

--
A baker quit making doughnuts because he got  tired of the hole
business.   (Richard Lederer)
Author
23 Feb 2007 9:14 PM
Jeff Johnson
"vovan" <some***@vovan.com> wrote in message
news:%235VjjR4VHHA.5008@TK2MSFTNGP05.phx.gbl...

> Is there any way to run Shell command in VB6 app running on Vista with
> admin rights?

Sure! Turn off that UAC crap immediately! That's what I did....
Author
26 Feb 2007 3:42 AM
Paul Lambert
Jeff Johnson wrote:
> "vovan" <some***@vovan.com> wrote in message
> news:%235VjjR4VHHA.5008@TK2MSFTNGP05.phx.gbl...
>
>> Is there any way to run Shell command in VB6 app running on Vista with
>> admin rights?
>
> Sure! Turn off that UAC crap immediately! That's what I did....
>
>

First thing to do when getting a Vista computer is turn off UAC... most
software I'm dealing with won't even install let alone run unless I turn
off User Account Control. Registry protection is one of the main tasks
of UAC and that would quite probably be why the dll won't register.

I don't know what bright spark at microsoft thought that would be a good
idea... but it's not IMO.

P.

--
Posted via a free Usenet account from http://www.teranews.com
Author
26 Feb 2007 9:27 AM
Jan Hyde
Paul Lambert <paul.lamb***@autoledgers.com.au>'s wild
thoughts were released on Mon, 26 Feb 2007 12:42:27 +0900
bearing the following fruit:

Show quoteHide quote
>Jeff Johnson wrote:
>> "vovan" <some***@vovan.com> wrote in message
>> news:%235VjjR4VHHA.5008@TK2MSFTNGP05.phx.gbl...
>>
>>> Is there any way to run Shell command in VB6 app running on Vista with
>>> admin rights?
>>
>> Sure! Turn off that UAC crap immediately! That's what I did....
>>
>>
>
>First thing to do when getting a Vista computer is turn off UAC... most
>software I'm dealing with won't even install let alone run unless I turn
>off User Account Control. Registry protection is one of the main tasks
>of UAC and that would quite probably be why the dll won't register.
>
>I don't know what bright spark at microsoft thought that would be a good
>idea... but it's not IMO.
>

I've yet to experience anything that won't run with UAC on.
Sure you may have to set the odd program to run as admin but
I've yet to have any real need to switch off UAC at home or
at work.



Jan Hyde (VB MVP)

--
A wedding aboard a luxurious cruise boat can run from $3,000 to $20,000, if someone wants to go overboard.  (Richard Lederer)
Author
26 Feb 2007 2:12 PM
abhishek_k1984