Google Groups Home
Help | Sign in
Message from discussion Can a VB6 application 'promote' itself?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Kevin Provance  
View profile
 More options May 16, 11:40 pm
Newsgroups: microsoft.public.vb.general.discussion
From: "Kevin Provance" <ca...@tpasoft.com>
Date: Fri, 16 May 2008 23:40:05 -0400
Local: Fri, May 16 2008 11:40 pm
Subject: Re: Can a VB6 application 'promote' itself?
Afterthought:

In general, unless you're authoring a wallpaper changing utility or some
other application that needs to write to HKLM, your app shouldn't need admin
privs. What exactly do you need to do?  In most cases there is a sufficent
work around (I really need to get my vista assistance site up and running).

Admin privs are only really needed to write to HKLM or some other directory
other than AppData.

The problem I've started to see frequently with VB6 and Vista is that to
operate VB, it needs to be run As Adminstrator.  This is actually a bad
thing since it doesn't enforce rules for a least privileged environment and
things slip by that need to be addressed.  Because VB6 is running as admin
just to work, it can write to HKLM and other directories besides AppData,
which is bad under Vista (and in general, generally  <g>).  This presents a
bit of a conundrum which often shows up as bugs in the finished distributed
program and are not caught in the IDE due to it's admin privs.  You gotta
try and discipline yourself not to break those Vista rules, because VB won't
catch them for you in the IDE.

Again, if you want to specifically share what you would like to do, maybe we
can help you out without having to resort to elevating your app to admin.

- Kev

"PeterD" <pet...@hipson.net> wrote in message

news:apsr24d54m38sn7gffqs84rcc0jqhq6i8r@4ax.com...
| Can a VB6 application 'promote' itself?
|
| For example, the application's manifest has 'asInvoker' and later in
| the program's execution it needs to do something that requires
| 'requireAdministrator' is it possible to promote to administrator or
| not?
|
| Has anyone tried something (stupid?) like this? <bg>

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google