Jump to content

7-zip extracting problem


Recommended Posts

Hi all

I have little problem for making an 7zip extracting during cmdlines and runonceex

I explain

CMDLINES.txt

1) My cmdlines.txt call outils.exe and themes.cmd

2) Outils.exe is a winrar sfx that contain sleep, cmdow and 7za.exe and place it in system32 (they are in the directory after the installation)

3) Themes.cmd do "7za.exe x Themes.7z -o"%windir%\Resources\Themes\" -y" (this command works fine under windows) but the files is not extracted

RunOnceEX.cmd

Doing the same thing as above with YzToolbar

REG ADD %KEY%\005 /VE /D "Y'z Toolbar 1.3" /f

REG ADD %KEY%\005 /V 1 /D "%cdrom%\Install\005-YzToolbar\7za.exe x YzToolbar.7z -o"%ProgramFiles%\" -y" /f

REG ADD %KEY%\005 /V 2 /D "REGEDIT /S %cdrom%\Install\005-YzToolbar\YzToolbar.reg" /f

I think my syntaxes is uncorrect but don't know wath syntax use for doing the job

D@rshfX

Link to comment
Share on other sites


I notice you have a \ at the end of the -o command...try removing that.

Rather try adding another one
REG ADD %KEY%\005 /V 1 /D "%cdrom%\Install\005-YzToolbar\7za.exe x YzToolbar.7z -o\"%ProgramFiles%\" -y" /f

or if your intention was to have a backslash i.e. FilePath\ then

REG ADD %KEY%\005 /V 1 /D "%cdrom%\Install\005-YzToolbar\7za.exe x YzToolbar.7z -o\"%ProgramFiles%\\" -y" /f

A backslash is used as an escape character for your internal quotation marks.

Link to comment
Share on other sites

Ok thanks for answering me

To Evilvoice

@ what time in installation are you using this ? (cmdlines, runonce ?)

and what are the -aoa for ?

Edit: find the -aoa, i will use it =)

To Yzöwl

I don't know if the backslash is necessary. i just want a "Y'z Toolbar" folder in %programfiles% and for themes, i want all theme to be placed in resources\themes. so if i don't need the backslash, i can go without it =)

Link to comment
Share on other sites

After some testing i find what's going wrong

This is the syntax

For extracting files like this, we must do this :

7za.exe x -y -aoa %cdrom%\Install\004-YzShadow\YzShadow.7z -o"%ProgramFiles%"

The problem was from where 7za.exe was placed in the command

But this works fine for runonceex but not during cmdlines

Any way to do this during cmdlines ???

Link to comment
Share on other sites

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