I need to run a function that requires my application to have
heightened privelages. I do not need to run this every time the
application runs though and I only need it temporarily. Is there a
way that I can temporarily ask for heightened privelage while the
program is already running?

Re: FoxPro and UAC and Vista by swdev2

swdev2
Wed Jun 27 11:30:37 CDT 2007

What have you done, so far, with manipulating the UAC
when the VFP program was originally installed?

Regards [Bill]
--
===================
William Sanders / EFG VFP / mySql / MS-SQL
www.efgroup.net/vfpwebhosting
www.terrafox.net www.viasqlserver.net

"Altman" <baltman@easy-automation.com> wrote in message
news:1182952415.813244.298560@k29g2000hsd.googlegroups.com...
> I need to run a function that requires my application to have
> heightened privelages. I do not need to run this every time the
> application runs though and I only need it temporarily. Is there a
> way that I can temporarily ask for heightened privelage while the
> program is already running?
>



Re: FoxPro and UAC and Vista by Altman

Altman
Wed Jun 27 11:01:02 CDT 2007

On Jun 27, 11:30 am, "swdev2" <wsand...@dotnetconversions.bob.com>
wrote:
> What have you done, so far, with manipulating the UAC
> when the VFP program was originally installed?
>
> Regards [Bill]
> --
> ===================
> William Sanders / EFG VFP / mySql / MS-SQLwww.efgroup.net/vfpwebhostingwww.terrafox.net www.viasqlserver.net
>
> "Altman" <balt...@easy-automation.com> wrote in message
>
> news:1182952415.813244.298560@k29g2000hsd.googlegroups.com...
>
> > I need to run a function that requires my application to have
> > heightened privelages. I do not need to run this every time the
> > application runs though and I only need it temporarily. Is there a
> > way that I can temporarily ask for heightened privelage while the
> > program is already running?

I haven't done anything to manipulate the UAC on installation. I
basically need the equivalent to "Run as administrator" for our
application. The problem though is I don't know whether I need it
until the application has started, and I don't need it very often
(sometimes only once ever but sometimes maybe once a day) depending on
a circumstance that my code can figure out.


Re: FoxPro and UAC and Vista by Josh

Josh
Wed Jun 27 11:20:54 CDT 2007

On Wed, 27 Jun 2007 06:53:35 -0700, Altman <baltman@easy-automation.com> wrote:

>I need to run a function that requires my application to have
>heightened privelages. I do not need to run this every time the
>application runs though and I only need it temporarily. Is there a
>way that I can temporarily ask for heightened privelage while the
>program is already running?


What I would do is put this function in a seperate exe -- and use a manifest to
boost it's privilages -- then call the exe instead of a built in function.


Re: FoxPro and UAC and Vista by Bernhard

Bernhard
Wed Jun 27 11:26:24 CDT 2007

Altman schrieb:

> I need to run a function that requires my application to have
> heightened privelages. I do not need to run this every time the
> application runs though and I only need it temporarily. Is there a
> way that I can temporarily ask for heightened privelage while the
> program is already running?

Try
RUN runas /user:administrator theprog.exe

runas is part of the windows installation.
For parameters, open a command window and run this program without parameters.

Regards
Bernhard Sander



Re: FoxPro and UAC and Vista by swdev2

swdev2
Wed Jun 27 14:20:13 CDT 2007

OK So Far -

Have you written a manifest file for your installation set,
and yet another manifest file for the application file set?

Regards [Bill]

--
===================
William Sanders / EFG VFP / mySql / MS-SQL
www.efgroup.net/vfpwebhosting
www.terrafox.net www.viasqlserver.net

"Altman" <baltman@easy-automation.com> wrote in message
news:1182960062.992935.91040@w5g2000hsg.googlegroups.com...
> On Jun 27, 11:30 am, "swdev2" <wsand...@dotnetconversions.bob.com>
> wrote:
> > What have you done, so far, with manipulating the UAC
> > when the VFP program was originally installed?
> >
> > Regards [Bill]
> > --
> > ===================
> > William Sanders / EFG VFP / mySql /
MS-SQLwww.efgroup.net/vfpwebhostingwww.terrafox.net www.viasqlserver.net
> >
> > "Altman" <balt...@easy-automation.com> wrote in message
> >
> > news:1182952415.813244.298560@k29g2000hsd.googlegroups.com...
> >
> > > I need to run a function that requires my application to have
> > > heightened privelages. I do not need to run this every time the
> > > application runs though and I only need it temporarily. Is there a
> > > way that I can temporarily ask for heightened privelage while the
> > > program is already running?
>
> I haven't done anything to manipulate the UAC on installation. I
> basically need the equivalent to "Run as administrator" for our
> application. The problem though is I don't know whether I need it
> until the application has started, and I don't need it very often
> (sometimes only once ever but sometimes maybe once a day) depending on
> a circumstance that my code can figure out.
>



Re: FoxPro and UAC and Vista by Altman

Altman
Wed Jun 27 13:56:55 CDT 2007

