Rar Sfx Command Line Icon Set
I'm trying to create a self-extractable (SFX) rar archive, which will have both icon and image. I'm using the following command line:
Trouble is - the resulting .exe can't be unpacked. Instead it says 'The archive is either in unknown format or damaged'. If I set only icon or only image, then everything is fine. But if I set both, I'm in trouble. Strangest thing.
Gal Shadeck- – WinRAR offers a graphic interactive interface utilizing mouse and menus as well as the command line interface. – WinRAR is easier to use than many other archivers with the inclusion of a special “Wizard” mode which allows instant access to the basic archiving functions through a simple question and answer procedure.
- May 13, 2017. RAR archiver, a powerful tool to process RAR and ZIP files. RAR - What's new in the latest version. Previous versions ignored files with invalid UTF- 8 names. PS3 Tools Collection v2.7.29 is released. PS3 Tools Collection is a collection of Windows tools (over 40 of them) for.
Rar Sfx Command Line Icon Settings
1 Answer
The code of the SFX module + the data of the bitmap file + data of the icon file + SFX comment file + other data (signature) are written first to the SFX archive file and next the actual archive with the compressed data is appended to the file.
For more information about WinRAR and win.rar GmbH please. EXT, FAT, GPT, HFS, IHEX, ISO, LZH, LZMA, MBR, MSI, NSIS, NTFS, QCOW2, RAR. Command Rar Password; Rar Command Line; Rar Sfx Command. This is a discussion on WinRar SFX Icon within the Windows XP Support forums, part of the Tech Support Forum category.
The maximum size of all data preceding the archive data must be at the moment smaller than 1 MB according to RAR 5.0 archive format technote documentation.
Possible solutions:
- Reduce the size of the bitmap file by making it smaller in width/height.
- Reduce the size of the bitmap file by decreasing the colors from true color to 256 colors.
- Reduce the size of the icon file by removing icons from icon file not really needed as a single icon in the dimensions 16x16, 24x24, 32x32 and 48x48 is enough. Some *.ico files contain multiple icons in various dimensions. A single icon in the standard dimensions is enough for an SFX archive. It is even possible to remove some sizes like 24x24 and 48x48 so that the icon file contains only one icon in dimensions 16x16 and 32x32.
- Reduce the size of the icon file by decreasing all true color icons in the file to icons with only 256 colors using a customized palette or even to 16 colors if that is possible.
- Reduce the size of the comment file if that is somehow possible like using wildcards for files to delete before installation or shorter text displayed to user on SFX execution.
- Reduce the size of the SFX module for example by compressing it with UPX.
But take into account that with compression of the SFX module itself the bitmap and the icon must be in the resources of the SFX module itself instead of being appended separately.
Mac Rar Command Line
A tool like Resource Hacker can be used to replace the standard bitmap by own bitmap and the standard icons by own icons as well as changing dialog layout. That reduces the total size of the data preceding the archive data even without compressing the SFX module with a runtime packer like UPX.
Using tools like Resource Hacker to customize the resources of one of the standard SFX modules of WinRAR is permitted by the copyright owners of WinRAR. See in help of WinRAR (winrar.chm) the page with title GUI RAR and ZIP SFX modules (Default.SFX and Zip.SFX) via Index tab or via Contents tab (first entry of Self-extracting modules) of help.
MofiMofiNot the answer you're looking for? Browse other questions tagged winrarsfx or ask your own question.
Rar Sfx Command Line Icon Sets
Compress, Encrypt, Package and Backup with only one tool
What's new in this version:
We updated WinRAR graphics:
- We are grateful to http://weirdsgn.com and http://icondesignlab.com designers participated in this endeavor and proud to announce that WinRAR uses the new icon set prepared by Aditya Nugraha Putra from http://weirdsgn.com
- 'Repair' command efficiency is improved for recovery record protected RAR5 archives. Now it can detect deletions and insertions of unlimited size also as shuffled data including data taken from several recovery record protected archives and merged into a single file in arbitrary order
- 'Turn PC off when done' archiving option is changed to 'When done' drop down list, so you can turn off, hibernate or sleep your PC after completing archiving
- Use -ioff or -ioff1 command line switch to turn PC off, ioff2 to hibernate and -ioff3 to sleep your PC after completing an operation
- If encoding of comment file specified in -z<file> switch is not defined with -sc switch, RAR attempts to detect UTF-8, UTF-16LE and UTF-16BE encodings based on the byte order mask and data validity tests
- WinRAR attempts to detect ANSI, OEM and UTF-8 encodings of ZIP archive comments automatically
- 'Internal viewer/Use DOS encoding' option in 'Settings/Viewer' is replaced with 'Internal viewer/Autodetect encoding'. If 'Autodetect encoding' is enabled, the internal viewer attempts to detect ANSI (Windows), OEM (DOS), UTF-8 and UTF-16 encodings
- Normally Windows Explorer context menu contains only extraction commands if single archive has been right clicked. You can override this by specifying one or more space separated masks in 'Always display archiving items for' option in Settings/Integration/Context menu items', so archiving commands are always displayed for these file types even if file was recognized as archive. If you wish both archiving and extraction commands present for all archives, place '*' here
- SFX module 'SetupCode' command accepts an optional integer parameter allowing to control mapping of setup program and SFX own error codes. It is also accessible as 'Exit code adjustment' option in 'Advanced SFX options/Setup' dialog
- New 'Show more information' WinRAR command line -im switch. It can be used with 't' command to issue a message also in case of successful archive test result. Without this switch 't' command completes silently if no errors are found. This switch is applicable only to WinRAR.exe and ignored by console RAR.exe
- If a wrong password is entered when unpacking an encrypted file in ZIP archive, WinRAR proposes to enter a valid password for same file again instead of aborting extraction
- If a wrong password is entered when opening or unpacking RAR archive with encrypted file names, WinRAR proposes to enter a valid password again instead of aborting the operation. Previous versions already did so for RAR archives with encrypted file data, but aborted for archives with file name encryption
- WinRAR recognizes GZIP files with arbitrary data preceding an actual GZIP archive, such as .scexe firmware files
- @filelist parameter can be specified in 'Files to add' field of archiving dialog. In this case WinRAR will attempt the list of archiving files from 'filelist' file, which should be the plain text, one file name per line
- Info dialog: compression ratio graph is updated
- Info dialog: 'Names and data' is displayed in 'Encryption' field for archives with encrypted file names
- Full archive name is displayed if mouse pointer is placed over an archive name in the operation progress window. It can be useful if archive name is lengthy and does not fit to available window space
- If -ts1 switch is used with -u or -f, file time comparison is performed with 1 second precision. Previosuly in such case we could wrongly treat an adding file as newer than archived just because we compared the high precision adding file time against the low precision archived file time
- 'Update' and 'Fresh' commands ('u' and 'f' in the command line mode) quit immediately if no files are to be updated. Previously they created a temporary archive before quitting when updating archives with recovery record or quick open information
- Prompt is issued after creating 500 volumes from WinRAR GUI shell, so user can continue or quit further archiving. It is done to prevent creating many thousands of volumes in case of wrongly entered volume size
- WinRAR uses megabytes instead of bytes as default units for volume size field in the archiving dialog
- 'Repair' command issues 'Recovery record is corrupt' message after repairing RAR5 archive containing a broken recovery record. Previously such message was issued only by 'Test' command and 'Repair' handled most of recovery record damages silently
Bugs fixed:
fixed potential security issues when processing corrupt RAR archives
non-English characters in TAR files with PAX extended headers were not displayed correctly
'rar x arcname.rar ..' command unpacked files to current folder instead of its parent
pasting files from Windows Explorer to archive opened in WinRAR blocked further copy and paste operations in Explorer until archiving was finished
SFX module issued 'The specified password is incorrect' message infinitely not prompting for correct password once a wrong password was entered
folders time was always set when extracting ZIP archives even if 'File time' options in the extraction dialog were turned off
if 'Delete mode: Always' was selected when extracting and user pressed 'Cancel' in the file overwrite or password prompt, an archive could be deleted even after cancelling extraction for .zip and .7z formats
- WinRAR 5.71 (32-bit)
Join our mailing list
Stay up to date with latest software releases, news, software discounts, deals and more.
Subscribe