[olug] self extracting encrypted file, windows compatible?

Kristian Erik Hermansen kristian.hermansen at gmail.com
Thu Jan 24 21:34:21 UTC 2008


On Jan 24, 2008 12:52 PM, Ryan Stille <ryan at cfwebtools.com> wrote:
> I can't get this to work, have you done it before?  When I try to run
> the generated executable on my windows machine I get "Program too big to
> fit in memory", which usually means a corrupt exe.  I've tried using
> both the 7z and 7za programs, and I've tried -tzip -t7z, and I always
> get the same error.  I've tried removing the -pmypassword option, too.
> And the mhe option.

Hrmm, from the 7z man page...

EXAMPLE 2
       7z a -sfx archive.exe dir1
              add all files from directory "dir1" to SFX  archive  archive.exe
              (Remark : SFX archive MUST end with ".exe")

EXAMPLE 3
       7z a -mhe=on -pmy_password archive.7z a_directory
              add  all  files  from  directory  "a_directory"  to  the archive
              "archive.7z" (with data and header archive encryption on)

I don't have Windows to test :-(  Only wine...
-- 
Kristian Erik Hermansen
"Know something about everything and everything about something."



More information about the OLUG mailing list