MSFN Forum: 7-zip sfx extract to this folder - 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
  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

7-zip sfx extract to this folder Not an install as such, since the program just needs to exist in a dir Rate Topic: -----

#1 User is offline   SoreGums 

  • Newbie
  • Group: Members
  • Posts: 31
  • Joined: 18-February 04

Posted 19 June 2007 - 11:04 PM

How do you just create a 7-zip sfx that extracts to a specified directory/place automatically without prompts?

Example.
Portable FireFox, doesn't need to be installed, just needs to be somewhere... I setup a stripped out version of PFF and 7-zip'd it up again (sfx) but when you execute pff.exe it asks where to extract to.
How do I get it to just extract to "c:\" ?

Thanks


#2 User is offline   ajua 

  • Custom Installer Maker
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,260
  • Joined: 16-April 05

Posted 20 June 2007 - 03:52 AM

have you tried looking in the 7-zip docs/help/online guides if there is a set commands you can run to achieve what you want?

#3 User is offline   vim 

  • Junior
  • Group: Supreme Sponsor
  • Posts: 53
  • Joined: 23-May 06

Posted 20 June 2007 - 11:06 AM

View PostSoreGums, on Jun 20 2007, 12:04 AM, said:

How do you just create a 7-zip sfx that extracts to a specified directory/place automatically without prompts?

Example.
Portable FireFox, doesn't need to be installed, just needs to be somewhere... I setup a stripped out version of PFF and 7-zip'd it up again (sfx) but when you execute pff.exe it asks where to extract to.
How do I get it to just extract to "c:\" ?

Thanks

I want to know something very similar. There are examples galore regarding Swithless installs, but what I want to do is use SFX to extract to a dir of choice and then execute a file in that directory, nothing else. I don't want to install anything except the compressed archive. Uncompress the archive to a folder - execute a file in the folder - end of story. Somehow this is not possible, but I know it is. I have a program that does it, just can't find info on how to pass the paramerter to execute the one file. This program uncompresses to a 7z.temp folder and then executes the file.

There's pleny of advice about passing arguments at the command level but nothing using the windows Parameters: of 7zip.

#4 User is offline   Martin H 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 802
  • Joined: 24-November 06
  • OS:none specified

Posted 20 June 2007 - 05:55 PM

@SoreGums

1. Download 7ZSD.sfx from it's homepage :
http://7zsfx.solta.ru/en/

2. Copy/paste the following into notepad and save it using 'UTF8' as 'config.txt' :
;!@Install@!UTF-8!
InstallPath="%Programfiles%\\Portable Firefox"
GUIMode="2"
;!@InstallEnd@!

(Change the path as you like, and remember to use double backslashes)

3. Make a 7z archive of the contents inside your 'Portable Firefox' folder.

4. Place the 7z archive, 7ZSD.sfx and config.txt into the same folder and copy/paste the following into a command prompt :
copy /b 7ZSD.sfx + config.txt + archive.7z Setup.exe

(Change 'Setup.exe' to whatever you want)

@vim

Use the above directions + additionally add the following to 'config.txt':
RunProgram="hidcon:setup.cmd"

Change 'setup.cmd' to whatever. If you don't run a batch file, then remove the 'hidcon:' part(it's used to hide the console window). You can run 'msi' files directly without using 'msistub.exe' or 'msiexec.exe' with this modified 7z SFX installer module(7ZSD.sfx). Btw, if you don't want a fixed extraction path and just want to use the temp folder, and also have the folder with the extracted files deleted afterwards, then remove the following from 'config.txt' :
InstallPath="x"

This post has been edited by Martin H: 26 July 2007 - 03:43 PM


#5 User is offline   SoreGums 

  • Newbie
  • Group: Members
  • Posts: 31
  • Joined: 18-February 04

Posted 20 June 2007 - 09:41 PM

View PostMartin H, on Jun 21 2007, 09:55 AM, said:

;!@Install@!UTF-8!
InstallPath="%Programfiles%\\Portable Firefox"
GUIMode="2"
;!@InstallEnd@!
Nice one thanks :)
I knew it was something to do with the config.txt
Is there a list of parameters anywhere, they are hard to find...

Thanks again :)

#6 User is offline   SoreGums 

  • Newbie
  • Group: Members
  • Posts: 31
  • Joined: 18-February 04

Posted 20 June 2007 - 09:47 PM

View Postelajua, on Jun 20 2007, 07:52 PM, said:

have you tried looking in the 7-zip docs/help/online guides if there is a set commands you can run to achieve what you want?

Well in the help file I have with 7-zip here it lists parameters for config.txt but doesn't mention "InstallPath"
So if it did I'd have been good to go...

#7 User is offline   Martin H 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 802
  • Joined: 24-November 06
  • OS:none specified

Posted 21 June 2007 - 07:52 AM

@SoreGums

I am reffering to(and have linked to) the modified version of that module, which includes several knew features...

You can find descriptions of all parameters on the modified modules homepage :
http://7zsfx.solta.ru/en/

This post has been edited by Martin H: 26 July 2007 - 03:44 PM


#8 User is offline   vim 

  • Junior
  • Group: Supreme Sponsor
  • Posts: 53
  • Joined: 23-May 06

Posted 21 June 2007 - 09:07 AM

View PostMartin H, on Jun 20 2007, 06:55 PM, said:

1. Download 7ZSD.sfx from the first link listed on this russian page :
http://7zsfx.solta.ru/downloads_RU.html
2. Copy/paste the following into notepad and save it using 'UTF8' as 'config.txt' :
;!@Install@!UTF-8!
InstallPath="%Programfiles%\\Portable Firefox"
GUIMode="2"
;!@InstallEnd@!
(Change the path as you like, and remember to use double backslashes)
3. Make a 7z archive of the contents inside your 'Portable Firefox' folder.
4. Place the 7z archive, 7ZSD.sfx and config.txt into the same folder and copy/paste the following into a command prompt :copy /b 7ZSD.sfx + config.txt + archive.7z Setup.exe
(Change 'Setup.exe' to whatever you want) 
Use the above directions + additionally add the following to 'config.txt':
RunProgram="hidcon:setup.cmd"
Change 'setup.cmd' to whatever. If you don't run a batch file, then remove the 'hidcon:' part(it's used to hide the console window). You can run 'msi' files directly without using 'msistub.exe' or 'msiexec.exe' with this modified 7z SFX installer module(7ZSD.sfx). Btw, if you don't want a fixed extraction path and just want to use the temp folder, and also have the folder with the extracted files deleted afterwards, then remove the following from 'config.txt' :
InstallPath="x"


@Martin H, Thank you, just what I was looking for. I noticed that your Russian link *.sfx is much smaller than the one given by the guide on 7zip installers. I though my immediate install would have been different. I noticed several people modifing the *.sfx using Reshack. I have looked inside. Someone modified the % expanding to be just % and then below their was a word saying Loading in the gray area. Are theri any tuts on the dialouge modifing?

Thanks again for your help. Interestingly you helped two people with one "stone" :)

EDIT: I first googled and for some reason the above "babelfish" site never came up. Great find.
I also was wondering about the "config.txt" parameters...now if I can just figure out how to use
Reshack on the SFX file I'll be set.

This post has been edited by vim: 21 June 2007 - 10:55 AM


#9 User is offline   Martin H 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 802
  • Joined: 24-November 06
  • OS:none specified

Posted 21 June 2007 - 02:38 PM

Hi again, vim :) (And btw, you are very welcome, mate!)

The moded module i linked to is smaller because it is made for only decompressing LZMA(default 7z archiving algorithm). There are also three other versions of the module on the site for other algorithms. Another reason is that it's the 7ZSD.sfx version, instead of the frequently other used 7zS.sfx version of the module. The difference between the two is that the 7ZSD.sfx version is dynamically linked to MSVCRT.dll, whereas 7zS.sfx is statically linked to it, and so since all newer Windows OSes includes MSVCRT.dll by default in their OS, then there's no reason to use the version of the module which wasts additional space on statically linking to that lib also(unless you want to support legacy OS's also). The moded module has now abandoned the 7zS.sfx version and now only supports the 7ZSD.sfx version. This module isn't UPX'd, because you can't change the icon on a SFX installer made with a UPX'd module, but you can just UPX the module after you have changed the icon, if you care about saving about half of the modules uncompressed size. I'm not sure what it is you're trying to archive with your reshacking question, so i can't answer specifically, however this moded module itself allready includes several parameters for changing the text, fonts, buttons, logos and extraction dialogs etc. For example, you can reshack the normal module to e.g. completely hide the extraction dialog, but with this moded module, then you just add the parameter :
GUIMode="2"
. On the site i linked to earlier, then there is also another section which shows various examples and pictures of how it looks during the installation and then also lists the needed code for 'config.txt' to archieve that result. If what you are after isn't allready covered by the new feature set of the moded module, then i'm affraid that i can't help you, since i don't personally have any other experience with reshacking exe's other than the simple process of changing icons on my selfmade 7z switchless installers.

CU, Martin.

#10 User is offline   SoreGums 

  • Newbie
  • Group: Members
  • Posts: 31
  • Joined: 18-February 04

Posted 22 June 2007 - 12:12 AM

Awesome info there and yeah I picked up on the fact that it wasn't the same sfx module used around the place and have made my auto extract pff file and works great on w2k/xp/vista (chose to extract to %appdata% since vista has all the new permissions stuff).

I changed the icon and made the dialog show with a short message, works great.

Thanks again.

edit: after checking out more parameters there is a neat shortcut creation line too which is really good!

This post has been edited by SoreGums: 22 June 2007 - 01:32 AM


#11 User is offline   Martin H 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 802
  • Joined: 24-November 06
  • OS:none specified

Posted 22 June 2007 - 10:47 AM

@SoreGums

You are very welcome, mate :) Yeah, i'm also really impressed with all the new great parameters that is available now with this version of the module, and indeed, the shortcut creation parameter is indeed simply brilliant :) Other things which i like the most, is the 'hidcon:' switch for the 'RunProgram=' parameter, so the console window is completely hidden during batch file loading and the ability to run MSI installers directly, without needing msistub.exe or msiexec.exe.