On Jun 27, 2:20 pm, "swdev2" <wsand...@dotnetconversions.bob.com>
wrote:
> OK So Far -
>
> Have you written a manifest file for your installation set,
> and yet another manifest file for the application file set?
>
> Regards [Bill]
>
> --
> ===================
> William Sanders / EFG VFP / mySql / MS-SQLwww.efgroup.net/vfpwebhostingwww.terrafox.net www.viasqlserver.net
>
> "Altman" <balt...@easy-automation.com> wrote in message
>
> news:1182960062.992935.91040@w5g2000hsg.googlegroups.com...> On Jun 27, 11:30 am, "swdev2" <wsand...@dotnetconversions.bob.com>
> > wrote:
> > > What have you done, so far, with manipulating the UAC
> > > when the VFP program was originally installed?
>
> > > Regards [Bill]
> > > --
> > > ===================
> > > William Sanders / EFG VFP / mySql /
>
> MS-SQLwww.efgroup.net/vfpwebhostingwww.terrafox.netwww.viasqlserver.net
>
>
>
> > > "Altman" <balt...@easy-automation.com> wrote in message
>
> > >news:1182952415.813244.298560@k29g2000hsd.googlegroups.com...
>
> > > > I need to run a function that requires my application to have
> > > > heightened privelages. I do not need to run this every time the
> > > > application runs though and I only need it temporarily. Is there a
> > > > way that I can temporarily ask for heightened privelage while the
> > > > program is already running?
>
> > I haven't done anything to manipulate the UAC on installation. I
> > basically need the equivalent to "Run as administrator" for our
> > application. The problem though is I don't know whether I need it
> > until the application has started, and I don't need it very often
> > (sometimes only once ever but sometimes maybe once a day) depending on
> > a circumstance that my code can figure out.

No I have not written a manifest file for our application or the
installer. From what I read, windows automatically requires elevated
privilege for any file named setup, or install therefore I should not
need it there nor have I had any problems with that. I have not
written a manifest file. Can a manifest file work so that it only
pops up the UAC if the application tries to access a protected area
and not everytime the application opens? I don't want to have the UAC
pop up every time our application starts when 99.5% of the time the
application will not need it.


Re: FoxPro and UAC and Vista by Gregory

Gregory
Wed Jun 27 13:56:53 CDT 2007

Make a shortcut to the exe.
Edit the shortcut and mark 'run as administrator'

Gregory
_

Re: FoxPro and UAC and Vista by Altman

Altman
Wed Jun 27 15:45:38 CDT 2007

On Jun 27, 1:56 pm, "Gregory Adam" <n...@nowhere.com> wrote:
> Make a shortcut to the exe.
> Edit the shortcut and mark 'run as administrator'
>
> Gregory
> _

I want the program to decide while it's running whether it should run
as administrator. I do not want it running as administrator all the
time.


Re: FoxPro and UAC and Vista by swdev2

swdev2
Wed Jun 27 21:05:24 CDT 2007

OK -
look here -
http://www.bingo-ev.de/~mw368/vfp9_vista.html
at the ManifestTools.zip FILE.
Download it, study the code, it should give you some new ideas on
what to do.

Mondo Regards [Bill]

--
===================
William Sanders / EFG VFP / mySql / MS-SQL
www.efgroup.net/vfpwebhosting
www.terrafox.net www.viasqlserver.net

"swdev2" <wsanders@dotnetconversions.bob.com> wrote in message
news:O0JnWcOuHHA.3588@TK2MSFTNGP06.phx.gbl...
> OK So Far -
>
> Have you written a manifest file for your installation set,
> and yet another manifest file for the application file set?
>
> Regards [Bill]
>
> --
> ===================
> William Sanders / EFG VFP / mySql / MS-SQL
> www.efgroup.net/vfpwebhosting
> www.terrafox.net www.viasqlserver.net
>
> "Altman" <baltman@easy-automation.com> wrote in message
> news:1182960062.992935.91040@w5g2000hsg.googlegroups.com...
> > On Jun 27, 11:30 am, "swdev2" <wsand...@dotnetconversions.bob.com>
> > wrote:
> > > What have you done, so far, with manipulating the UAC
> > > when the VFP program was originally installed?
> > >
> > > Regards [Bill]
> > > --
> > > ===================
> > > William Sanders / EFG VFP / mySql /
> MS-SQLwww.efgroup.net/vfpwebhostingwww.terrafox.net www.viasqlserver.net
> > >
> > > "Altman" <balt...@easy-automation.com> wrote in message
> > >
> > > news:1182952415.813244.298560@k29g2000hsd.googlegroups.com...
> > >
> > > > I need to run a function that requires my application to have
> > > > heightened privelages. I do not need to run this every time the
> > > > application runs though and I only need it temporarily. Is there a
> > > > way that I can temporarily ask for heightened privelage while the
> > > > program is already running?
> >
> > I haven't done anything to manipulate the UAC on installation. I
> > basically need the equivalent to "Run as administrator" for our
> > application. The problem though is I don't know whether I need it
> > until the application has started, and I don't need it very often
> > (sometimes only once ever but sometimes maybe once a day) depending on
> > a circumstance that my code can figure out.
> >
>
>