You are on page 1of 13

WinRAR SFX Commands - Unattended Windows 2000/XP/2003 - MSF...

1 of 13

file:///D:/Comp. INFO/MyEbooks/WinRAR SFX Commands - Unattend...

Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation
to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you
have signed in.

Page 1 of 2

Ok, so SFX archives are obviously very useful, especially for Unattended Installs.
Ergo (I love that word), i posted all of the commands and what each parameter of the command does.
Lots of info here is from the WinRAR help/
I'll try to keep this first post updated with all the commands known.

Basic SFX Info:
Using WinRAR you can create GUI (graphic mode) self-extracting archives for 32-bit Windows version (Windows 95, 98, NT and so
on). [These modules cannot be executed under Windows 3.1 or DOS.]
Both these modules support simple setup commands. You may put them to the SFX archive comment. Setup commands are listed
below.

[quote];The comment below contains SFX script commands[/quote]
This is needed at the beginning of every comment section of the SFX.

[quote]Delete=[filename][/quote]
Delete the specified file in the destination folder before extraction. Several Delete commands are allowed.
If a file specified in the Delete command is locked and cannot be deleted, SFX module will try to rename it to temporary name before
extraction and delete after Windows reboot. Success of this operation depends on Windows version.

Examples:
Delete=winrar95.exe
Delete=rarlng.dll

[quote]License=[title of the license dialog]

1/28/2015 9:14 PM

You may use this command. Examples: Path=%systemdrive%\WINDOWS\System32 This installs to System32 in the Windows folder. Following this test period.MSF. you MUST register.exe" before setup/extraction.exe /clean Runs "uninstall.Unattend.05 Set the default path to "Program Files\Calc 3. Also it is possible to use any web page editor program to prepare HTML text. In the latter case SFX module merges and reformats the specified text strings to fit them optimally into the dialog. SavePath command may be used only in combination with Path command. you need to put the empty string before it.. This program is shareware. so a user may choose between previously entered and original paths. to remove a previous version of program. License may be either in HTML or plain text format. fonts and formatting of displayed text. The destination folder is set as the current before executing [program]. for example.. Examples: Presetup=uninstall. Path=Calc 3.. it must be enclosed in quotes. Path=AIM This installs to Program Files\AIM. when installing a new version over the old one. The original value of Path command is placed to the list associated with the destination path input field.Unattended Windows 2000/XP/2003 .05": Path=C:\Calc Set the default path to "C:\Calc": Path=. 2 of 13 file:///D:/Comp. { license text1 license text2 … }[/quote] Display the software license when starting SFX. [quote]SavePath[/quote] This command allows SFX to store the destination path entered by user to Registry and then restore it when SFX archive with the same parameter of Path command executed the next time. Examples: License=End user license agreement { All copyrights to RAR are exclusively owned by the author.\Calc Set "Calc" folder without any preceding text as the default path: [quote]Presetup=[program][/quote] SFX will try to execute [program] before starting extraction. Description of HTML syntax is available on The World Wide Web Consortium site. If a program name contains spaces. It allows to change the proposed path to desired only once instead of retyping it every time. This feature may be convenient when installing new versions or upgrades of some software to the same folder. Examples: 1/28/2015 9:14 PM . } [quote]Path=[your path here][/quote] Where to install the files contained in the SFX. Anyone may use this software during a test period. So if you wish to start a new paragraph..WinRAR SFX Commands . User may either accept it and continue extraction or decline and quit. Using HTML you may control colors. INFO/MyEbooks/WinRAR SFX Commands .

