When using wix v3.0.3108.0 and calling light the following command line:
light.exe -nologo -sice:ICE03 -v -ext WixIIsExtension -cultures:en-us -out objd\i386\xxx.msi objd\i386\xxx.wixobj
Light will fail with the following error if a file is in use, without providing the file name to help debugging (including when the “-v” option is specified):
light.exe : error LGHT0216 : An unexpected Win32 exception with error code 0x20 occurred: The process cannot access the file because it is being used by another process
This is the stack of the error
0012edc4 0336d025 Microsoft.Tools.WindowsInstallerXml.Msi.Installer.GetFileHash(System.String, Int32, Int32[] ByRef)
0012edf0 0336b0ec Microsoft.Tools.WindowsInstallerXml.Binder.UpdateFileInformation(Microsoft.Tools.WindowsInstallerXml.Output, Microsoft.Tools.WindowsInstallerXml.FileRowCollection, Microsoft.Tools.WindowsInstallerXml.MediaRowCollection)
0012f0ac 03366ca5 Microsoft.Tools.WindowsInstallerXml.Binder.BindDatabase(Microsoft.Tools.WindowsInstallerXml.Output, System.String)
0012f2c0 03365b5f Microsoft.Tools.WindowsInstallerXml.Binder.Bind(Microsoft.Tools.WindowsInstallerXml.Output, System.String)
0012f2c8 00e820fd Microsoft.Tools.WindowsInstallerXml.Tools.Light.Run(System.String[])
0012f47c 00e80094 Microsoft.Tools.WindowsInstallerXml.Tools.Light.Main(System.String[])
If possible, it would be nice to provide the file name along with the error message to help debugging.
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 15 days (the time period specified by
the administrator of this Tracker).