One of the ways to get an idea of what's protected on Win2k/XP/Server
2003 is to run this program below, listing what's protected on the OS
you run it on. It doesn't work on Vista because the protected resource
implementation is different. Otherwise you generally have to get
knowledgeable about what's part of the OS (or is in a separate redist
like MDAC). This is occasionally useful
http://support.microsoft.com/dllhelp/  with a bit of interpretation. 


#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 


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Craig0ss
Sent: Wednesday, November 07, 2007 3:59 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Files protected by windows


hi guys

when im installing on win2k i get errors saying that the file being
copied
is being protected by windows, these files are going into the system32
folder, these files already exist on win2k but not not on others likw
xp,
will i need to diable these files being installed to a win2k system?

Also is there a registry entry that i can check for win2k

Thanks

Craig0ss
-- 
View this message in context:
http://www.nabble.com/Files-protected-by-windows-tf4764277.html#a1362585
6
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to