N30M0D
Jan 31 2005, 12:08 PM
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
Jan 31 2005, 01:02 PM
don't forget the -o option:
7za x archive.7z -o C:\OutputDirectory
N30M0D
Jan 31 2005, 01:11 PM
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
Feb 1 2005, 05:52 AM
an input?
Astalavista
Feb 1 2005, 06:07 AM
hhehehehe
why dont u do yourself a favor and download the latest beta
www.7zip.org
colinbate
Feb 1 2005, 07:17 AM
Why not make a selfextracting archive. You can do this with the windows version of 7z
N30M0D
Feb 1 2005, 11:34 AM
@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
Feb 1 2005, 11:39 AM
pls open the help me file of 7zip everything u keep asking is in there
N30M0D
Feb 1 2005, 11:41 AM
I would be grateful if you can find what I'm looking for in that file
Astalavista
Feb 1 2005, 11:43 AM
dont be lazy ok. pls read so u can learn
N30M0D
Feb 1 2005, 12:03 PM
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!
N30M0D
Feb 2 2005, 02:30 PM
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
Feb 2 2005, 02:55 PM
QUOTE (N30M0D @ Feb 1 2005, 11:33 PM)
because each attempt cost me a CLEAN INSTALLATION!

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