Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmp file locked after using InstallPackage.UpdateFiles() #2942

Closed
wixbot opened this issue Nov 4, 2010 · 2 comments
Closed

tmp file locked after using InstallPackage.UpdateFiles() #2942

wixbot opened this issue Nov 4, 2010 · 2 comments
Labels
Milestone

Comments

@wixbot
Copy link

wixbot commented Nov 4, 2010

The InstallPackage.UpdateFiles() method creates a WITEMP folder and puts some into it.
Various operations, locking and releasing these files, are performed in the method.
However at InstallPackage.cs:542, a Record is created then used but not closed.
The msi file is updated properly but a cab file (in my case) is still locked (until the end of the process) after a InstallPackage.UpdateFiles() call.
As a result, the WITEMP folder can not be deleted and calling methods such as ExtractFiles or UpdateFiles specifying the same msi and WorkingDirectory is not possible anymore.
After adding the Close() and recompiling WindowsInstaller.Package (and its dependancies), the problem seems to be solved.

Originally opened by rlecole from http://sourceforge.net/p/wix/bugs/2330/

@wixbot
Copy link
Author

wixbot commented Nov 7, 2013

Originally changed by barnson
Area changed from dtf to
Releasechanged fromfuturetov3.x

@wixbot
Copy link
Author

wixbot commented Jun 3, 2015

http://wixtoolset.org/issues/4785/

Resolution set to duplicate
Status changed from Open to Resolved

@wixbot wixbot added the bug label Dec 20, 2015
@wixbot wixbot added this to the v3.x milestone Dec 20, 2015
@wixbot wixbot closed this as completed Dec 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant