Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2007 Mar : real exe location under Vista
| Subject: | real exe location under Vista |
| Posted by: | "Aleksey Kuznetsov" (nospam@nospam.org) |
| Date: | Thu, 8 Mar 2007 04:57:02 |
Hello, I have a problem with determination of real location of executable
under Vista. In previous Windows versions, it's was easily by calling
ExtractFilePath(Application.ExeName) // returns EXE location
However, Vista seems run executables from
"C:\Users\...\AppData\Local\VirtualStore\ProgramFiles"
Maybe someone knows how to get real location of EXE under Vista?
Million thanks in advance!
Aleksey