CU, Martin.

#12 User is offline   bledd 

  • msfn is a friend of mine!
  • Group: Supreme Sponsor
  • Posts: 1,732
  • Joined: 24-March 04

Posted 22 June 2007 - 10:55 AM

this program may help you

http://freeweb.siol....ads/EasySFX.zip

:)

#13 User is offline   vim 

  • Junior
  • Group: Supreme Sponsor
  • Posts: 53
  • Joined: 23-May 06

Posted 22 June 2007 - 06:33 PM

View Postbledd, on Jun 22 2007, 11:55 AM, said:

this program may help you
http://freeweb.siol....ads/EasySFX.zip

Thanks. It looks like an interesting program. The only problem is, I can't see where I can execute a file that resides inside the *.7z archive like I can using "config.txt". It has to reside OUTSIDE the archive.

#14 User is offline   bledd 

  • msfn is a friend of mine!
  • Group: Supreme Sponsor
  • Posts: 1,732
  • Joined: 24-March 04

Posted 23 June 2007 - 02:49 AM

that can create an exe installer compressed with 7zip

#15 User is offline   asphyxia 

  • Newbie
  • Group: Members
  • Posts: 16
  • Joined: 23-February 07

Posted 23 June 2007 - 03:03 AM

What is the switch for 7-zip through which i can install 7-zip silently but with progress bar shown.

#16 User is offline   vim 

  • Junior
  • Group: Supreme Sponsor
  • Posts: 53
  • Joined: 23-May 06

Posted 23 June 2007 - 10:07 AM

View Postbledd, on Jun 23 2007, 03:49 AM, said:

that can create an exe installer compressed with 7zip

True but not what I stated. EasySFX.exe need the EXE to be ouside the archive, like so:

+INSTALLER.7z.
+----setup.exe
+----setup.dat
+----data.cab

Martin H's method has the EXE, that's going to be exectued, inside the archive using "config.txt"

#17 User is offline   coucou 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 825
  • Joined: 01-January 04

Posted 01 July 2007 - 02:29 PM

Hi Martin H,

I used yr method... everything goes just fine.
In fact, i appreciate the 7zsD.sfx method instead of 7zs.sfx because, no more msiexec/msistub are needed.

Neverless, by using 7zs.sfx dialog as here bellow, I had a decompression Progress_Bar display.
500 DIALOG 0, 0, 186, 26
STYLE DS_FIXEDSYS | DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION
CAPTION "Progress"
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
FONT 8, "MS Shell Dlg"
{
   CONTROL "Progress1", 1000, "msctls_progress32", PBS_SMOOTH | WS_CHILD | WS_VISIBLE | WS_BORDER, 7, 7, 172, 14 
}


Is there any how to get that decompression Progress_Bar display with the 7zsD.sfx?

TNX for yr help
coucou

This post has been edited by coucou: 01 July 2007 - 02:40 PM


#18 User is offline   coucou 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 825
  • Joined: 01-January 04

Posted 03 July 2007 - 04:16 AM

Hi all,

Finally i found my wish thanks to here above Martin's link http://babelfish.altavista.com/babelfish/t...%2fFrame01.html.
My solution was not modifying 7zsd.sfx, simply add/modify config.txt file like here bellow
;!@Install@!UTF-8!
ExtractTitle="Program vx.xx build xxx Extraction..."
GUIMode="1"
RunProgram="program.exe /switch or program.msi /switch"
;!@InstallEnd@!


coucou

#19 User is offline   Martin H 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 802
  • Joined: 24-November 06
  • OS:none specified

Posted 03 July 2007 - 04:12 PM

Hi coucou :)

I'm sorry that i didn't catch your post before now, but i can see that you have found it out by yourself anyway, so that's good to hear :)

CU, Martin.

#20 User is offline   coucou 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 825
  • Joined: 01-January 04

Posted 04 July 2007 - 03:20 AM

Hi Martin,

Is anywhere a real english version of http://7zsfx.solta.ru/ (NOT the babelfish translated version)?

I've downloaded them 7zSD CHM, unfortunately (regarding myself), it's in russian too. Is anywhere to get an enlish version of it?

Regards
coucou

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

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



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