Welcome to the new DelphiDabbler Code Library Documentation.

This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.

Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.

ProgramFilesRedirect class function

Project: System Information Unit.

Unit: PJSysInfo.

Class: TPJSystemFolders

Applies to: ~>5.0

class function ProgramFilesRedirect: string;


Returns the fully qualified path name of the Program Files folder, taking into account any redirection for 32 bit programs running on 64 bit Windows.

The return value will be the same as one of the ProgramFiles or ProgramFilesX86 methods as follows:

Operating System Application Return Value
32 bit Windows 32 bit ProgramFiles
64 bit Windows 32 bit ProgramFilesX86
64 bit Windows 64 bit ProgramFiles

See Also