I think I know what the problem is.
The cab file I'm trying to extract has directories inside. I think when
CabExtractCallback is called for the first file we get wzPath pointing to a
string like C:\Users\user\AppData\Local\Temp\extract\subdir\file1.txt
and the call to CreateFileW fails because
I'm trying to use CabExtract from cabutil.h (WiX v3.9) but I always get hr
== 0x80070003 (The system cannot find the path specified).
My code is equivalent to the following:
hr = CabInitialize(false);
hr = PathCreateTempDirectory(NULL, Lextract, 1, tempDir);
hr = PathConcat(tempDir, Lfile.cab,
2 matches
Mail list logo