|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Shell on VistaIs 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 > Is there any way to run Shell command in VB6 app running on Vista with If your user doesn't have administrative rights on his/her computer, you > 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 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 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 > > It's funny with Vista to be an owner, administrator etc of the machine, I have no first-hand experience with Vista yet... I was answering from a > 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? theoretical standpoint; however, are you saying your user (you perhaps) are **logged-in** as the **administrator** and your program cannot register the DLL? Rick 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 > Rick Rothstein (MVP - VB) <rickNOSPAMnews@NOSPAMcomcast.net> wrote:
>> It's funny with Vista to be an owner, administrator etc of the machine, I think that's the default, yep!>> 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?
Show quote
Hide quote
>>> It's funny with Vista to be an owner, administrator etc of the machine, So there is what, an administrator and then a super-administrator?<g>>>> 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! You say "the default"... then it is a configurable thing (the administrator can change the permissions he/she has)? Rick 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, I think the key acronyms are "UAC" and "WRP". WTH they mean, I dunno. But yeah, >>>> 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)? you (the admin) really needs to come to terms with them, or just BOGU and <sigh>. "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, UAC - User account control.>>>> 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)? 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) "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 Actually, if your VB6 program has admin rights then it>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? should have no problems running regsvr32 or in registering activex exes. J Show quoteHide quote >Thank you Jan Hyde (VB MVP)>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 >> > -- A baker quit making doughnuts because he got tired of the hole business. (Richard Lederer) "vovan" <some***@vovan.com> wrote in message Sure! Turn off that UAC crap immediately! That's what I did....news:%235VjjR4VHHA.5008@TK2MSFTNGP05.phx.gbl... > Is there any way to run Shell command in VB6 app running on Vista with > admin rights? Jeff Johnson wrote:
> "vovan" <some***@vovan.com> wrote in message First thing to do when getting a Vista computer is turn off UAC... most > 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.... > > 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. 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: I've yet to experience anything that won't run with UAC on.>> "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. > 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)
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=67610&lngWId=1
this article explains everthing, |
|||||||||||||||||||||||