I second what Phil says: just follow the rules....

Just about all of my programs that used to run fine on XP also run fine in
Vista, look a bit prettier and don't generate UAC prompts.

I'm guessing that your problem might lie in the way that you read the
registry.  If you need to read something from HKLM, make sure that you open
the registry as read-only.  A TRegIniFile and other similar abstractions of
the registry will (by default) want write access and cause a UAC prompt.  If
you only want to read values, make sure that you only ever open those keys
in the registry by explicitly specifying that you only want read access and
your UAC prompts (might) go away.

Trevor

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Phil Scadden
Sent: Thursday, 18 September 2008 4:35 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Delphi programs and Vista


> 4 - Programs I have written that get a UAC confirmation/prompt to run -
are there any ways to turn this off?
>   
Not that I have any experience with Vista, but I think you have write 
your program to conform to
its rules - no ini files in program files, (no writing to program files 
area at all I think), etc etc. There
big list when Vista came out.
-- 
Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St, 
Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232


_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe

Reply via email to