SetupSetPlatformPathOverride
[New
- Windows NT]
The SetupSetPlatformPathOverride
function sets the platform path override or removes it if none is
specified.
BOOL SetupSetPlatformPathOverride(
PCTSTR Override |
// optional,
platform replacement string |
); |
|
Parameters
Override
This optional
parameter points to a string that contains the replacement platform
information. For example, mips , alpha , ppc , or i386 .
Return Values
If the
function succeeds, the return value is TRUE.
If the
function fails, the return value is FALSE. To get extended error information,
call GetLastError
If GetLastError
Remarks
SetPlatformPathOverride
is used to change the source path
when queuing files. If a platform path override has been set by a call to SetPlatformPathOverride,
any setup function that queues file copy operations will examine the final
component of the source path and if the final component matches the name of the
user s platform, replace it with the override string set by
SetPlatformPathOverride.
For example,
consider a MIPS-platform machine where the platform has been set to Alpha by a
call to SetPlatformPathOverride. After the platform path override has
been set, a file copy operation is queued with a source path of
\\foo\bar\baz\mips\x.exe, the path will be changed to \\foo\bar\baz\alpha\x.exe.
The paths of
file copy operations queued before the path override is set are not changed.
See Also