Hi All I have installed app-arch/p7zip-15.09 and I am trying to create a 7-zip archive which will run on MSWindows as an embedded executable. It seems that only the standard console SFX module 7zCon.sfx has been installed, in /usr/lib64/p7zip/7zCon.sfx and this is used by default:
===================
$ 7za a -p -sfx archive.exe TEST1
7-Zip (a) [64] 15.09 beta : Copyright (c) 1999-2015 Igor Pavlov : 2015-10-16
p7zip Version 15.09 beta (locale=en_GB.UTF-8,Utf16=on,HugeFiles=on,64 bits,8
CPUs Intel(R) Core(TM) i7 CPU Q 720 @ 1.60GHz (106E5),ASM)
Scanning the drive:
1 folder, 2 files, 62 bytes (1 KiB)
Creating archive: archive.exe
Items to compress: 3
Write SFX: /usr/lib64/p7zip/7zCon.sfx : 404528 bytes (396 KiB)
Enter password (will not be echoed):
Files read from disk: 2
Archive size: 404774 bytes (396 KiB)
Everything is Ok
===================
However, when I use it as shown above to create a .exe file, this fails to run
on MSWindows, saying things like:
"The version of this file is not compatible with the version of Windows you're
running. Check your computer's system information to see whether you need an
x86 (32-bit) or x64 (64-bit) version of the program, and then contact the
software publisher."
Trying to run it in compatibility mode (Windows XP Service Pack 2) also fails.
Finally, when I try to run it as Admininstrator it says:
"Windows cannot find 'C:\Users\user\Desktop\archive.exe'. Make sure you typed
the name correctly, and then try again."
I did not tried to run it on the console in MSWindows, because the intended
users would not know how to do this reliably. It has to be a point and click
solution.
Specifying any other SFX module listed in
/usr/lib64/p7zip/help/cmdline/switches/sfx.htm#SFX_Module fails, since all
other modules are missing:
=======================
$ 7za a -p -sfx7z.sfx archive.exe TEST1
7-Zip (a) [64] 15.09 beta : Copyright (c) 1999-2015 Igor Pavlov : 2015-10-16
p7zip Version 15.09 beta (locale=en_GB.UTF-8,Utf16=on,HugeFiles=on,64 bits,8
CPUs Intel(R) Core(TM) i7 CPU Q 720 @ 1.60GHz (106E5),ASM)
Error:
cannot find specified SFX module
7z.sfx
No more files
System ERROR:
Unknown error -2147024872
=======================
Using the GUI (in Dolphin) automatically tries to use 7z.sfx and fails with a
pop up:
No more files
cannot find specified SFX module
/usr/lib64/p7zip/7z.sfx
Any idea how I can resolve this? I looked at the application's website, but
the 7z-extras only seem to contain MSWindows files and I cannot spot the 7z.sfx
module anywhere.
--
Regards,
Mick
signature.asc
Description: This is a digitally signed message part.

