[WiX-users] Files protected by windows

2007-11-07 Thread Craig0ss

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#a13625856
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


Re: [WiX-users] Files protected by windows

2007-11-07 Thread Mike Dimmick
Anything that's protected by Windows in one version should have an official
installer or merge module for other Windows versions. Use that. It's got the
correct setup logic in it. If you say exactly what you're trying to do I
could be more helpful.

Also, by using the official installer, Microsoft can patch the product if
there's a bug (security or otherwise) in it. Don't expose your users to
security problems by breaking the detection logic.

If the installer is running on Windows 2000, the VersionNT property is set
to 500. For XP it's 501, Server 2003 is 502 and Windows Vista is 600. See
'Operating System Property Values' in the Windows Installer SDK.

-- 
Mike Dimmick

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Craig0ss
Sent: 07 November 2007 11:59
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#a13625856
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


Re: [WiX-users] Files protected by windows

2007-11-07 Thread Wilson, Phil
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