. Examples: Silent=2 This displays the unzipping box. 2=Confirmation to start extracting is skipped. The SFX automatically sets the silent mode to skip the the start dialog when performing these operations. [quote]Text=[string][/quote] or [quote]Text { string1 string2 … 1/28/2015 9:14 PM . so setup program can read it if it needs such information. a script should also have Setup command and must not include Path command. which is used to define a question and question title displayed before extraction. [quote]Silent=X[/quote] where X can be: 1=Start dialog is completely hidden.. Examples: TempMode Unpacks to temp folder. extract all files to it. try to execute "setup. This switch allows SFX to detect termination of the InstallShield setup program. but no pop-up messages.exe SFX will try to run "setup. If a program name contains spaces. This is the setting for what you want displayed on the screen. Path=Calc 3. Examples: Setup=setup. 3) SFX module sets sfxname environment variable before running the setup program. If TempMode command is present.exe".Unattended Windows 2000/XP/2003 .exe. which forces the silent install mode without displaying the start dialog. In such case extraction is started only if user selects "Yes" button. The folder containing extracted files is set as the current before executing [program]. TempMode=Do you wish to continue installation of Calculator 3.WinRAR SFX Commands . Notes: 1) If you have problems to use SFX to run InstallShield setup..Unattend. SFX itself understands only -s switch. start the program specified in Setup command and remove the temporary folder including all its contents after completing the Setup program. Calculator setup Creates temp folder..MSF. including the progress bar and file names. This variable contains the name of SFX archive.05 SavePath [quote]TempMode=[Question][. 3 of 13 file:///D:/Comp. 2) All switches specified in SFX command line are passed to a program from Setup=<program> command.exe".05?. INFO/MyEbooks/WinRAR SFX Commands . and displays dialog with text "Do you wish to continue installation of Calculator 3. it must be enclosed in quotes. but users still see performing of the archive unpacking.exe /SMS" instead of simple "setup.Title][/quote] This command forces SFX to create a temporary folder.05?" [quote]Setup=[program][/quote] SFX will try to execute <program> after successful extraction. TempMode command may have the optional string parameter.

2. "Media Player Classic" This creates a shortcut to the mplayerc.2".exe file in the SFX (no matter where it is installed to). Using HTML you may control colors.8. overwrite. "PATHTOPROGRAM". Examples: Text=Here is my new program Add the single string to the dialog window Text { Most interesting features of this program are: . 1/28/2015 9:14 PM . Replace the variables with real ones Also. if there is some way to install shortcuts to locations other than the ones I have listed. Description of HTML syntax is available on The World Wide Web Consortium site. "mplayerc.Unattended Windows 2000/XP/2003 . fonts and formatting of displayed text. "Media Player Classic v6.. INFO/MyEbooks/WinRAR SFX Commands . "Media Player Classic" This creates a shortcut to the mplayerc.4. Following commands append [string] to the already existing text. }[/quote] This adds the specified plain text or HTML strings to the text output window of SFX module. [quote]Shortcut=X. "SHORTCUTNAME"[/quote] where X can be: D=Desktop S=Start Menu P=Start Menu/Programs T=Startup This one makes a shortcut. .2". "mplayerc.8. } Add the specified text to the dialog window [quote]Overwrite=X[/quote] where X can be: 0=User will be asked before overwriting files 1=Overwrite the file if it exists without confirmation 2=All existing files will not be overwritten This is the setting for whether the SFX should overwrite the file if it exists. Examples: Overwrite=1 This means: YES. The shortcut tooltop (when you move your mouse over it) displays Media Player Classic v6.2. "Media Player Classic v6.MSF. in Start -> Programs -> Media Player.8.processing of files up to 10KB size each. in Start -> Programs.exe". and the shortcut itself is named Media Player Classic.. "Media Player". "DESCRIPTION". you need to put the empty string before it. Depending on the used syntax this command may add either a single string or several strings at once.4.exe file in the SFX (no matter where it is installed to). Examples: Shortcut=P. In case of plain text contents SFX module merges and reformats the specified text strings to fit them optimally into the dialog. Also it is possible to use any web page editor program to prepare HTML text.4.8.exe". and the shortcut itself is named Media Player Classic. When SFX module encounters Text command the first time. it resets the default contents of this window before adding [string].4.. The shortcut tooltop (when you move your mouse over it) displays Media Player Classic v6.WinRAR SFX Commands . So if you wish to start a new paragraph. 4 of 13 file:///D:/Comp.Unattend. "".support of the Windows Clipboard.. "SUBMENU". Shortcut=P. please let me know.

version 3.8.Unattended Windows 2000/XP/2003 . How to remove advertisement from MSFN I have a question about the comments. they have a ".. [quote]Title=[title][/quote] Set a title of SFX window.08:27 PM.. "Media Player Classic v6. . file:///D:/Comp. voila! All the commands at yr fingertips.MSF. "mplayerc.05 [quote name='Full SFX Comment Code Example']. "Media Player Classic"[/quote] Edited by a06lp.) because they are commented out.The comment below contains SFX script commands Path=%systemdrive%\WINDOWS\System32 SavePath Silent=1 Overwrite=1 Shortcut=P. Examples: Title=Calculator. 15 December 2004 ." in the beginning of the line.4. "".. @totoymola Those don't really matter (i think.Unattend..exe".WinRAR SFX Commands . and your icon freaks me out.. The comments of the original WinRAR installer from the web (which is an sfx) is this..2". @Astalavista Thanks.. @durex 5 of 13 1/28/2015 9:14 PM . INFO/MyEbooks/WinRAR SFX Commands . Multifunctional Integrated Archive Manager What is that? How do you make an sfx like the original installer? Posted Image Open WinRar > Help topics > Self-extacting modules > GUI RAR and ZIP SFX modules. WinRAR .. Meaning..

. you cant use "/s" with SFX's i dont think that is what he meant. or helped a few people.MSF. Well.. how do you hide the REAL comments like the installer of WinRAR itself..Unattend... right? But if you open the original installer of WinRAR with WinRAR. here is a picture guide on how to setup winrar default settings.html (http://ezshare.de/fi. because i use the "/s" switch to install it. you will not see that comment.html) totoymola. 6 of 13 file:///D:/Comp. i added the rest of the commands from the help file to the top post. is the WinRAR installer an SFX? i dont think so.. how do you hide the REAL comments like the installer of WinRAR itself.Unattended Windows 2000/XP/2003 . http://ezshare. said: I know.. for people who are already searching around the forums its a great reference thread. they have a ". Crap..rar. The question is. Meaning... If you make an sfx that runs a file after extraction. your comments will have something like "Setup=whatever".. Either way.. I dont think it was a waste of time. nice guide Quote @totoymola Those don't really matter (i think.de/files-en/183815/My_Documents.uments.WinRAR SFX Commands . The question is. your comments will have something like "Setup=whatever". i either totally wasted my time. nice work. right? But if you open the original installer of WinRAR with WinRAR. you will not see that comment.rar.) because they are commented out.. should be useful to the newbies. 12:34 AM. Quote is the WinRAR installer an SFX? 1/28/2015 9:14 PM . I know. on Dec 16 2004." in the beginning of the line. INFO/MyEbooks/WinRAR SFX Commands .. If you make an sfx that runs a file after extraction.

