[DUG] Delphi programs and Vista
John Bird
johnkbird at paradise.net..nz
Fri Sep 19 21:37:50 NZST 2008
Same for me- there is just one program that gets UAC. It does not write to
registry or program files. It does have Start in the name, but thats not
it - because if renamed it still gets UAC prompt. It does however copy
programs from a download folder into a working folder, so I agree with
whoever said Vista looks at some heuristics inside the program - does anyone
have a specific link for reading more? (Haven't found specific programmers
guide yet)
John
>
> 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
>
More information about the Delphi
mailing list