Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Trying to create 7-zip executable for MSWindows using Gentoo
Date: Sun, 10 Jan 2016 19:24:30
Message-Id: 5611581.4LWobot4V7@dell_xps
1 Hi All
2
3 I have installed app-arch/p7zip-15.09 and I am trying to create a 7-zip
4 archive which will run on MSWindows as an embedded executable. It seems that
5 only the standard console SFX module 7zCon.sfx has been installed, in
6 /usr/lib64/p7zip/7zCon.sfx and this is used by default:
7
8 ===================
9 $ 7za a -p -sfx archive.exe TEST1
10
11 7-Zip (a) [64] 15.09 beta : Copyright (c) 1999-2015 Igor Pavlov : 2015-10-16
12 p7zip Version 15.09 beta (locale=en_GB.UTF-8,Utf16=on,HugeFiles=on,64 bits,8
13 CPUs Intel(R) Core(TM) i7 CPU Q 720 @ 1.60GHz (106E5),ASM)
14
15 Scanning the drive:
16 1 folder, 2 files, 62 bytes (1 KiB)
17
18 Creating archive: archive.exe
19
20 Items to compress: 3
21
22 Write SFX: /usr/lib64/p7zip/7zCon.sfx : 404528 bytes (396 KiB)
23
24 Enter password (will not be echoed):
25
26 Files read from disk: 2
27 Archive size: 404774 bytes (396 KiB)
28 Everything is Ok
29 ===================
30
31 However, when I use it as shown above to create a .exe file, this fails to run
32 on MSWindows, saying things like:
33
34 "The version of this file is not compatible with the version of Windows you're
35 running. Check your computer's system information to see whether you need an
36 x86 (32-bit) or x64 (64-bit) version of the program, and then contact the
37 software publisher."
38
39 Trying to run it in compatibility mode (Windows XP Service Pack 2) also fails.
40 Finally, when I try to run it as Admininstrator it says:
41
42 "Windows cannot find 'C:\Users\user\Desktop\archive.exe'. Make sure you typed
43 the name correctly, and then try again."
44
45
46 I did not tried to run it on the console in MSWindows, because the intended
47 users would not know how to do this reliably. It has to be a point and click
48 solution.
49
50
51 Specifying any other SFX module listed in
52 /usr/lib64/p7zip/help/cmdline/switches/sfx.htm#SFX_Module fails, since all
53 other modules are missing:
54
55 =======================
56 $ 7za a -p -sfx7z.sfx archive.exe TEST1
57
58 7-Zip (a) [64] 15.09 beta : Copyright (c) 1999-2015 Igor Pavlov : 2015-10-16
59 p7zip Version 15.09 beta (locale=en_GB.UTF-8,Utf16=on,HugeFiles=on,64 bits,8
60 CPUs Intel(R) Core(TM) i7 CPU Q 720 @ 1.60GHz (106E5),ASM)
61
62
63 Error:
64 cannot find specified SFX module
65 7z.sfx
66 No more files
67
68
69 System ERROR:
70 Unknown error -2147024872
71 =======================
72
73
74 Using the GUI (in Dolphin) automatically tries to use 7z.sfx and fails with a
75 pop up:
76
77 No more files
78 cannot find specified SFX module
79 /usr/lib64/p7zip/7z.sfx
80
81
82 Any idea how I can resolve this? I looked at the application's website, but
83 the 7z-extras only seem to contain MSWindows files and I cannot spot the 7z.sfx
84 module anywhere.
85 --
86 Regards,
87 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Trying to create 7-zip executable for MSWindows using Gentoo Stroller <stroller@××××××××××××××××××.uk>