1
Vote

[Win8 x64 7-zip x64 x86 project] Cannot find specified file when extracting 7z archive

description

Hi. There is a problem with finding 7z.exe in 32 bit application running on 64 bir environment (Windows 8 x64 with installed.
I've created 32 bit application (Solution Platform: x86) and have 7z.exe in c:\Program Files\7-Zip\7z.exe.
When I try to extract archive I get Cannot find specified file exception:
 
StackTrace:
w System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
w System.Diagnostics.Process.Start()
w PublicDomain.Copy.ProcessHelper.Start(Boolean useRedirect)
w PublicDomain.Copy.ProcessHelper.Start()
w PublicDomain.Copy.ProcessHelper.StartAndWaitForExit(Int32 timeoutMs, Boolean throwOnError)
w PublicDomain.Copy.ProcessHelper.StartAndWaitForExit(Boolean throwOnError)
w SevenZSharp.Decoders.ShellDecoder.DecodeIntoDirectory(String inFile, String outDirectory)
w SevenZSharp.Decoders.DelegationDecoder.DecodeIntoDirectory(String inFile, String outDirectory)
 
simple workaround:
copy c:\Program Files\7-Zip to c:\Program Files (x86)\7-Zip

comments