Page 1 of 1

Need to create rar selfextract from command line.

Posted: Tue May 16, 2006 4:01 pm
by Edwin Knoppert
Need to create rar selfextract from command line.

Can't make it work, the win32 selfextract keeps asking for a target folder.
While using the GUI i can make a correct selfextract.
Just not from then commandline like:

... winrar.exe A -sfx -r -silent=2 Overwrite=1 myrarfile

Posted: Tue May 16, 2006 8:19 pm
by Dare2
Not having winrar, can't check, so this is a punt. What happens if you use a relative path, eg, .\myrarfile

Posted: Tue May 16, 2006 8:24 pm
by josku_x
BTW: What does stuff relating to "how to create a SFX archive with WinRAR through commandline" belong to General Discussion? I thought here you post everything else that's PureBasic related.. So doesn't this thread belong to the offtopic section?

Posted: Tue May 16, 2006 8:40 pm
by Edwin Knoppert
I searched today for a zipper today which creates a self extract which produces not messages.
In this case i can not handle console self extracts.

1) Besides winrar i have not found a zipper which can produce an windows exe (not console!) and does not produce any warnings etc.

2) Winrar supports both console as windows self extracts.

3) I need an extractor which can restore the folders to virtual(new) location.
Winrar does that(as much other zippers do)

4) I found out that i can safe a template and re-select the template later on and will set the desired stttings.
Unf. this is IN the GUI.
I don't want to use the GUI and certainly not a template.

5) Do you have any idea how many zippers there are producing self extracts without regarding of having an option to suppress it's messages?

At this time i kan live with the GUI/template thingy.
If you have a better option..

Posted: Tue May 16, 2006 11:36 pm
by Dare2
So i take it "winrar.exe A -sfx -r -silent=2 Overwrite=1 .\myrarfile" was a bum steer? :)

Posted: Wed May 17, 2006 7:45 am
by Edwin Knoppert
?
But i tried these settings before posting, did you had more success then?

Posted: Wed May 17, 2006 7:48 am
by Dare2
No, sorry. :?

I was just wondering if using ".\" (relative path, current folder) before the filename worked. Didn't realise you had already tried that.

My bad.


Edit: Edwin, I think I totally misunderstood your post, best to disregard mine because they are not necessarily what you were asking about. Sorry.

Posted: Wed May 17, 2006 1:06 pm
by Edwin Knoppert
OK, i meant the -silent=2 -Overwrite=1 stuff not seem to work :)
I just realized your remark, indeed it's not a target file issue.