Let User Add Subfolder to SFX Extract Folder
-
check example here

-
Okay. I think I’ve got it. It never dawned on me you could type in the dropdown items. And even if it did I wouldn’t have thought it understood relative paths.
Thanks very much for your help.
But, that leads to a new question. A caution in this help area says:
Important information on using “run command line after extract” option
In case you are using advanced extraction path option together with run command line after extracting option, you will need to use special “{p}” option in the run command line after extracting field so you can tell PowerArchiver SFX where to find extracted files.
Example
Default UnZip To folder: %temp-unique%
Run Command Line: setup.exe
Explanation: These options will run setup.exe from temporary path noted above.I do run a setup program after unzipping. But, I don’t understand these instructions.
I don’t understand what a {p} option is. If my extract-to folder is FOOBAR it looks like I would use:
Default UnZip To folder: %temp%\FOOBAR
Run Command Line: setup.exeBut, I don’t see how that’s added any {p} option?
-
if you do just setup.exe, it will run setup.exe and thats it. If will run whatever is first setup.exe on that system in system path… if you do {p}\setup.exe, it will actually run %temp%\FOOBAR\setup.exe.
-
deleted
-
no, you can add it if you want… it doesnt add it automatically, it is optional and up to you.
so use {p}\setup.exe and it should be fine.
-
I’m still not sure I get it.
If I use:
Default UnZip To folder: %temp%\FOOBAR
Run Command Line: setup.exeIt will run setup.exe in the %temp%\FOOBAR folder. But, if I use {p}\setup.exe it will do something else???
All I use PA for is to dump the files in a folder named FOOBAR under the default Temp directory and start Setup.exe in the folder FOOBAR and quit. Setup does the rest.
-
Default UnZip To folder: %temp%\FOOBAR
Run Command Line: {p}\setup.exeis what you should use… it runs specific path command line to where your executable is.
-
p.s. just try it yourself and see if it works fine for you!
-
p.s. just try it yourself and see if it works fine for you!
That’s what’s confusing. Not using (leaving out) the {p} seems to work fine. If I just use setup.exe, PA creates the subfolder and extracts the files into it and launches setup.
Thank you very much for all your help.
I still wish I could understand how adding the {p} is different than not adding it.
-
I think the problem is the example in manual is wrong since it doesn’t use the {p} option but is supposed to be an example of how to use the {p} option.
I found this incredibly hard to decipher, and really don’t understand why SFX wouldn’t run the command line in the root extracted folder, especially when you set something like the default extract to temp folder.
This could do with a lot of improvement, and better documentation.