PowerArchiver Home


Go Back   PowerArchiver Forums > PowerArchiver 2012 > Wishlist

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-16-2010, 10:38 AM
i_am_jim i_am_jim is offline
Junior User
 
Join Date: Oct 2010
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
Let User Add Subfolder to SFX Extract Folder

An earlier version of the program let me add a subfolder to the default Temp folder PA extracts an SFX file to. As it is PA dumps all the files into the top level Temporary folder and, in my opinion, makes a mess.

Also, I have occasion to ask users of my product to find a particular file in the extracted set. It makes this much easier if they are all in a unique folder with a name of my choosing.

If this feature exists please point me to it.
Reply With Quote
  #2  
Old 10-16-2010, 01:57 PM
spwolf's Avatar
spwolf spwolf is offline
Administrator
 
Join Date: Jun 2001
Posts: 7,820
Thanks: 676
Thanked 207 Times in 192 Posts
did you try %temp%\name?

(check for actual alias usage in help file, been while since i checked that out)... it should work fine!
__________________
ConeXware, Inc.
latest PA release info on Facebook, Twitter | Follow us and win free PowerArchiver.
Reply With Quote
  #3  
Old 10-16-2010, 04:38 PM
i_am_jim i_am_jim is offline
Junior User
 
Join Date: Oct 2010
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
Quote:
Originally Posted by spwolf View Post
did you try %temp%\name?
That's how the older version I was using worked. In the current version the extract location is chosen from a dropdown and you can only choose from fixed options. None of these three options has a subfolder.


Quote:
(check for actual alias usage in help file, been while since i checked that out)... it should work fine!
My search of Help found no reference to the word alias and only one to the word actual and it was not on topic.

Last edited by i_am_jim; 10-16-2010 at 04:39 PM. Reason: kkk
Reply With Quote
  #4  
Old 10-16-2010, 04:56 PM
i_am_jim i_am_jim is offline
Junior User
 
Join Date: Oct 2010
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
Another way to do this is to use the archive name as the subfolder name.

I can see the possibility of conflicts this way but it most probably works.

Last edited by i_am_jim; 10-16-2010 at 04:58 PM. Reason: kkk
Reply With Quote
  #5  
Old 10-17-2010, 04:01 AM
spwolf's Avatar
spwolf spwolf is offline
Administrator
 
Join Date: Jun 2001
Posts: 7,820
Thanks: 676
Thanked 207 Times in 192 Posts
here is the help:

conext sensitive help (press help in Make SFX window):

Quote:
"Default "UnZip To" folder" - This is the default folder in which the extracted files will be placed. If you select "Use TEMP directory", the files will be extracted to the default Windows temporary directory. Click here for more info on advanced extract path options.
and then click here leads you to this:

Quote:
Predefined extraction paths can be entered in either the Make SFX or SFX Wizard "Default UnZip To folder" field.



Extraction Path Options

Constant Description Typical or Example Path
%temp% User's temporary folder C:\WINDOWS\TEMP
%temp-unique% A unique temporary folder C:\WINDOWS\TEMP\~SFX345A
%win% Windows Directory C:\WINDOWS
%winsys% Windows System Files Directory C:\WINDOWS\SYSTEM
%PROG% Program Files Folder C:\Program Files
%DOCS% User's documents folder C:\My Documents
%DESKTOP% User's Desktop Folder C:\Windows\Desktop
%FONTS% Fonts Folder C:\Windows\Fonts



You can also use registry entries. In this case, use the pipe symbol ( | ) to create sub-folders.



Examples

Default UnZip To folder: %prog%\PowerArchiver\Skins
Typically: C:\Program Files\PowerArchiver\Skins
Default UnZip To folder: %temp%\~test
Typically: C:\Windows\Temp\~test)


Default UnZip To folder: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Com monFilesDir|MySoftware
Typically: C:\Program Files\Common Files\MySoftware

