13 August 2017, 22:13 | #1 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,174
|
working lha for windows
Hi,
I have downloaded a lha.exe for windows here: http://gnuwin32.sourceforge.net/packages/lha.htm archiving works, but unarchiving doesn't (files can be opened with 7-zip) main problem: created files cannot be unarchived on Linux because of 0 UID Code:
[release@ceres ~]$ lha l whdload.org/www/games/Crossbow.lha PERMSSN UID GID SIZE RATIO STAMP NAME ---------- ----------- ------- ------ ------------ -------------------- drw-rw-rw- 0/0 0 ****** Aug 8 12:37 CrossbowHD/ -rw-rw-rw- 0/0 692 78.3% Aug 8 12:59 CrossbowHD/Crossbow.Slave -rw-rw-rw- 0/0 4615 51.3% Sep 10 2006 CrossbowHD/Crossbow.inf -rw-rw-rw- 0/0 8447 57.9% Sep 10 2006 CrossbowHD/Crossbow.newicon -rw-rw-rw- 0/0 4427 32.4% Aug 4 07:47 CrossbowHD/Install -rw-rw-rw- 0/0 708 49.9% Sep 10 2006 CrossbowHD/Install.info -rw-rw-rw- 0/0 17113 40.1% Aug 8 12:37 CrossbowHD/Manual ... ---------- ----------- ------- ------ ------------ -------------------- Total 13 files 45420 48.0% Aug 8 21:50 [release@ceres ~]$ lha x whdload.org/www/games/Crossbow.lha LHa: Error: Cannot extract CrossbowHD/Crossbow.Slave: Permission denied LHa: Error: Cannot extract CrossbowHD/Crossbow.inf: Permission denied LHa: Error: Cannot extract CrossbowHD/Crossbow.newicon: Permission denied |
13 August 2017, 23:32 | #2 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 6,987
|
Use su or sudo to extract the archive and change permissions of the extracted files.
Use Amiga lha (inside WinUAE) to create the archives. Use ZIP archives instead of LHA. It does not make sense to create LHA archives with Windows anyway because the advantage of storing Amiga file attributes is not given by Windows anyway, LHA or not. |
14 August 2017, 12:19 | #3 |
Registered User
Join Date: Mar 2013
Location: Leipzig/Germany
Posts: 466
|
Use Header level 0 (switch: -0) and/or force generic archive (switch: -g)
|
18 July 2022, 16:50 | #4 |
Bug hunter
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
|
Uhm... can't find a decent LHA for Windows x32/64.
The one from gnuwin32 fails simple archive listing: Code:
C:\Users\Luca\WinUAE\WinUAE files\Download - Amiga\testDOS>lha.exe l WOIST.lha PERMISSION UID GID SIZE RATIO STAMP NAME ---------- ----------- ------- ------ ------------ -------------------- [generic] 628 43.2% Apr 16 1995 WoIst.info LHa: Error: Unknown level header (level -81) ---------- ----------- ------- ------ ------------ -------------------- Total 1 file 628 43.2% Jun 17 21:58 HTML Code:
C:\Users\Luca\WinUAE\WinUAE files\Download - Amiga\testDOS>lha xw=subdir WOIST.lha LHa: Error: Not a directory WOIST.lha LHa: Error: Cannot extract WOIST.lha/WoIst.info ... Funny facts: lhant.exe from Aminet can list archives but fails on extract to specified dir, GnuWin32 fails on listing archives but extract to specified dir does work as expected |
18 July 2022, 17:04 | #5 |
Registered User
Join Date: Oct 2021
Location: England
Posts: 1,174
|
to just extract or to also add stuff? 7zip on windows lets you extract (ive only used it to extract, never tried adding to an archive tbh) from its gui and from command line, tho you need to enter its gui/settings and associate .lha with it.
|
18 July 2022, 17:10 | #6 |
Zone Friend
|
lhmelt version2..
can create lzh files.. in settings screen... or settings for lzh archives.. header change to h1 [lha] and method LH5 default 8k dont think lh6 or lh7 is supports on amiga. lha 2.2 on amiga supports lh6. |
18 July 2022, 17:26 | #7 |
Bug hunter
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
|
I don't use 7z (I prefer BandiZip) but thank you anyway...
Found lhmelt, thanks: https://micco.mars.jp/english/lhmelt_e.htm BTW, just found that previous build https://sourceforge.net/projects/gnu...les/lha/1.14i/ does work fine both listing, extracting to a specified path... and more, as expected. Latest version 1.14i-1 is broken instead. Code:
C:\Users\Luca\WinUAE\WinUAE files\Download - Amiga\testDOS>lha l WOIST.lha PERMSSN UID GID SIZE RATIO STAMP NAME ---------- ----------- ------- ------ ------------ -------------------- [generic] 628 43.2% Apr 16 1995 WoIst.info [generic] 584 60.8% Apr 20 1995 WoIst/LOCALE/CATALOGS/DEUTSCH/WoIst.catalog [generic] 749 53.4% Apr 20 1995 WoIst/LOCALE/WoIst.cd [generic] 740 59.9% Apr 20 1995 WoIst/LOCALE/WoIst_D.ct [generic] 886 59.7% Apr 16 1995 WoIst/Product-Info [generic] 563 45.5% Apr 16 1995 WoIst/Product-Info.info [generic] 1093 45.6% Apr 20 1995 WoIst/Source/WoIst.log [generic] 14733 27.4% Apr 20 1995 WoIst/Source/WoIst.mod [generic] 5780 66.0% Apr 20 1995 WoIst/WoIst [generic] 1814 56.0% Apr 9 1995 WoIst/WoIst.doc [generic] 1091 29.5% Mar 7 1995 WoIst/WoIst.doc.info [generic] 1747 57.1% Apr 20 1995 WoIst/WoIst.dok [generic] 1091 29.5% Mar 7 1995 WoIst/WoIst.dok.info [generic] 5656 65.4% Apr 20 1995 WoIst/WoIst020 ---------- ----------- ------- ------ ------------ -------------------- Total 14 files 37155 45.6% Jun 17 21:58 C:\Users\Luca\WinUAE\WinUAE files\Download - Amiga\testDOS>lha xw=subdir WOIST.lha subdir/WoIst.info - Melted : o subdir/WoIst/LOCALE/CATALOGS/DEUTSCH/WoIst.catalog - Melted : o subdir/WoIst/LOCALE/WoIst.cd - Melted : o subdir/WoIst/LOCALE/WoIst_D.ct - Melted : o subdir/WoIst/Product-Info - Melted : o subdir/WoIst/Product-Info.info - Melted : o subdir/WoIst/Source/WoIst.log - Melted : o subdir/WoIst/Source/WoIst.mod - Melted : oo subdir/WoIst/WoIst - Melted : o subdir/WoIst/WoIst.doc - Melted : o subdir/WoIst/WoIst.doc.info - Melted : o subdir/WoIst/WoIst.dok - Melted : o subdir/WoIst/WoIst.dok.info - Melted : o subdir/WoIst/WoIst020 - Melted : o Last edited by hexaae; 18 July 2022 at 17:38. |
18 July 2022, 17:38 | #8 |
Registered User
Join Date: Jun 2012
Location: Worksop/UK
Age: 59
Posts: 1,328
|
Izarc https://www.izarc.org extracts and creates lha archives amongst many others. I have used it for many years as my main zip program on Windows.
|
18 July 2022, 17:39 | #9 |
Bug hunter
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
|
Needed a command line version. I already use BandiZip for everything else (and have also DOpus for Windows )...
FYI: Bandizip or Zipware are the best for Windows (better than 7z, PeaZip, IZArc etc.) with drag'n'drop support, faaast, Windows native (no GUI wrapper) etc. Last edited by hexaae; 18 July 2022 at 17:45. |
18 July 2022, 17:45 | #10 |
Registered User
Join Date: Jun 2012
Location: Worksop/UK
Age: 59
Posts: 1,328
|
If you go to the download page there is a link for the command line add-on.
|
18 July 2022, 17:55 | #11 |
Bug hunter
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
|
Thanks. BTW, for those interested I've also found a 16bit version (DOSBox etc.). In The Zone.
|
31 August 2022, 00:21 | #12 |
Banned
Join Date: Feb 2022
Location: Anywhere and everywhere I have a contract
Posts: 822
|
Have used WinRAR in the past for unpacking lha files. But don’t recommend it for MUI3.8 as Windows doesn’t like the blank file it holds and causes issues.
|
31 August 2022, 08:41 | #13 |
CaptainM68K-SPS France
|
Use LHA under winuae, then get the LHA archive resulting in a windows shared folder.
For decrunching, either do it the opposite way, copy it in a windows shared folder, then use LHA in the cli in winuae to decrunch. |
01 September 2022, 21:19 | #14 |
Registered User
Join Date: Jan 2020
Location: Bentonville, AR USA
Posts: 74
|
7Zip handles .LHA
|
01 September 2022, 21:26 | #15 |
Registered User
Join Date: Apr 2020
Location: England
Age: 53
Posts: 431
|
Either Winzip or Izarc can easily create LHA files in Windows. Izarc seems to be more compatible than Winzip. Most of the big Windows archivers will extract LHA files.
https://www.izarc.org/ |
02 September 2022, 00:19 | #16 |
Bug hunter
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
|
Best free:
BandiZip ZipWare |
02 September 2022, 08:24 | #17 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,174
|
Extracting has never been a problem.
I don't have a windows-based + command line solution to create lha files which have the proper permission bits for the archived files. |
02 September 2022, 08:46 | #18 |
Ex nihilo nihil
Join Date: Oct 2017
Location: CH
Posts: 4,860
|
Not yet mentioned, so have you tried http://www.tugzip.com/ ?
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Unarchiving LHA & LZX files on Windows XP | amigauser | Amiga scene | 58 | 28 September 2017 23:36 |
winuae 64bit not working on Windows 10 | prallo | support.WinUAE | 23 | 06 August 2017 18:53 |
SpiritOfAdventure_v1.2_De_1Disk.lha - is it working? | ransom1122 | project.WHDLoad | 3 | 18 March 2017 09:03 |
Open Multi Write Lha Archive on Windows | zzap64 | support.Apps | 8 | 05 February 2016 13:14 |
OpenGL not working on Windows 10? | Cabirus | support.FS-UAE | 11 | 18 September 2015 11:50 |
|
|