Jump to content

Recommended Posts

Posted

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


Posted

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.

Posted

@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?

Posted

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:

Posted

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).

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...