think there was a little misunderstanding in my last answer. here is code i actually tested and which should work.
string[] fileNames = Assembly.GetExecutingAssembly().GetManifestResourceNames();
foreach (String fileName in fileNames)
{
using (FileStream fileStream = File.Create(@"c:\temp\" + fileName))
{
Assembly.GetExecutingAssembly().GetManifestResourceStream(fileName).CopyTo(fileStream);
}
}
note that the resource must be marked as "embedded resources" for this to work (right click them in solution explorer, build action "embedded resources").
Maybe not 100% solved, im sorry.