Jump to content

Welcome to MSFN Forum
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.
Login to Account Create an Account


Photo

WinRAR SFX Commands

- - - - -

  • Please log in to reply
46 replies to this topic

#26
g-force

g-force

    Tester

  • Member
  • PipPipPipPip
  • 599 posts
  • OS:XP Pro x86
  • Country: Country Flag
I need some explaination on that:
;Kommentaren nedenfor indeholder SFX kommandoer

Path=C:\Users\Default\AppData\Local\Temp\
SavePath
Setup=Setup.exe --mode=Silent --deploymentFile="C:\Users\Default\AppData\Local\Temp\install.xml"
Silent=1
Overwrite=1
What are you trying to do with this comments?
To extract the setup temporarly you just need to set "Temp Mode".
The SFX extracts itself to TEMP, closes, setup is started from TEMP.
What about "repack,exe" - I don`t understand that, what is it good for?

g-force @ Win-Lite.de
Make sure to always start with a fresh copy of your CD files/folders,
do all your work in one nLite session and integrate only one SP.
Please report when you have a solution, so others can benefit.



How to remove advertisement from MSFN

#27
pppx00

pppx00

    Junior

  • Member
  • Pip
  • 80 posts
Any way to add a notification windows that the switchless has been finished?

#28
b3b9

b3b9
  • Member
  • 1 posts
  • OS:Windows 7 x64
  • Country: Country Flag

How do I put an image into the comments section of an SFX archive, even change the Extract button? I know it was done before, example shown in attachment.

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.

$/PX


The same question


)))

Hello
I'm new on this website
And I liked this issue, and I was looking for a temporary long-
I'm not good at much English

So I have one question only you write it of end Iodhali

I have a file Winrar I've downloaded from the site and featured in this edition it again Mkirkp by file rarreg. .. So But surprisingly it's the same file Winrar your original company how they were to do that ...?)))

#29
leogets

leogets
  • Member
  • 7 posts
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 Games
while the other one extracts its contents to: C:\Documents and Settings\%Username%\Local Settings\Application Data

I 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.exe

Having 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.bat

Batch file:
echo off
.\Darksiders1.exe start \wait
.\Darksiders2.exe

exit

Thanks for Any Help.

#30
kojax

kojax
  • Member
  • 1 posts
  • OS:XP Pro x86
  • Country: Country Flag
Great help :thumbup
Thank's !!!!!!

#31
dukew74

dukew74
  • Member
  • 6 posts
  • OS:XP Pro x86
  • Country: Country Flag

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 Games
while the other one extracts its contents to: C:\Documents and Settings\%Username%\Local Settings\Application Data

I 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.exe

Having 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.bat

Batch file:
echo off
.\Darksiders1.exe start \wait
.\Darksiders2.exe

exit

Thanks 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 commands

Path=%UserProfile%
SavePath
Silent=2
Overwrite=2

So the folders you would pack are
My Documents\My Games
Local Settings\Application Data

#32
Killjoy

Killjoy

    Junior

  • Member
  • Pip
  • 53 posts
  • OS:Windows 7 x64
  • Country: Country Flag
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 commands

Path=WinRAR
SavePath
Setup=uninstall.exe /setup
Silent=1
Presetup=uninstall.exe /clean
Overwrite=1
Delete=*.lng
Delete=rarlng.dll
Delete=rarext.dll
Delete=register.frm
Delete=rar_site.txt
Delete=register.txt
Delete=order.txt
Delete=Dos.sfx
Delete=os2.sfx
Delete=Formats\ace.fmt
Delete=Formats\arj.fmt
Delete=Formats\cab.fmt
Delete=Formats\gz.fmt
Delete=Formats\lzh.fmt
Delete=Formats\tar.fmt
Delete=Formats\uue.fmt
Delete=Formats\bz2.fmt
Delete=Formats\iso.fmt
Delete=Formats\unacev2.dll
Delete=Formats\7z.fmt
Delete=Formats\7za.dll
Delete=Formats\z.fmt
Title=WinRAR v4.01
Text
{

<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>
&nbsp;&nbsp; <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>
&nbsp;&nbsp; <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>
&nbsp;&nbsp; <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>
&nbsp;&nbsp; <b>WinRAR archiver is distributed as is</b>.
No warranty of any kind is expressed or implied. You use at your
own risk. Neither the author nor the agents of the author will be
liable for data loss, damages, loss of profits or any other kind
of loss while using or misusing this software.
</body>
</html>
}

I am the one who dwelt within Cain....
I am the one who dwelt within Nero...
I once dwelt within Judas....
And I was with Legion...
I am Belial....
And I am Lucifer, the devil in the flesh......

We are the ones who dwell within!

#33
neoryudo

neoryudo
  • Member
  • 1 posts
  • OS:none specified
  • Country: Country Flag
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 commands

Overwrite=1
Title=Japanese Voice Updater

Attached File  updater.jpg   127.91KB   16 downloads
but as you can see here it still does it?, any help?

thanks
-NeoRyudo

#34
condor

condor

    Junior

  • Member
  • Pip
  • 75 posts
  • OS:none specified
  • Country: Country Flag
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" -R

How can make shortcut with this -R in sfx??

tks

Edited by condor, 05 February 2012 - 05:43 PM.


#35
taeka

taeka
  • Member
  • 2 posts
  • OS:XP Home
  • Country: Country Flag
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.

#36
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • OS:Windows 7 x64
  • Country: Country Flag
You can use the option:

Le commentaire ci-dessous contient des commandes pour script SFX

Overwrite=1



For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#37
taeka

taeka
  • Member
  • 2 posts
  • OS:XP Home
  • Country: Country Flag

You can use the option:

Le commentaire ci-dessous contient des commandes pour script SFX

Overwrite=1


I 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.

#38
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Example with a folder inside: %userprofile%\Mes Documents\Tweaks\Batchs

1 - Removing first all files inside:.\Tweaks\Batchs\*.*
2 - Install the new files inside the same subfolder


Le commentaire ci-dessous contient des commandes pour script SFX

Path=%userprofile%\Mes Documents
Silent=1
Overwrite=1
Update=U
Delete=Tweaks\Batchs\*.*

HTH


For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#39
behdadsoft

behdadsoft

    Member

  • Member
  • PipPip
  • 113 posts
  • OS:Windows 8.1 x64
  • Country: Country Flag
Hi.

how can hide this code when open with WinRAR?

Posted Image

#40
HJSC

HJSC
  • Member
  • 2 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Hi.

how can hide this code when open with WinRAR?

Posted Image

sixpack taught how to hide the commands. Here's his comment - just copy and paste the code you will see that it works.

#41
atamo

atamo
  • Member
  • 5 posts
  • OS:none specified
  • Country: Country Flag

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\" /y

of course settings.reg is in ProgramFiles\WinRar

WinRAR SFX return :

Windows cannot find 'copy' ...





 

If I use

Setup=use.bat

Where  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   :yes:



#42
submix8c

submix8c

    Inconceivable!

  • Patrons
  • 4,274 posts
  • OS:none specified
  • Country: Country Flag

"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.computerh...com/copyhlp.htm

 

Non-NT - http://support.microsoft.com/kb/35284


Edited by submix8c, 21 February 2014 - 07:45 AM.

Someday the tyrants will be unthroned... Jason "Jay" Chasteen; RIP, bro!

Posted Image


#43
atamo

atamo
  • Member
  • 5 posts
  • OS:none specified
  • Country: Country Flag

"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\" /y

Or how can I use an internal command in SFX comment?



#44
submix8c

submix8c

    Inconceivable!

  • Patrons
  • 4,274 posts
  • OS:none specified
  • Country: Country Flag

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.html

 

Use a BAT/CMD file that issues the "Copy" and be happy.


Edited by submix8c, 21 February 2014 - 08:44 AM.

Someday the tyrants will be unthroned... Jason "Jay" Chasteen; RIP, bro!

Posted Image


#45
atamo

atamo
  • Member
  • 5 posts
  • OS:none specified
  • Country: Country Flag

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 by atamo, 21 February 2014 - 09:18 AM.


#46
submix8c

submix8c

    Inconceivable!

  • Patrons
  • 4,274 posts
  • OS:none specified
  • Country: Country Flag

At the end of (inside) your BAT/CMD, place this

del "%appdata%\winrar\yourbatname.bat"

;)


Edited by submix8c, 21 February 2014 - 01:57 PM.

Someday the tyrants will be unthroned... Jason "Jay" Chasteen; RIP, bro!

Posted Image


#47
atamo

atamo
  • Member
  • 5 posts
  • OS:none specified
  • Country: Country Flag

Very cool, self-delete file :thumbup

 

thanks for help!






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users



How to remove advertisement from MSFN