N30M0D Posted January 31, 2005 Posted January 31, 2005 hi, guysI cannot understand why 7zip doesn't perform an extraction during an unattended installation in a script invoked by :[GuiRunOnce]%systemdrive%\install\start.cmdI'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 Posted January 31, 2005 Posted January 31, 2005 don't forget the -o option:7za x archive.7z -o C:\OutputDirectory
N30M0D Posted January 31, 2005 Author Posted January 31, 2005 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.
Astalavista Posted February 1, 2005 Posted February 1, 2005 hhehehehewhy dont u do yourself a favor and download the latest betawww.7zip.org
colinbate Posted February 1, 2005 Posted February 1, 2005 Why not make a selfextracting archive. You can do this with the windows version of 7z
N30M0D Posted February 1, 2005 Author Posted February 1, 2005 @astalavistaI've tried with latest version (beta) and nothing is changed@colinbateI'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 Posted February 1, 2005 Posted February 1, 2005 pls open the help me file of 7zip everything u keep asking is in there
N30M0D Posted February 1, 2005 Author Posted February 1, 2005 I would be grateful if you can find what I'm looking for in that file
N30M0D Posted February 1, 2005 Author Posted February 1, 2005 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 Posted February 2, 2005 Author Posted February 2, 2005 Problem solved after hours & hours of clean installations and many attempts;If I make a .cmd which contains:start /wait 7za.exe x archive.7zstart /wait an_application.exe /switchesand 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.cmdI MUST type:start /wait %systemdrive%\location\7za.exe x %systemdrive%\location\archive.7z -o%systemdrive%\OutputLocationstart /wait %systemdrive%\location\an_application.exe /switches7a.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.7zarchive.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 Posted February 2, 2005 Posted February 2, 2005 because each attempt cost me a CLEAN INSTALLATION! OUCH!That's really sad. Why not use VMware to test your uA installs!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now