Skip to content

Extraction without group folder #126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gcxd68 opened this issue Nov 18, 2021 · 7 comments
Open

Extraction without group folder #126

gcxd68 opened this issue Nov 18, 2021 · 7 comments

Comments

@gcxd68
Copy link

gcxd68 commented Nov 18, 2021

Hi,

Thank you for all the hard work. Il was looking for a way to extract files without creating group folders.

Example : the cabinet file contains 2 groups : DATA and EXECUTABLE. If I extract both towards an INSTALL folder, DATA and EXECUTABLE folders are created. I would like to get the files directly in the INSTALL folder and skip the group folder creation.

Is that even possible ?

Thank you,

Greg

@twogood
Copy link
Owner

twogood commented Nov 18, 2021

Thank you Greg for the kind words!

I don't have an obvious solution but maybe if you call it twice: once with -g DATA and once with -g EXECUTABLE?

@gcxd68
Copy link
Author

gcxd68 commented Nov 18, 2021

Thank you for the quick answer !

I already tried it, the DATA and EXECUTABLE folders still get created in the INSTALL one. Even with -g DATA or -g EXECUTABLE. I thought maybe there is something else to do I didn't notice ?

Greg

@twogood
Copy link
Owner

twogood commented Nov 18, 2021

If there is no directory structure, maybe -j will work? Otherwise I'm afraid you will have to relocate the files after extracting.

@gcxd68
Copy link
Author

gcxd68 commented Nov 18, 2021

Ok, I'll have a look, thank you !

@twogood
Copy link
Owner

twogood commented Nov 18, 2021

The reason for creating these directories, IIRC, is that sometimes files with the same name can exist in multiple groups or components.

@gcxd68
Copy link
Author

gcxd68 commented Nov 18, 2021

Yes I understand, but I thought an option to disable it would be great ! I'll try to explain my goal : I'm making an installer for an old software that won't install anymore on recent computers (but still works). The setup file looks for the files on the CD-ROM to install it. Because of these files extracting to this "group" folder, I have to extract them to a temporary folder and then copy them again to the destination. Not optimal, but it works. Thanks again.

@twogood
Copy link
Owner

twogood commented Nov 19, 2021

Yeah @gcxd68 that is a very typical use case, but I hope that moving the files to the right places (don't copy, that is much slower) with a script afterwards is not too much trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants