dukew74 Posted January 1, 2011 Posted January 1, 2011 Hello, need help with SFX options.I have created 2 SFX (.exe) files. One extracts its contents to: C:\Documents and Settings\%Username%\My Documents\My Gameswhile the other one extracts its contents to: C:\Documents and Settings\%Username%\Local Settings\Application DataI could use a .bat file to extract each, but I was hoping there is some way in which I could add both .exe files to a WinRAR self-extracting file so that all I have to do is run the one final .exe and both get extracted. Is there any way to actually do this with WinRAR?The files are for the game Darksiders for PC because the game opens with a resolution that is not compatible with my TV when used as my monitor.All I've been able to do is to get one of them to run. Under Setup is there anyway to add a Start /wait command.So that it looks like:Setup=Darksiders1.exe start/wait, Darksider2.exeHaving this type of a command would definitely help a lot of people like myself out.Is there anyway I can accomplish this with winrar with out having to add a .bat file.. Like Setup=Darksiders.batBatch file:echo off.\Darksiders1.exe start \wait.\Darksiders2.exeexitThanks for Any Help.Only a couple months late but here goes.Combine both SFX to one and use the below for silent;The comment below contains SFX script commandsPath=%UserProfile%SavePathSilent=2Overwrite=2So the folders you would pack areMy Documents\My GamesLocal Settings\Application Data
Killjoy Posted September 2, 2011 Posted September 2, 2011 Thank you all for this. After "double-click" on RAR setup, it just asks me to set associations for archives and that is all. Version of WinRAR is 4.01.This is combined script from here. Thanks to all.;The comment below contains SFX script commandsPath=WinRARSavePathSetup=uninstall.exe /setupSilent=1Presetup=uninstall.exe /cleanOverwrite=1Delete=*.lngDelete=rarlng.dllDelete=rarext.dllDelete=register.frmDelete=rar_site.txtDelete=register.txtDelete=order.txtDelete=Dos.sfxDelete=os2.sfxDelete=Formats\ace.fmtDelete=Formats\arj.fmtDelete=Formats\cab.fmtDelete=Formats\gz.fmtDelete=Formats\lzh.fmtDelete=Formats\tar.fmtDelete=Formats\uue.fmtDelete=Formats\bz2.fmtDelete=Formats\iso.fmtDelete=Formats\unacev2.dllDelete=Formats\7z.fmtDelete=Formats\7za.dllDelete=Formats\z.fmtTitle=WinRAR v4.01Text{<html> <body bgcolor="#ececec"> <style> body { color: #000000; background-color: #ffffff; font-family: "MS Sans Serif"; font-size: 12; scrollbar-3dlight-color:#f0f0f0; scrollbar-arrow-color:#f0f0f0; scrollbar-darkshadow-color:#909090; scrollbar-face-color:#909090; scrollbar-highlight-color:#f0f0f0; scrollbar-shadow-color:#f0f0f0 } em {color: navy; font-style: normal} </style> <b>WinRAR is a powerful archiver</b>. It provides complete support of <em><b>RAR</b></em> and <em><b>ZIP</b></em> files, unpacks <em>7Z</em>, <em>ACE</em>, <em>ARJ</em>, <em>BZ2</em>, <em>CAB</em>, <em>GZ</em>, <em>ISO</em>, <em>JAR</em>, <em>LZH</em>, <em>TAR</em>, <em>UUE</em>, <em>Z</em>. Among WinRAR features are strong compression, volumes, encryption, self-extracting modules, backup facilities.<br><br> <b>WinRAR is shareware</b>. Anyone may use it during a test period of 40 days. Following this test period or less, if you wish to continue to use WinRAR, you must register.<br><br> <b>There are no additional license fees</b>, apart from the cost of registration, associated with the creation and distribution of RAR archives or self-extracting archives. Legally registered owners may use their copies of WinRAR to produce and distribute those archives free of any additional RAR royalties.<br><br> <b>WinRAR archiver is distributed as is</b>.No warranty of any kind is expressed or implied. You use at yourown risk. Neither the author nor the agents of the author will beliable for data loss, damages, loss of profits or any other kindof loss while using or misusing this software. </body> </html>}
neoryudo Posted January 19, 2012 Posted January 19, 2012 guys i have made a client to patch a game and trying to use Winrar for the Archive file, my only problem is that when it extracts through DOS, it asks if i would like to over write the files even if i have told Winrar to always overwrite, in the scripts box its got ;The comment below contains SFX script commandsOverwrite=1Title=Japanese Voice Updaterbut as you can see here it still does it?, any help?thanks-NeoRyudo
condor Posted February 5, 2012 Posted February 5, 2012 (edited) SFX winrar can make shortcut like this?For example easy cd-da extractor is this:"C:\Program Files\easy\easy.exe"and Audio riper is:"C:\Program Files\easy\easy.exe" -RHow can make shortcut with this -R in sfx??tks Edited February 5, 2012 by condor
taeka Posted June 16, 2012 Posted June 16, 2012 Is there a way to use Delete= to delete folders?Cause what my installer does is just add the files to the old folder files. So the new files and the old files are both in the same folder.What I want to do is delete the old folder first with a command so the new folder will be put and with just the new files.Is there a way? I really need to know this.
myselfidem Posted June 16, 2012 Posted June 16, 2012 You can use the option:Le commentaire ci-dessous contient des commandes pour script SFXOverwrite=1
taeka Posted June 16, 2012 Posted June 16, 2012 You can use the option:Le commentaire ci-dessous contient des commandes pour script SFXOverwrite=1I used this one but it still doesn't do what I want to do.Cause the folder that I want to get rid of is the folder called Artwork.I want it to be deleted first then extract a new folder with new files also named Artwork.But what happens is i just get 1 folder with both old and new files in them. Even though I use the Overwrite script.And for more information,The artwork folder is just a sub folder of what I want to extract.
myselfidem Posted June 16, 2012 Posted June 16, 2012 Example with a folder inside: %userprofile%\Mes Documents\Tweaks\Batchs1 - Removing first all files inside:.\Tweaks\Batchs\*.*2 - Install the new files inside the same subfolderLe commentaire ci-dessous contient des commandes pour script SFXPath=%userprofile%\Mes DocumentsSilent=1Overwrite=1Update=UDelete=Tweaks\Batchs\*.*HTH
behdadsoft Posted November 6, 2012 Posted November 6, 2012 Hi.how can hide this code when open with WinRAR?
HJSC Posted November 7, 2012 Posted November 7, 2012 Hi.how can hide this code when open with WinRAR?sixpack taught how to hide the commands. Here's his comment - just copy and paste the code you will see that it works.
atamo Posted February 21, 2014 Posted February 21, 2014 Hy!After install Winrar with unattended SFX I want to load my winrar settings using this command in SFX comment:setup=copy settings.reg "%appdata%\winrar\" /yof course settings.reg is in ProgramFiles\WinRarWinRAR SFX return :Windows cannot find 'copy' ...If I useSetup=use.batWhere use.bat file contain the same copy code (without setup= ) all work nice.SFX don't support copy command or syntax error ?thanks for help
submix8c Posted February 21, 2014 Posted February 21, 2014 (edited) "Copy" is an internal Command ("parameter", if you will) of the Program CMD.EXE/COMMAND.COM, not an actual Program. Files with BAT/CMD as a suffix are considered Externel "Programs" even though they by default invoke one of the two. Remember, the "Setup=" SFX Parameter expects a Program to be invoked.http://www.computerhope.com/copyhlp.htmNon-NT - http://support.microsoft.com/kb/35284 Edited February 21, 2014 by submix8c
atamo Posted February 21, 2014 Posted February 21, 2014 "Copy" is an internal Command ("parameter", if you will) of the Program CMD.EXE/COMMAND.COM, not an actual Program.I agree, but in this case why don't work that code:copy a.txt "%appdata%\winrar\" /yOr how can I use an internal command in SFX comment?
submix8c Posted February 21, 2014 Posted February 21, 2014 (edited) AFAIK, you can't. Do you have an aversion to using a BAT/CMD (that in essence, by default, "calls" CMD.EXE/COMMAND.COM).Let me try again... "Setup=" needs to have a PROGRAM (EXE/BAT/CMD/COM - SEE THE MS LINK), not an "Command from within a Program", since it is (literally) CALLING the Program to Execute. MS (AFAIK) never implemented such a "feature".http://ss64.com/nt/cmd.htmlUse a BAT/CMD file that issues the "Copy" and be happy. Edited February 21, 2014 by submix8c
atamo Posted February 21, 2014 Posted February 21, 2014 (edited) with bat/cmd file work nice, but can't delete that command file from winrar folder with SFX comment, DELELETE work only for files before extraction Edited February 21, 2014 by atamo
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now