Need to create rar selfextract from command line.

Everything else that doesn't fall into one of the other PB categories.
Edwin Knoppert
Addict
Addict
Posts: 1073
Joined: Fri Apr 25, 2003 11:13 pm
Location: Netherlands
Contact:

Need to create rar selfextract from command line.

Post 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
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

Not having winrar, can't check, so this is a punt. What happens if you use a relative path, eg, .\myrarfile
@}--`--,-- A rose by any other name ..
josku_x
Addict
Addict
Posts: 997
Joined: Sat Sep 24, 2005 2:08 pm

Post 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?
Edwin Knoppert
Addict
Addict
Posts: 1073
Joined: Fri Apr 25, 2003 11:13 pm
Location: Netherlands
Contact:

Post 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..
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

So i take it "winrar.exe A -sfx -r -silent=2 Overwrite=1 .\myrarfile" was a bum steer? :)
@}--`--,-- A rose by any other name ..
Edwin Knoppert
Addict
Addict
Posts: 1073
Joined: Fri Apr 25, 2003 11:13 pm
Location: Netherlands
Contact:

Post by Edwin Knoppert »

?
But i tried these settings before posting, did you had more success then?
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post 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.
@}--`--,-- A rose by any other name ..
Edwin Knoppert
Addict
Addict
Posts: 1073
Joined: Fri Apr 25, 2003 11:13 pm
Location: Netherlands
Contact:

Post 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.
Post Reply