Help - Search - Members - Calendar
Full Version: 7zip extraction doesn't run
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   
Google Internet Forums Unattended CD/DVD Guide
N30M0D
hi, guys

I cannot understand why 7zip doesn't perform an extraction during an unattended installation in a script invoked by :

[GuiRunOnce]
%systemdrive%\install\start.cmd

I've copied 7za.exe in the same dir of the .7z package typing the command "7za.exe x archive.7z" but nothing happen. I must put other files together with 7za.exe? a .dll? Or it doesn't work in that specified stage?

Thank you, bye
Sonic
don't forget the -o option:

7za x archive.7z -o C:\OutputDirectory
N30M0D
I don't need to write -o C:\OutputDirectory because 7za x archive.7z extract files and folders in the current dir. Then I can start the install file. If I run "7za x archive.7z" or "start /wait 7za x archive.7z" and then the next start /wait operation all works fine (under xp). But during an unattended installation does't work.
N30M0D
an input? no.gif
Astalavista
hhehehehe

why dont u do yourself a favor and download the latest beta

www.7zip.org
colinbate
Why not make a selfextracting archive. You can do this with the windows version of 7z
N30M0D
@astalavista

I've tried with latest version (beta) and nothing is changed

@colinbate

I've tried to make a self-ex with winrar but seems it doesn't support /wait ;
7-zip support it? And what switches I must use?
Astalavista
pls open the help me file of 7zip everything u keep asking is in there
N30M0D
I would be grateful if you can find what I'm looking for in that file
Astalavista
dont be lazy ok. pls read so u can learn
N30M0D
In parameteres line I have to type in "application.exe /switches" and stop? Or I have to add other things such as overwrite=2, etc.? I need to know here if 7-zip self-ex support /wait (in an unattended stage) because each attempt cost me a CLEAN INSTALLATION! no.gif
N30M0D
Problem solved after hours & hours of clean installations and many attempts;
If I make a .cmd which contains:

start /wait 7za.exe x archive.7z
start /wait an_application.exe /switches
and so on...

all works fine If I am UNDER XP. Instead during an unattended installation,in a script invoked by this (contained in the winnt.sif file):

[GuiRunOnce]
%systemdrive%\install\start.cmd


I MUST type:


start /wait %systemdrive%\location\7za.exe x %systemdrive%\location\archive.7z -o%systemdrive%\OutputLocation
start /wait %systemdrive%\location\an_application.exe /switches

7a.exe, archive.7z and files extracted are in the same dir.



because I've also tried this before:

start /wait %systemdrive%\location\7za.exe x %systemdrive%\location\archive.7z


archive.7z should be extracted in the same dir. Extraction window appear and list of files extracted too but It seems that files aren't phisically extracted! In fact the extraction dir not contains them.

Hope it be useful for someone.

Now I can Install a version of .NetFramework 1.1 with sp1 slipstreamed in .7z format (for example).
prathapml
QUOTE (N30M0D @ Feb 1 2005, 11:33 PM)
because each attempt cost me a CLEAN INSTALLATION!  no.gif

OUCH!
That's really sad. Why not use VMware to test your uA installs!
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.