__________________
ConeXware, Inc.
latest PA release info on Facebook, Twitter | Follow us and win free PowerArchiver.
Reply With Quote
  #6  
Old 10-17-2010, 11:04 AM
spwolf's Avatar
spwolf spwolf is offline
Administrator
 
Join Date: Jun 2001
Posts: 7,820
Thanks: 676
Thanked 207 Times in 192 Posts
check example here
Attached Images
 
__________________
ConeXware, Inc.
latest PA release info on Facebook, Twitter | Follow us and win free PowerArchiver.
Reply With Quote
  #7  
Old 10-17-2010, 01:24 PM
i_am_jim i_am_jim is offline
Junior User
 
Join Date: Oct 2010
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
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:
Quote:
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.exe

But, I don't see how that's added any {p} option?
Reply With Quote
  #8  
Old 10-17-2010, 01:27 PM
spwolf's Avatar
spwolf spwolf is offline
Administrator
 
Join Date: Jun 2001
Posts: 7,820
Thanks: 676
Thanked 207 Times in 192 Posts
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.
__________________
ConeXware, Inc.
latest PA release info on Facebook, Twitter | Follow us and win free PowerArchiver.
Reply With Quote
  #9  
Old 10-17-2010, 01:38 PM
i_am_jim i_am_jim is offline
Junior User
 
Join Date: Oct 2010
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
deleted
Reply With Quote
  #10  
Old 10-17-2010, 01:40 PM
spwolf's Avatar
spwolf spwolf is offline
Administrator
 
Join Date: Jun 2001
Posts: 7,820
Thanks: 676
Thanked 207 Times in 192 Posts
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.
__________________
ConeXware, Inc.
latest PA release info on Facebook, Twitter | Follow us and win free PowerArchiver.
Reply With Quote
  #11  
Old 10-17-2010, 01:49 PM
i_am_jim i_am_jim is offline
Junior User
 
Join Date: Oct 2010
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
I'm still not sure I get it.

If I use:
Default UnZip To folder: %temp%\FOOBAR
Run Command Line: setup.exe

It 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.
Reply With Quote
  #12  
Old 10-17-2010, 02:00 PM
spwolf's Avatar
spwolf spwolf is offline
Administrator
 
Join Date: Jun 2001
Posts: 7,820
Thanks: 676
Thanked 207 Times in 192 Posts
Default UnZip To folder: %temp%\FOOBAR
Run Command Line: {p}\setup.exe

is what you should use... it runs specific path command line to where your executable is.
__________________
ConeXware, Inc.
latest PA release info on Facebook, Twitter | Follow us and win free PowerArchiver.
Reply With Quote
  #13  
Old 10-17-2010, 02:01 PM
spwolf's Avatar
spwolf spwolf is offline
Administrator
 
Join Date: Jun 2001
Posts: 7,820
Thanks: 676
Thanked 207 Times in 192 Posts
p.s. just try it yourself and see if it works fine for you!
__________________
ConeXware, Inc.
latest PA release info on Facebook, Twitter | Follow us and win free PowerArchiver.
Reply With Quote
  #14  
Old 10-17-2010, 02:37 PM
i_am_jim i_am_jim is offline
Junior User
 
Join Date: Oct 2010
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
Quote:
Originally Posted by spwolf View Post
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.
Reply With Quote
  #15  
Old 08-17-2011, 03:10 PM
wilsonp wilsonp is offline
Senior Members
 
Join Date: Jan 2002
Location: Danville, VA
Posts: 12
Thanks: 0
Thanked 3 Times in 3 Posts
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.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Direct extract without temp folder masu Wishlist 20 05-11-2009 06:43 PM
Shell Option "Extract to subfolder" hangs PA TBGBe Tech Support 3 11-20-2007 08:03 AM
How do I: extract to file name, multiple archives in a user defined directory wulffra General 13 03-13-2005 06:17 AM


All times are GMT -5. The time now is 11:19 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.