I didn't find any possibility with SevenZipSharp to exclude files.
Instead I use now DotNetZip which has a nice method to remove files:
ZipFile.RemoveEntry()
and ZipFile.RemoveEntries()
e.g.:
foreach (string removePath in Verifier.ExcludePaths)
{
try
{
// Remove files and directories to be excluded
zipFile.RemoveEntry(removePath);
}
catch (Exception)
{
Logger.Warn("Could not exclude path \"{0}\".",removePath);
}
}