It looks as if the powers that be are declaring this question off topic not really sure why as they don't have to leave an explanation either. Please send bug reports to the authors using the web page at www. The single -F is more reliable if the archive is not too much damaged, so try this option first. In this article, I will show you how to create self-extracting archive in Windows Linux Ubuntu. Better handling of dot files in the archive directory.
This is the location where you'll put all your tar files, scripts, binaries, etc that you'll want installed onto the new system. How easy is it to generate elf object files to link with the extraction code? A man page was contributed by Bartosz Fenski. Here are some of available options for makeself. I've managed to do this using a hex editor. Visit the following links: If you have any problems with the registration process or your account login, please.
The files must be unpacked using the root user. I am trying to move away from a windows process to do this extraction and they are - to put it bluntly - not technical or motivated enough to change their side of the extract. A self-extracting installer does the same thing, but it also copies the extracted content to appropriate directories. I appreciate your stab at the answer. Let me know if it works for you or if you need anymore help. In this tutorial, I will explain how to create a self-extracting archive or installer on Linux.
Add code for to automatically check if offset is 0 and if it is, have the program check the filelength of itself and write the right offset into itself. However using the separate from unrar rar command apt-get install rar did the trick for me: rar x file. The command-line parsing was vastly improved, the overall maintenance of the package was greatly improved by separating the stub from makeself. In the case of problems, follow the process for other platforms. This article has also been viewed 304,824 times. The more platform-agnostic, the better.
Any subsequent arguments to the archive will be passed as additional arguments to the embedded command. Compile your program, but instead of the filesize enter a magic number in the integer preferably as ascii, so you easily find it. Self extracting archives are also valid zip files, just with a bunch of extra stuff in them the extractor. If you want to run your own private programs. I've done chmod +x on the file and tried to run it like a script with no luck it gives me an error that there's no such file or directory. The -F option can be used if some portions of the archive are missing, but requires a reasonably intact central directory. This really belongs on superuser though.
The problem is in extracting a self-extracting file in an unknown archive format that is not zip. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. It looks like a script of some kind, but the problem is that it dosnt do anything: It simply displays the text! Since the demise of Loki, I am now the official maintainer of the project, and it is now being hosted here on GitHub. Added --encrypt for symmetric encryption through gpg Eric Windisch. A self extracting zip archive is just what it sounds like.
It isn't the extension that determines whether or not it can be executed as on windows. This is mostly needed if you are running as root, as tar will then try to recreate the initial user ownerships. While a typical archive file relies on a separate program e. If it's not compatible with wine, then you won't be able to execute it under Linux. Any enhancements and suggestions are welcome. It allows you to extract archives without additional software. I am trying to keep the code of this script as portable as possible, i.
You must explicitly use the -- special command-line construct before any such options to make sure that Makeself will not try to interpret them. My question is - what linux based utilities and example commands are there which would enable me to take this executable file and extract the data without having to run an exe on a windows platform? Use file descriptors internally to avoid error messages patch by Kay Tiong Khoo. If you also want to encrypt the file names, tick Encrypt file names. The archive will then uncompress itself to a temporary directory and an optional arbitrary command will be executed for example an installation script. This is still possible with the -sfx option. You will probably find that you can't select the utility as a way of opening the file but if you simply run the utility and then select the file it works.
The files will then be extracted in the current working directory and will stay here until you remove them. If you need to reset your password,. This is better to distribute software packages that may extract and compile by themselves i. Before you can start, you will need to install wine. Optionally ignore check for available disk space when extracting.