Exclusions and [{AppVPackageRoot}]

MVP

When you enter exclusions into the exclusion list, they are variablized, assuming that one does not specify a package installation folder.

 

For example, the entry "c:\Windows\System32\config" gets mapped to "[{AppVPackageRoot}]\config", which is because it probably assumes "C:\Windows\System32" as the default installation folder when not specified.

 

If you capture an install that happens to also write to this area without specifying an installation folder, such files are excluded.  If you capture with specifying a folder (such as "C:\Program Files\Vendor"), then the exclusion is missed.

 

Why is this important?  Well other than capturing inappropriate data, if a background windows process writes a file to this area during capture and then deletes it before we save the package off, the save fails with an error.

 

So there are two issues:

1) Filter definitions should not variablize for something that might change like this.

2) When we save a package, if a file in the ingredients no longer exists, maybe we should assume it was really a temporary file and ignore it rather than fail the package.

1 Reply
NOTE: This is related to the two feedbackhub submissions I made yesterday.