<<<But if this File comes on the Targetsystem by an other App, could it
be protected by WFP?>>
It doesn't work like that. File Protection applies to everything that attempts to replace the file
on the system (except for the MS install things like SPs, hotfixes) so another app cannot have
installed a protected file.
I don't quite understand why you're worried. At worst, you can attempt to install the file and the
Windows Installer will check if it's protected and not install it.
--
Phil Wilson [MVP Windows Installer]
----
"PeKaWe" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> Thanks for your help,
>
> but i know how to list the protected Files on a specific system.
> What i want to know is which File could be under Windows File
> Protection on a Targetsystem for my Setup.
> The problem is that files like 'comct232.ocx' are not installed with
> Windows 2000 by default.
> But if this File comes on the Targetsystem by an other App, could it
> be protected by WFP?
> Only if i know that this file definitely never could be protected by
> WFP i could install this file like each other file by using a
> component.
> Otherwise i have to look for an Update or SP or something else, to
> bring the right version on the targetsystem.
>
> So i'm looking for a list or so, to decide which file needs the
> special handling.
>
> Somewhere in MSDN i read this must be about 2700 files. The list seems
> to be in the 'sfcfiles.dll' but i don't realy know.
> (...There's a file called "SFCfiles.dll" that contains a listing of
> the files checked by Windows File Protection...) Nound somewhere in
> the Net.
>
>
> Thanks and Bye,
> Peter
>
> "Phil Wilson" <(E-Mail Removed)> wrote in message
news:<(E-Mail Removed)>...
> > Run this program on the OS you want the list for. It needs a linker
> > reference to SFC.LIB. It will write the list to sfcfiles.txt.
> >
> > #include "stdafx.h"
> > #include <windows.h>
> > #include <stdio.h>
> > #include <sfc.h>
> > PROTECTED_FILE_DATA aFile = {0};
> > FILE *stream;
> > int main(int argc, char* argv[])
> > {
> > BOOL res = true;
> > long i=0;
> > stream = fopen( "sfcfiles.txt", "w" );
> > while (res)
> > {
> > res = SfcGetNextProtectedFile (NULL, &aFile) ;
> > if (res)
> > fprintf(stream, "%S\n", aFile.FileName);
> > }
> > fclose (stream);
> > return 0;
> > }
> >
> > --
> > Phil Wilson [MVP Windows Installer]
> >
> > "PeKaWe" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > Hi All,
> > >
> > > i'm searchíng for a List or so, with all Files, which probably could
> > > be protected by WFP.
> > >
> > > Does anyone know where to find it?
> > >
> > > Thanks a lot.
> > >
> > > Bye,
> > > Peter
|