.rar. should be useful to the newbies.de/files-en/183815/My_Documents.de/fi.. you can.Unattend. it is..Unattended Windows 2000/XP/2003 . said: here is a picture guide on how to setup winrar default settings.The comment below contains SFX script commands Path=WinRAR SavePath Setup=uninstall. you can. 03:52 PM.lng 1/28/2015 9:14 PM . take your winrar installer right click with wirnar select open with winrar it is a sfx hehehehehe Quote ..rar. Quote you cant use "/s" with SFX's Yes.. INFO/MyEbooks/WinRAR SFX Commands .html) bad link it is working ok already 2 downloads totoymola. Quote you cant use "/s" with SFX's Yes. said: Quote is the WinRAR installer an SFX? Yes. Astalavista.WinRAR SFX Commands .html (http://ezshare. Yes. it is.exe /clean Overwrite=1 Delete=*.exe /setup Presetup=uninstall. 10:36 PM.. http://ezshare. 7 of 13 file:///D:/Comp. on Dec 16 2004.uments.MSF. on Dec 15 2004.

if you wish to continue to use WinRAR. <em>Z</em>.dll Delete=Formats\7z. scrollbar-shadow-color:#f0f0f0 } em {color: navy. font-style: normal} </style> &nbsp. <em>UUE</em>.<br><br> &nbsp. <em>LZH</em>.fmt Title=WinRAR v3.&nbsp. <em>TAR</em>. you must register.&nbsp. <em>GZ</em>. It provides complete support of <em><b>RAR</b></em> and <em><b>ZIP</b></em> files. scrollbar-arrow-color:#f0f0f0.fmt Delete=Formats\lzh.Unattend.fmt Delete=Formats\tar. associated with the creation and distribution of RAR archives or self-extracting archives. Anyone may use it during a test period of 40 days. Delete=rarlng.sfx Delete=Formats\ace. <em>JAR</em>. <b>WinRAR is a powerful archiver</b>. <html> <body bgcolor="#ececec"> <style> body { color: #000000. Legally registered owners may use their copies of WinRAR to produce and distribute those archives free of any additional RAR royalties.fmt Delete=Formats\bz2.sfx Delete=os2. scrollbar-3dlight-color:#f0f0f0.<br><br> &nbsp. font-size: 12. file:///D:/Comp.. Among WinRAR features are strong compression. INFO/MyEbooks/WinRAR SFX Commands .fmt Delete=Formats\arj.<br><br> &nbsp.txt Delete=order.MSF.WinRAR SFX Commands .frm Delete=rar_site. backup facilities.41 Corporate Edition Text { This is a REAL Corporate version.dll Delete=rarext.. <b>WinRAR archiver is distributed as is</b>. volumes. background-color: #ffffff.. <em>ACE</em>.&nbsp. self-extracting modules.fmt Delete=Formats\iso. scrollbar-face-color:#909090.txt Delete=register.Unattended Windows 2000/XP/2003 .dll Delete=Formats\z. scrollbar-highlight-color:#f0f0f0. apart from the cost of registration. <em>ISO</em>. <em>ARJ</em>.txt Delete=Dos. <em>BZ2</em>. font-family: "MS Sans Serif". <b>There are no additional license fees</b>.fmt Delete=Formats\cab..fmt Delete=Formats\7za. scrollbar-darkshadow-color:#909090.fmt Delete=Formats\gz.dll Delete=register. <b>WinRAR is shareware</b>. <em>CAB</em>. encryption. 8 of 13 1/28/2015 9:14 PM .fmt Delete=Formats\unacev2.&nbsp. Following this test period or less.fmt Delete=Formats\uue. unpacks <em>7Z</em>.

A. dlf u dont need to do any of that. Oh.key to my Winrar folder thru' RunOnceEx.. I can make the archive and do the syntax for the RunOnceEx ok . So maybe in a future version it might be possible. related to this thread: I made a request for the WinRAR developers to add shortcut commandline switch to create quick launch icons and I already got a responce thanking for the suggestion.exe /clean Overwrite=1 I want to use an SFX to create a file to install my rarreg.Unattended Windows 2000/XP/2003 . loss of profits or any other kind of loss while using or misusing this software. damages. You use at your own risk.WinRAR SFX Commands . Neither the author nor the agents of the author will be liable for data loss..but I have 2 quick questions: when specifying the absolute path in the SFX settings can I use %systemdrive%\Program Files\WinRar (which will make the uA CD more versatile) or does it have to be X:\Program Files\WinRar ?? Also because there's a gap in Program Files does it all have to be enc in quotes? Have used the winrar help file util but there's no mention of %systemdrive% usage. </body> </html> } ok. No warranty of any kind is expressed or implied.I. T. INFO/MyEbooks/WinRAR SFX Commands ..The comment below contains SFX script commands Path=WinRAR SavePath Setup=uninstall. Who knows! use the arrow to hide your commands like this: .exe /setup Presetup=uninstall.MSF.. 1/28/2015 9:14 PM .. i was just speculating. 9 of 13 file:///D:/Comp.Unattend.

background-color: #ffffff. It provides complete support of <em><b>RAR</b></em> and 1/28/2015 9:14 PM .41 Corporate Edition Text { This is a REAL Corporate version.exe /clean Overwrite=1 Delete=*. scrollbar-arrow-color:#f0f0f0.. all u need to do is to unpack the winrarsetup.&nbsp. scrollbar-highlight-color:#f0f0f0. scrollbar-darkshadow-color:#909090.lng Delete=rarlng.The comment below contains SFX script commands Path=WinRAR SavePath Setup=uninstall.Unattend. Quote .fmt Delete=Formats\7za.WinRAR SFX Commands .frm Delete=rar_site. scrollbar-shadow-color:#f0f0f0 } em {color: navy. 10 of 13 file:///D:/Comp.exe /setup Presetup=uninstall..Unattended Windows 2000/XP/2003 .MSF. INFO/MyEbooks/WinRAR SFX Commands . font-size: 12.sfx Delete=os2.exe u place the rarreg.sfx Delete=Formats\ace.fmt Title=WinRAR v3.fmt Delete=Formats\lzh.fmt Delete=Formats\unacev2.txt Delete=order. scrollbar-face-color:#909090.key into the unpacked folder repack it using this comment.txt Delete=register. scrollbar-3dlight-color:#f0f0f0.dll Delete=rarext.fmt Delete=Formats\iso.fmt Delete=Formats\gz.fmt Delete=Formats\tar. font-style: normal} </style> &nbsp.fmt Delete=Formats\arj.txt Delete=Dos.fmt Delete=Formats\uue.fmt Delete=Formats\bz2.. <b>WinRAR is a powerful archiver</b>. font-family: "MS Sans Serif".. <html> <body bgcolor="#ececec"> <style> body { color: #000000.dll Delete=Formats\7z.dll Delete=Formats\z.dll Delete=register.fmt Delete=Formats\cab.

Asta. <b>There are no additional license fees</b>. Among WinRAR features are strong compression. you must register. loss of profits or any other kind of loss while using or misusing this software.Unattended Windows 2000/XP/2003 . $/PX sixpack. 11 of 13 file:///D:/Comp. How do I put an image into the comments section of an SFX archive.<br><br> &nbsp.. What other program do I might need to use where adding images and changing buttons can be optional since I couldn't find this in WinRAR? Thanks so far. 06:04 AM.. <em>GZ</em>. <em>ACE</em>. even change the Extract button? I know it was done before. Following this test period or less. <em>BZ2</em>. backup facilities. said: use the arrow to hide your commands like this: 1/28/2015 9:14 PM . encryption. that is what most of us with keys do use WinrarSetup. <em>Z</em>.WinRAR SFX Commands .<br><br> &nbsp. <em><b>ZIP</b></em> files.MSF... <em>JAR</em>. example shown in attachment. INFO/MyEbooks/WinRAR SFX Commands . associated with the creation and distribution of RAR archives or self-extracting archives. <em>LZH</em>.Unattend. on Dec 28 2004. apart from the cost of registration. Legally registered owners may use their copies of WinRAR to produce and distribute those archives free of any additional RAR royalties. </body> </html> } done. <em>ISO</em>. <em>UUE</em>.&nbsp. Anyone may use it during a test period of 40 days. unpacks <em>7Z</em>.exe /S Seems a lot of work. <em>TAR</em>. self-extracting modules.&nbsp. if you wish to continue to use WinRAR. <b>WinRAR archiver is distributed as is</b>. You use at your own risk.&nbsp. volumes. <em>ARJ</em>.<br><br> &nbsp. <b>WinRAR is shareware</b>. unpacking and then repacking for the sake of a 1kb text file! (It would work tho s'pose). <em>CAB</em>. No warranty of any kind is expressed or implied. damages. Neither the author nor the agents of the author will be liable for data loss.

Unattended Windows 2000/XP/2003 . simply change Setup=uninstall. strange: Its not displayed correctly in the CodeTag of board@msfn. .. Edited by Twisten.Unattend..reg and there you go a registered (assuming you archived rarreg. 24 May 2008 .WinRAR SFX Commands . INFO/MyEbooks/WinRAR SFX Commands . actualy you can't its passed along to the uninstall.exe it just wait until it was unpack and not to the setup. .exe file that said.Kommentaren nedenfor indeholder SFX kommandoer Path=C:\Users\Default\AppData\Local\Temp\ SavePath Setup=Setup. but copy&paste into winrar is working. but didnt find the "arrow"...11:14 AM.key) configured installation of winrar. Hello i have create a sfx like this . use winrar to export your settings.. been a while since the last post.reg and add Setup=regedit.xml" Silent=1 Overwrite=1 is there anyway to use start /wait on setup or on the sfx file.exe /setup to Setup=uninstall.The comment below contains SFX script commands Path=WinRAR SavePath Setup=uninstall.MSF.exe /clean Overwrite=1 Could you tell us the Ascii Code plz ? I checked the Ascii Table.exe --mode=Silent --deploymentFile="C:\Users\Default\AppData\Local\Temp\install.exe /setup /s voila no more popup for the configuration options and if you add Silent=1 you've got a totaly silent installer. still for those looking for the answer to that question: put on a line of its own ascii code 0x1A which is the SUB (Substitute) control character. 12 of 13 file:///D:/Comp.exe /s settings.exe is finish Page 1 of 2 Back to Unattended Windows 2000/XP/2003 MSFN Forum → Unattended Windows Discussion & Support → Unattended Windows 2000/XP/2003 1/28/2015 9:14 PM ..exe /setup Presetup=uninstall. ooo boy. because if i use start/wait repack. . Edit: About being able to use /s with winrar sfx.

Unattended Windows 2000/XP/2003 .Unattend. INFO/MyEbooks/WinRAR SFX Commands ..WinRAR SFX Commands ..MSF. Jump to page Jump to page 1/28/2015 9:14 PM . 13 of 13 file:///D:/Comp...