I know this is about silent switchless sfx 7zip.... but some people also want silent extraction of a 7z archive (no program in the archive that requires installing)...
I have a 7z archive with lots of files sorted in 2 folders (windows and program files), these are extracted to %systemdrive%.
I do it like this, a cmd file started from my RunOnceEx containing:
7za.exe x %cddrive%\XPCD\InstallApps\SYSTEMDRIVE.7z -y -o %systemdrive%\
(I have 7za.exe in my system32 folder by then..)
Now, this works... BUT it does not extract .exe files!!!!! I tried several older versions of 7za.exe, as well as the newest (nonbeta) one... same problem..
tried on several machines... can't figure it out.
For example, in the archive systemdrive.7z: program files\Exact Audio Copy\EAC.exe
Now the Exact Audio Copy folder is created in program files... and all eac files are extracted to that folder EXCEPT EAC.EXE !!!
It is an extremely annoying problem... I hope anyone can bring some sense cause it is really driving me crazy!
(BTW if I extract with Winrar gui or 7zip gui, .EXE files DO get extracted).
EDIT: found the problem... after many weeks..
seems it could not overwrite some files, resulting in an error that was not noticed (no report).
I thought "-y", 'yes on all queries' meant 'overwrite all' but for that the -aoa switch is required:
7za.exe x %cddrive%\XPCD\InstallApps\SYSTEMDRIVE.7z -aoa -y -o %systemdrive%\
The strange thing is, because of this, none of the .exe files were extracted.
I have lots of files and programs (eac, patched MSN files, pdfreader, encoderfiles (xvid etc) some themes and other system32 stuff) in 1 7zip pack, this saves time during setup, and makes the entire process more simple.
This post has been edited by ZileXa: 27 September 2005 - 01:47 AM