![]() exe extension, just like any other executable file. So if you don't want to run the self-extracting file you received (for example, it might contain a virus), you can use WinRAR to view or unzip its contents.Ī self-extracting file usually has an. However, WinRAR can still treat self-extracting files as any other compressed file. Such a compressed file does not require an external program to decompress the contents of the self-extracting file, and it can run the operation itself. ![]() A simple shortcut file (*.lnk) with the right command line is all you need to create the SFX archive with a double click on this shortcut whenever you want to create a new SFX for your application.Self-extractingA self-extracting file is a compressed file, which combines an executable module with a module that runs an extract file from a compressed file. So you don't need a batch file or any other application to create a WinRAR SFX archive. The content for the *.txt comment file for switch -z can be copied from tab Comment of the dialog opened for creating the archive after selecting all the SFX options.īy the way: I would suggest creating RAR self-extracting archives instead of ZIP self-extracting archives as with RAR compression the EXE file with the right switches for best compression using additionally also solid archive options could be much smaller than with ZIP compression. "%ProgramFiles%\WinRAR\WinRAR.exe" a -afzip -cfg-ed -ep1 -k -m5 -r -tl -iicon"Path to icon file\MyApplicationInstall.ico" "-sfx%ProgramFiles%\WinRAR\Zip.sfx" "-zComment file with full path containing SFX options" "Path to Destination Folder\MyApplicationInstall.exe" "Path to files to add to archive\*" You specify all options for creating the SFX archives directly on command line.įor the second possibility something like below can be used as template. Then you can call WinRAR.exe with switch "-cpMy SFX Profile". You do what you have already done, but before clicking on final OK, you click on button Profiles on tab General and click on list item Save current settings to a new profile. ![]() You see there the list items:Īll information you need to call WinRAR.exe with the right switches to create an SFX can be found in those help articles. Start WinRAR, click in menu Help on Help topics and open tab Contents. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |