Go Back   TechArena Community > Software > Windows Software
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , ,

Sponsored Links



Winrar: Create SFX via Command Line

Windows Software


Reply
 
Thread Tools Search this Thread
  #1  
Old 02-07-2009
Member
 
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
Reply With Quote
  #2  
Old 02-07-2009
WMBrown's Avatar
Member
 
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.
Reply With Quote
  #3  
Old 03-07-2009
Member
 
Join Date: Aug 2007
Posts: 1,102
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:

Quote:
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
Reply With Quote
  #4  
Old 03-07-2009
Member
 
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
Reply With Quote
Reply

  TechArena Community > Software > Windows Software


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Winrar: Create SFX via Command Line"
Thread Thread Starter Forum Replies Last Post
WinRAR command line to unzip files in multiple directories jymoo Software Development 1 05-10-2011 01:37 PM
Winrar command line path extraction Catchkuber Windows Software 8 27-09-2011 11:37 PM
command line parameters for creating a self extracting exe with WinRAR kat_2403 Windows Software 1 24-08-2011 01:35 PM
Need help with Opera backup list and winrar command line shortcut Adesh1 Windows Software 5 06-05-2011 01:01 AM
Create shortcuts in the command line DarenHawk Software Development 4 28-04-2009 12:11 AM


All times are GMT +5.5. The time now is 07:02 PM.