From: Mick <michaelkintzios@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Trying to create 7-zip executable for MSWindows using Gentoo
Date: Sun, 10 Jan 2016 19:24:01 +0000 [thread overview]
Message-ID: <5611581.4LWobot4V7@dell_xps> (raw)
[-- Attachment #1: Type: text/plain, Size: 2704 bytes --]
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
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
next reply other threads:[~2016-01-10 19:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-10 19:24 Mick [this message]
2016-01-11 16:56 ` [gentoo-user] Trying to create 7-zip executable for MSWindows using Gentoo Stroller
2016-01-11 18:40 ` Mick
2016-01-11 18:54 ` Stroller
2016-01-11 19:14 ` Mick
2016-01-11 21:22 ` [gentoo-user] " Roman Dobosz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5611581.4LWobot4V7@dell_xps \
--to=michaelkintzios@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox