Results 1 to 4 of 4

Thread: Winrar: Create SFX via Command Line

  1. #1
    Join Date
    Jul 2009
    Posts
    2

    Winrar: Create SFX via Command Line

    Hi,

    I want to automatically create a SFX with winrar and command line parameters. I tried:

    winrar -sfx test *.*

    Creates a SFX, uses the icon i saved as default, but does not use the SFX Options like temp mode, silent etc.

    How can i apply my Skript:

    Setup=Setup.exe
    TempMode
    Silent=1

    ?
    Thanks,
    Timo

  2. #2
    Join Date
    May 2008
    Posts
    308

    Re: Winrar: Create SFX via Command Line

    You have created setup.exe with MSBuild, as a .NET bootstrapper, it will not work as setup.exe of MSBuild exits BEFORE msiexec opens MSI file, so rarsfx deletes MSI before msiexe installs it. To Create a Self Extracting Archive - check this.

  3. #3
    Join Date
    Aug 2007
    Posts
    1,098

    Re: Winrar: Create SFX via Command Line

    The command line version RAR is available for Linux, DOS, OS / 2, FreeBSD and MAC OS X.or try CuteZIP archive from the command line. You must have CuteZIP’s default settings set to create a self-extracting encrypted ZIP archive.

    To create a self-extracting encrypted ZIP archive from the command line:

    1. Start CuteZIP.
    2. select Edit > Settings from the menu bar.
    3. select Compress Options.
    4. select the SFX Encrypted Zip from the Create new archive as: box.
    5. select Twofish or PKZIP compatible compression.
    6. Click the Apply button.
    7. Click OK.
    8. Close CuteZIP.
    9. Execute the following command:

    c:\progra~1\global~1\CuteZIP\cutezip.exe -c -p12345 c:\archive.exe c:\mydocu~1\
    This will create a self-extracting encrypted archive called archive.exe, with 12345 for the password, in the root of the c: drive consisting of all the files and folders in c:\mydocu~1.
    Extraction Parameters
    -x = extract
    -p = password


    help.globalscape .com

  4. #4
    Join Date
    Jul 2009
    Posts
    2

    Re: Winrar: Create SFX via Command Line

    Thank you for your answers. They didn't really fit to my question, but the Link helped me.

    What i needed was the -z option in Winrar. It allows to add SFX-Script information.

    Cheers,
    Timo

Similar Threads

  1. WinRAR command line to unzip files in multiple directories
    By jymoo in forum Software Development
    Replies: 1
    Last Post: 05-10-2011, 12:37 PM
  2. Winrar command line path extraction
    By Catchkuber in forum Windows Software
    Replies: 8
    Last Post: 27-09-2011, 10:37 PM
  3. Replies: 1
    Last Post: 24-08-2011, 12:35 PM
  4. Create shortcuts in the command line
    By DarenHawk in forum Software Development
    Replies: 4
    Last Post: 27-04-2009, 11:11 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,710,814,641.09117 seconds with 17 queries