* [gentoo-user] Trying to create 7-zip executable for MSWindows using Gentoo
@ 2016-01-10 19:24 Mick
2016-01-11 16:56 ` Stroller
0 siblings, 1 reply; 6+ messages in thread
From: Mick @ 2016-01-10 19:24 UTC (permalink / raw
To: gentoo-user
[-- 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 --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Trying to create 7-zip executable for MSWindows using Gentoo
2016-01-10 19:24 [gentoo-user] Trying to create 7-zip executable for MSWindows using Gentoo Mick
@ 2016-01-11 16:56 ` Stroller
2016-01-11 18:40 ` Mick
0 siblings, 1 reply; 6+ messages in thread
From: Stroller @ 2016-01-11 16:56 UTC (permalink / raw
To: gentoo-user
> On Sun, 10 January 2016, at 7:24 p.m., Mick <michaelkintzios@gmail.com> wrote:
>
> 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:
I've never tried to do this, so I may not have a helpful answer.
However, it might move you forward if I ask a couple of questions.
1. You say "only the module 7zCon.sfx is installed" - is it some other module you need, and do you know what it's called?
2. Assuming you know what program is required, is it in the archive retrieved by `emerge -f app-arch/p7zip`.
Stroller.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Trying to create 7-zip executable for MSWindows using Gentoo
2016-01-11 16:56 ` Stroller
@ 2016-01-11 18:40 ` Mick
2016-01-11 18:54 ` Stroller
0 siblings, 1 reply; 6+ messages in thread
From: Mick @ 2016-01-11 18:40 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2982 bytes --]
Thanks Stroller,
On Monday 11 Jan 2016 16:56:15 Stroller wrote:
> > On Sun, 10 January 2016, at 7:24 p.m., Mick <michaelkintzios@gmail.com>
> > wrote:
> >
> > 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:
> I've never tried to do this, so I may not have a helpful answer.
>
> However, it might move you forward if I ask a couple of questions.
>
> 1. You say "only the module 7zCon.sfx is installed" - is it some other
> module you need, and do you know what it's called?
===============================
'/usr/lib64/p7zip/help/cmdline/switches/sfx.htm#SFX_Module' lists the
following:
SFX_Module Description
---------- -----------
7z.sfx Windows version.
7zCon.sfx Console version.
7zS.sfx Windows version for installers.
7zSD.sfx Windows version for installers (uses MSVCRT.dll).
> 2. Assuming you know what program is required, is it in the archive
> retrieved by `emerge -f app-arch/p7zip`.
>
> Stroller.
Hmm ... can't see anything in there other than 7xCon.sfx:
p7zip_15.09/CPP/7zip/Bundles/
p7zip_15.09/CPP/7zip/Bundles/LzmaCon/
p7zip_15.09/CPP/7zip/Bundles/LzmaCon/LzmaAlone.cpp
p7zip_15.09/CPP/7zip/Bundles/LzmaCon/makefile.depend
p7zip_15.09/CPP/7zip/Bundles/LzmaCon/makefile
p7zip_15.09/CPP/7zip/Bundles/LzmaCon/makefile.list
p7zip_15.09/CPP/7zip/Bundles/Alone/
p7zip_15.09/CPP/7zip/Bundles/Alone/makefile.depend
p7zip_15.09/CPP/7zip/Bundles/Alone/makefile
p7zip_15.09/CPP/7zip/Bundles/Alone/makefile.list
p7zip_15.09/CPP/7zip/Bundles/AloneGCOV/
p7zip_15.09/CPP/7zip/Bundles/AloneGCOV/makefile
p7zip_15.09/CPP/7zip/Bundles/Alone7z/
p7zip_15.09/CPP/7zip/Bundles/Alone7z/makefile.depend
p7zip_15.09/CPP/7zip/Bundles/Alone7z/makefile
p7zip_15.09/CPP/7zip/Bundles/Alone7z/makefile.list
p7zip_15.09/CPP/7zip/Bundles/Format7zFree/
p7zip_15.09/CPP/7zip/Bundles/Format7zFree/makefile.depend
p7zip_15.09/CPP/7zip/Bundles/Format7zFree/makefile
p7zip_15.09/CPP/7zip/Bundles/Format7zFree/makefile.list
p7zip_15.09/CPP/7zip/Bundles/SFXCon/
p7zip_15.09/CPP/7zip/Bundles/SFXCon/makefile.depend
p7zip_15.09/CPP/7zip/Bundles/SFXCon/makefile
p7zip_15.09/CPP/7zip/Bundles/SFXCon/SfxCon.cpp
p7zip_15.09/CPP/7zip/Bundles/SFXCon/makefile.list
But I am not sure what to look for. I think that the above *.sfx list of
modules in the documentation is probably the result of compilation and
therefore won't be found in the source tar file. The build log shows only
7zCon.sfx being installed:
>>> /usr/lib64/p7zip/7zCon.sfx
These are my USE flags:
Calculating dependencies... done!
[ebuild R ~] app-arch/p7zip-15.09::gentoo USE="kde pch rar wxwidgets -doc
(-static)" ABI_X86="(-x32)" 0 KiB
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Trying to create 7-zip executable for MSWindows using Gentoo
2016-01-11 18:40 ` Mick
@ 2016-01-11 18:54 ` Stroller
2016-01-11 19:14 ` Mick
0 siblings, 1 reply; 6+ messages in thread
From: Stroller @ 2016-01-11 18:54 UTC (permalink / raw
To: gentoo-user
> On Mon, 11 January 2016, at 6:40 p.m., Mick <michaelkintzios@gmail.com> wrote:
> On Monday 11 Jan 2016 16:56:15 Stroller wrote:
>>> On Sun, 10 January 2016, at 7:24 p.m., Mick <michaelkintzios@gmail.com>
>>> wrote:
>>>
>>> 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.
So do you know that the http://p7zip.sourceforge.net/ app supports this?
Using linux to create a Windows self-extracting .exe?
Can you point to their documentation that says it's possible or how to do it?
Stroller.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Trying to create 7-zip executable for MSWindows using Gentoo
2016-01-11 18:54 ` Stroller
@ 2016-01-11 19:14 ` Mick
2016-01-11 21:22 ` [gentoo-user] " Roman Dobosz
0 siblings, 1 reply; 6+ messages in thread
From: Mick @ 2016-01-11 19:14 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1385 bytes --]
On Monday 11 Jan 2016 18:54:48 Stroller wrote:
> > On Mon, 11 January 2016, at 6:40 p.m., Mick <michaelkintzios@gmail.com>
> > wrote:>
> > On Monday 11 Jan 2016 16:56:15 Stroller wrote:
> >>> On Sun, 10 January 2016, at 7:24 p.m., Mick <michaelkintzios@gmail.com>
> >>> wrote:
> >>>
> >>> 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.
>
> So do you know that the http://p7zip.sourceforge.net/ app supports this?
>
> Using linux to create a Windows self-extracting .exe?
No, I don't know if cross platform creation of a Windows self-extracting .exe
is possible. I was hoping/assuming/researching that it was.
> Can you point to their documentation that says it's possible or how to do
> it?
>
> Stroller.
The only documentation that I found other than the man page is installed
under:
/usr/lib64/p7zip/help/cmdline/switches/sfx.htm
It mentions that "SFX modules for installers are included in an external
package (7z_extra)", but haven't found it (or other sfx modules) on my system
and the online 7z_extra is full of MSWindows files, but not these modules.
Perhaps it is not doable from a Linux system, at least not without installing
it first in a MSWindows VM to get the Windows modules out. I will try that
next.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-user] Re: Trying to create 7-zip executable for MSWindows using Gentoo
2016-01-11 19:14 ` Mick
@ 2016-01-11 21:22 ` Roman Dobosz
0 siblings, 0 replies; 6+ messages in thread
From: Roman Dobosz @ 2016-01-11 21:22 UTC (permalink / raw
To: gentoo-user
On Mon, 11 Jan 2016 19:14:57 +0000
Mick <michaelkintzios@gmail.com> wrote:
> Perhaps it is not doable from a Linux system, at least not without installing
> it first in a MSWindows VM to get the Windows modules out. I will try that
> next.
I would try to see if wine can handle this, before deploying vm.
--
-^- _ enjoying the silence
_ /O)_\//
(_(|__(_(_) grf.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-01-11 21:22 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-10 19:24 [gentoo-user] Trying to create 7-zip executable for MSWindows using Gentoo Mick
2016-01-11 16:56 ` 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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox