MSFN Forum: 7zip extract to %ProgramFiles% problem - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

7zip extract to %ProgramFiles% problem Rate Topic: -----

#1 User is offline   CypherBit 

  • Junior
  • Pip
  • Group: Members
  • Posts: 70
  • Joined: 04-June 04

Posted 03 April 2005 - 01:17 PM

I'm trying to use the below code to extract the content of FileZilla.exe (a 7-zip SFX archive) to %ProgramFiles%:
REG ADD %KEY%\005 /VE /D "Performing Additional Tasks" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\FileZilla.exe -y /q /r:n -o%programfiles%" /f

It gets added to my RunOnceEx (in registry) no problem but when I reboot and the extraction should begin it extracts to C:\Program not C:\Program Files.
I thought I'll just enclose in inverted commas like this:
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\FileZilla.exe -y /q /r:n -o"%programfiles%" "

and the problem will be solved but that doesn't work. It does't even get added to RunOnceEx (-o"%programfiles%" doesn't work as well) .

I could naturally put the content of FileZilla.exe in a Program Files folder and add it to archive like that then just extract to %systemdrive% but that really shouldn't be necessary.

Could anyone help me out with this one, what am I doing wrong?


#2 User is offline   Bâshrat the Sneaky 

  • aka Wim Leers
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,214
  • Joined: 29-October 03
  • OS:none specified
  • Country: Country Flag

Posted 03 April 2005 - 01:29 PM

If it's a setup, use

setup.exe -y /q /r:n


if it's an archive,

use

archive.exe -y -o%ProgramFiles%



Note that if you add this last command to the registry from Windows, you'll have to use double %! (that would be %%ProgramFiles%%)

#3 User is offline   CypherBit 

  • Junior
  • Pip
  • Group: Members
  • Posts: 70
  • Joined: 04-June 04

Posted 03 April 2005 - 01:38 PM

It's a simple archive containing config files. I used:
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\FileZilla.exe -y -o%%programfiles%%" /f

It got added to my registry, I rebooted and the archive was extracted to a folder named %programfiles% on C:\ . It didn't get extracted to %programfiles% (C:\Program Files) but it created a folder %programfiles% on C:\ .

Again any advice is greatly appreciated.

#4 User is offline   CypherBit 

  • Junior
  • Pip
  • Group: Members
  • Posts: 70
  • Joined: 04-June 04

Posted 04 April 2005 - 04:36 AM

A good friend of mine found a solution for this one. He searched the 7-zip forums and came accross a post mentioning quote mixing. This is the solution he provided:
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\FileZilla.exe -y -o\"%programfiles%\"" /f

It worked in all of the quick tests I threw at it for now, %appdata%, %systemdrive%.

#5 User is offline   Rambler 

  • Junior
  • Pip
  • Group: Members
  • Posts: 58
  • Joined: 23-March 05

Posted 04 April 2005 - 06:00 AM

It is also mentioned in the MSFN unattended guide here
Would save you time searching for the answer :)

#6 User is offline   CypherBit 

  • Junior
  • Pip
  • Group: Members
  • Posts: 70
  • Joined: 04-June 04

Posted 04 April 2005 - 06:17 AM

Thank you Rambler, I searched extensively just didn't occur to me it was a RunOnceEx problem, thought it was 7-zip related...meaning I searched in the wrong places.
What you posted sure explains the fact I was getting abnormal program termination if I used that syntax from cmd line. The \ infront of -o clearly isn't needed if it's not used in RunOnceEx.

Think (hope) I won't need any further assistance with this one ;)

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy