Video Screencast Help

How to Ignore File Lock Error While Compiling XPF Package

Created: 27 Dec 2011 • Updated: 27 Dec 2011
Language Translations
Ganesh.B's picture
+1 1 Vote
Login to vote

There were cases where compiling the captured layer through Virtual composer will fail due to blocked files.  This kind of issue will hamper automation, if you're compiling and converting all the layers to .xpf by running virtual composer CLI option.  Most of the times these files will be temporary files which is not necessary for your application to run when deployed into client machine.  

There is an option in default.xpt file placed under \Program files\Symantec\WiseVirtual composer folder to ignore files during compilation. Any files or folders updated under this section will be ignored during compilation,meaning if the specified file was opened by another process and virtual composer is unable to read that file then it will ignore that file and continue compilation. 

First make sure below property is to TRUE in default.xpt file.
 <PROPERTY NAME="engine.xpf.file.forcediscard" TYPE="2">true</PROPERTY>
 
To ignore files/folders which is already part of captured layer go to  <LIST NAME="engine.file.discard" TYPE="1">.  Virtual composer support wild card character, variables in pre-defined format.
 
To ignore all the files captured under C:\Windows\Temp folder
        <LISTITEM>$Windir$\Temp\*|*</LISTITEM>
 
To ignore all the files with extension .dat under C:\windows\System32 folder
        <LISTITEM>$systemdir$\*|*.dat</LISTITEM>
 
To ignore all the files with extension .log captured inside the layer
        <LISTITEM>*|*.log</LISTITEM>