PC Review
Forums
Newsgroups
Windows 2000
Microsoft Windows 2000 MSI
Re: Which files could be under Windows File Protection???
Forums
Newsgroups
Windows 2000
Microsoft Windows 2000 MSI
Re: Which files could be under Windows File Protection???
![]() |
Re: Which files could be under Windows File Protection??? |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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" <PeKaWe@gmx.net> wrote in message news:e047df3a.0307140116.1e0c573d@posting.google.com... > 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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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" <pdjwilson@nospam.cox.net> wrote in message news:<OfzXOwnSDHA.2260@TK2MSFTNGP12.phx.gbl>... > 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" <PeKaWe@gmx.net> wrote in message > news:e047df3a.0307140116.1e0c573d@posting.google.com... > > 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 |
|
|
|
#3 |
|
Guest
Posts: n/a
|
<<<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" <PeKaWe@gmx.net> wrote in message news:e047df3a.0307150018.5ad4c5ca@posting.google.com... > 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" <pdjwilson@nospam.cox.net> wrote in message news:<OfzXOwnSDHA.2260@TK2MSFTNGP12.phx.gbl>... > > 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" <PeKaWe@gmx.net> wrote in message > > news:e047df3a.0307140116.1e0c573d@posting.google.com... > > > 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 |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

