MSFN Forum: 7z SFX Modified Module and Tools - 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
  • 22 Pages +
  • 1
  • 2
  • 3
  • 4
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

7z SFX Modified Module and Tools Rate Topic: -----

#21 User is offline   Oleg_Sch 

  • Newbie
  • Group: Members
  • Posts: 32
  • Joined: 09-July 07

Posted 08 August 2007 - 03:30 PM

coucou

http://7zsfx.solta.r...configinfo.html

Quote

IMPORTANT! Certain two-symbol sequences in the Value are parsed as follows:

\\ = \
\" = "
\n = caret return
\t = tabulation (TAB)
As a result, you MUST use DOUBLE backslashes (\\) wherever you normally use backslashes (\) (e.g. in paths or dialog texts). Similarly, if the Value contains double quotes ("), you MUST precede them with a backslash (\").


i.e. yuor configuration file should look so:

Quote

;!@Install@!UTF-8!
InstallPath="%SystemRoot%\\system32\\spool\\drivers\\w32x86\\3"
AutoInstall="regedit /s pdfMachine_FR.reg"
GUIMode="2"
Shortcut="P, {%%T\\bgsview.exe}, {-printer=\"BroadGun pdfMachine\" -config}, {Utilitaires\\Edition\\BroadGun Software}, {BroadGun pdfMachine options}, {BroadGun pdfMachine options}"
Shortcut="P, {%%T\\bgsview.exe}, {-printer=\"BroadGun pdfMachine\" -config}, {Utilitaires\\Edition\\BroadGun Software}, {Entrer vos informations d'enregistrement}, {Entrer vos informations d'enregistrement}"
Shortcut="P, {%%T\\bgsview.exe}, {}, {Utilitaires\\Edition\\BroadGun Software}, {pdfMachine}, {pdfMachine}"
Shortcut="P, {%%T\\bbgshelp.chm}, {}, {Utilitaires\\Edition\\BroadGun Software}, {pdfMachine Aide}, {pdfMachine Aide}"
Shortcut="P, {%%T\\bgsSetup.exe}, {-uninstall}, {Utilitaires\\Edition\\BroadGun Software}, {Désinstallation pdfMachine}, {Désinstallation pdfMachine}"
Shortcut="P, {%%T\\\bgsscan.exe}, {}, {Utilitaires\\Edition\\BroadGun Software}, {pdfScanMachine - Scan to PDF}, {pdfScanMachine - Scan to PDF}"
;!@InstallEnd@!


I'm think that you mistaked in second line and meant "InstallPath"
Also remember that your reg file will be executed only in "auto install" mode, i.e. only if "-ai" command line switch present
Use "RunProgram" for normal mode


#22 User is offline   coucou 

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

Posted 09 August 2007 - 02:55 AM

Many TNX Oleg
it works :thumbup

coucou

#23 User is offline   coucou 

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

Posted 16 August 2007 - 05:47 AM

Hi Oleg,

By dint of persever and Thanks to you i'll become a 7z SFX Modified Module Expert ;)

It is possible to run a program installation (setup.exe) then to extract only 1 file (patch.exe) from the archive content to the folder where that program was installed (%ProgramFiles%\\MyProg\)???

Is this config.txt file is correct???
;!@Install@!UTF-8!
RunProgram="setup.exe /s"
SetEnvironment="MP=\"%ProgramFiles%\\MyProg\""
RunProgram="cmd /c xcopy patch.exe \" %MP% /y"
GUIMode="2"
;!@InstallEnd@!


Regards
coucou

#24 User is offline   gora 

  • Member
  • PipPip
  • Group: Members
  • Posts: 142
  • Joined: 09-August 07
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 17 August 2007 - 04:20 AM

View Postcoucou, on Aug 16 2007, 03:47 PM, said:

Is this config.txt file is correct???

Oleg in holiday :)

Excuse for my bad English. :(

Yes. This should work, but problems are possible! :(
RunProgram = "setup.exe/s" to be started and will expect the process termination. But if setup.exe after start derivates "derived" processes and thus will close the main process setup.exe, RunProgram = "cmd/c xcopy patch.exe \" %MP %/y" it can be started earlier than the program folder %ProgramFiles%\MyProg will be created.

#25 User is offline   coucou 

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

Posted 17 August 2007 - 05:58 AM

TNX gora for yr reply.

Well, is there any trick (sleep) to make RunProgram = "cmd/c xcopy patch.exe \" %MP %/y" waiting until RunProgram = "setup.exe/s" has finished the installation???

Regards
coucou

#26 User is offline   gora 

  • Member
  • PipPip
  • Group: Members
  • Posts: 142
  • Joined: 09-August 07
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 17 August 2007 - 06:40 AM

It is possible to try so:
;!@Install@!UTF-8!
SetEnvironment="MP=\"%ProgramFiles%\\MyProg\""
RunProgram="hidcon:cmd /c setup.bat"
GUIMode="2"
;!@InstallEnd@!

And in setup.bat to make so:
@echo off
start /b /WAIT "" "%%T\setup.exe" /s
:_loop
IF EXIST "%ProgramFiles%\MyProg\filename" (
xcopy "%%T\patch.exe" "%MP%" /y
) ELSE ( 
goto :_loop
)
EXIT

Where filename substitute from installed applications.

This post has been edited by gora: 17 August 2007 - 06:46 AM


#27 User is offline   Inferi0r 

  • Little dude
  • PipPip
  • Group: Members
  • Posts: 180
  • Joined: 28-July 06

Posted 17 August 2007 - 07:55 AM

off: the red-white-blue combination of flags is favo here :lol:

Hey Gora.

Thanks for you documentation on the 7z SFX site and your support here!
I see in the post above that you know everything ;) about a 'wait' in 7z SFX.

Now I have (and many people with me) the following problem. I use this parameters:
SetEnvironment="Var2=%ProgramFiles%\\Mozilla Firefox\\extensions\\*.xpi"
SetEnvironment="Var5=%ProgramFiles%\\Mozilla Firefox\\extensions"
RunProgram="hidcon:cmd FOR /f %%i IN ('DIR /b /a-d \"%Var2%\"') DO \"%Var1%\" -install-global-extension \"%Var5%\\%%i\""

There are are some (2 or more) *.xpi (can't know and use the exactly names of the xpi's).
The RunProgram could normally install every xpi which stored in the "ProgramFiles%\Mozilla Firefox\extensions" folder. But the problem is that there is not enough pause between each extension (xpi). So one or none extensions will be installed. The 'ping localhost methode' doesn't work at all...so do you know a solution?

Thanks in advance.

This post has been edited by Inferi0r: 17 August 2007 - 08:00 AM


#28 User is offline   gora 

  • Member
  • PipPip
  • Group: Members
  • Posts: 142
  • Joined: 09-August 07
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 17 August 2007 - 09:47 AM

I do not see in your code %Var1%!? What is it?
Designs FOR/f %% i IN (' DIR/b/a-d "%Var2 %" ') DO "%Var1 %"-instal-global-extension"%Var5 % \%%i" should work only in the presence of command SETLOCAL ENABLEEXTENSIONS. Where at you it?
Publish a configuration file completely.
If you execute some commands in cmd.exe, and they are connected among themselves by variables all of them should be located in one parametr RunProgram. Parametres and variables remain only within one session cmd.exe.
If some commands cannot be written in one line in cmd.exe use bath a file and start it from RunProgram

#29 User is offline   coucou 

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

Posted 17 August 2007 - 09:48 AM

TNX Gora ;)
coucou

#30 User is offline   Inferi0r 

  • Little dude
  • PipPip
  • Group: Members
  • Posts: 180
  • Joined: 28-July 06

Posted 17 August 2007 - 11:33 AM

Sorry gora... i was thinking that it was better don't post unneeded information, but I make a fault.

Quote

;!@Install@!UTF-8!
; // Full silent install
GUIMode="2"
; // Set environments
SetEnvironment="Var1=%ProgramFiles%\\Mozilla Firefox\\firefox.exe"
SetEnvironment="Var2=%ProgramFiles%\\Mozilla Firefox\\extensions\\*.xpi"
SetEnvironment="Var3=%ProgramFiles%\\Mozilla Firefox\\chrome\\*fx*"
SetEnvironment="Var4=%AppData%\\Mozilla\\Firefox\\Profiles"
SetEnvironment="Var5=%ProgramFiles%\\Mozilla Firefox\\extensions"
SetEnvironment="Var6=%ProgramFiles%\\Mozilla Firefox\\chrome"
; // Silent install of Firefox
RunProgram="setup.exe -ms"
; // Set Firefox to default browser
RunProgram="\"%Var1%\" -setDefaultBrowser -silent"
; // Silent install of all extensions
RunProgram="hidcon:cmd FOR /f %%i IN ('DIR /b /a-d \"%Var2%\"') DO \"%Var1%\" -install-global-extension \"%Var5%\\%%i\""
; // Delete all packed extensions after install
Delete="%Var2%"
; // Set Adblock Plus settings if exist
RunProgram="hidcon:cmd IF EXIST patterns.ini FOR /f %%i IN ('DIR /b /a:d \"%Var4%\"') DO if exist \"localized\adblockplus\patterns.ini\" md \"%Var4%\\%%i\\adblockplus\""
RunProgram="hidcon:cmd IF EXIST patterns.ini FOR /f %%i IN ('DIR /b /a:d \"%Var4%\"') DO copy \"localized\adblockplus\patterns.ini\" \"%Var4%\\%%i\\adblockplus\""
; // Silent install of unsigned Themes (not needed and not set by default)
; RunProgram="hidcon:cmd FOR /f %%i IN ('DIR /b /a-d \"%Var3%\"') DO \"%Var1%\" -install-global-theme \"%Var6%\\%%i\""
; // Delete all packed themes after install
; Delete="%Var3%"
;!@InstallEnd@!


Set local extension? Never heard about that. I'll take a look into it.

Edit: I read here:

Quote

Command Extensions are enabled by default, DisableExtensions will attempt to disable Command extensions. (ENABLEEXTENSIONS - will attempt to re-enable)

So I don't understand why use SETLOCAL EnableExtensions, because I haven't disabled them.

This post has been edited by Inferi0r: 17 August 2007 - 11:58 AM


#31 User is offline   gora 

  • Member
  • PipPip
  • Group: Members
  • Posts: 142
  • Joined: 09-August 07
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 17 August 2007 - 01:44 PM

Inferi0r

Quote

So I don't understand why use SETLOCAL EnableExtensions, because I haven't disabled them.

Excuse, I was not right. :( Sorry...

Quote

But the problem is that there is not enough pause between each extension (xpi). So one or none extensions will be installed. The 'ping localhost methode' doesn't work at all...so do you know a solution?

In the module it is not provided what means for the organization of delays. But your problem in delay use in cmd.exe. You can use any known ways of the organization of a delay in .bat files. For example so:
RunProgram="hidcon:cmd FOR /f %%i IN ('DIR /b /a-d \"%Var2%\"') DO \"%Var1%\" -install-global-extension \"%Var5%\\%%i\" & echo *****"
Where * - code 07H (beep). :)
Or so:
RunProgram="hidcon:cmd FOR /f %%i IN ('DIR /b /a-d \"%Var2%\"') DO \"%Var1%\" -install-global-extension \"%Var5%\\%%i\" & nircmdc.exe wait 1000"
But it is necessary to add the freeware utility nircmdc.exe in archive. It is a lot of variants ;).

It will be possible to you better to unite all your commands in .bat file (the big flexibility since is not present necessity to unite some commands in one line) and then to start it from RunProgram, but.... To solve to you ;)

Successes to you.

This post has been edited by gora: 17 August 2007 - 10:52 PM


#32 User is offline   Inferi0r 

  • Little dude
  • PipPip
  • Group: Members
  • Posts: 180
  • Joined: 28-July 06

Posted 17 August 2007 - 02:17 PM

Hey gora,

Thanks man for this helpful information.
I test this first then I report.

See You

#33 User is offline   Martin H 

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

Posted 17 August 2007 - 05:48 PM

View PostInferi0r, on Aug 17 2007, 03:55 PM, said:

The 'ping localhost methode' doesn't work at all...

For me it works perfect for both Firefox and Thunderbird. Adding '& ping localhost' sets a pause of 4 seconds in between each xpi installation and is exactly the same as using e.g. 'sleep.exe' or some other comparabel tool with a 4 second setting in between each xpi install, but just saves you the space off adding an extra tool to the SFX installer. I first tried with '& ping -n 1 localhost' and it didn't work. Then again with '& ping -n 2 localhost' and still not working. Then '& ping -n 3 localhost' and still nothing. Then finally with '& ping localhost' it worked and for both Firefox and Thunderbird('& ping -n 4 localhost' is the same as '& ping localhost'). I have made about 20 installs of Firefox and Thunderbird by now with '& ping localhost' and had success with every single installation.

Have you removed the 'Command-line tools' component with nLite without defining 'ping.exe' to be saved i.e. can you run 'ping localhost' from a command-prompt without getting an error message ?

Sorry for the off-topic'ness :blushing:

#34 User is offline   radix 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 732
  • Joined: 08-February 07
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 28 August 2007 - 03:47 AM

Hi Oleg!

I build a package with this config.txt:
 
;!@Install@!UTF-8!
RunProgram="hidcon:install.cmd"
GUIMode="2"
Shortcut="Du, {%%T\\%programfiles%\\DU Meter\\DUMeter.exe}, {}, {}, {}, {DU Meter}"
;!@InstallEnd@!
 


But, in icon properties on Target field appear this:
 
"C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\7ZipSfx.000\%programfiles%\DU Meter\DUMeter.exe" 

Is posible to appear this:
 
"%programfiles%\DU Meter\DUMeter.exe" 

Or better this:
 
"C:\Program Files\DU Meter\DUMeter.exe" 

Thanks!

This post has been edited by radix: 28 August 2007 - 04:13 PM


#35 User is offline   gora 

  • Member
  • PipPip
  • Group: Members
  • Posts: 142
  • Joined: 09-August 07
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 30 August 2007 - 01:48 AM

Hi, radix.
In a configuration file do not have parametre 'InstallPath'. In the Help it is written:

Quote

If the 'InstallPath' value is not present in the configuration file or the path was deleted from the interactive extraction dialog, the archive will be extracted to a temporary folder.

and

Quote

%%T - full extraction path


Therefore the module also adds to you a way to a temporary folder. At you should be so:
Shortcut = "Du, {C:\\Program Files\\DU Meter\\DUMeter.exe}, {}, {}, {}, {DU Meter}"

This post has been edited by gora: 30 August 2007 - 06:08 AM


#36 User is offline   radix 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 732
  • Joined: 08-February 07
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 30 September 2007 - 10:39 AM

Hi!
I use a config.txt file like this:

;!@Install@!UTF-8!
RunProgram="setup.exe"
GUIMode="2"
;!@InstallEnd@!

The temporary folder where the sfx archive is extracted is not deleted after
the installation of the program.
Is this correct?

#37 User is offline   gora 

  • Member
  • PipPip
  • Group: Members
  • Posts: 142
  • Joined: 09-August 07
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 30 September 2007 - 11:16 PM

Hi, radix.

Quote

Is this correct?
YES. All depends on your file setup.exe. If his process does not branch, the temporary folder should remove.
If the file setup.exe starts child process and closes the basic, the module tries to remove a temporary folder, but child process can continue to use files from a temporary folder and does not allow to remove it.

#38 User is offline   radix 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 732
  • Joined: 08-February 07
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 01 October 2007 - 01:01 AM

Thx Gora!
Anyway I use CCleaner frequently to empty the TempDir.

#39 User is offline   Oleg_Sch 

  • Newbie
  • Group: Members
  • Posts: 32
  • Joined: 09-July 07

Posted 08 December 2007 - 03:03 AM

I released new version of the module. It's based on 7-Zip 4.57 sources.
Only updated modules are available now. I hope to finish working on the web site, help files and other stuff by the end of the next week. That's why only the direct links to the files are available at this point. You'll find them below:
7zSD build 861
7zSD_extra build 861

This post has been edited by Oleg_Sch: 08 December 2007 - 07:51 PM


#40 User is offline   dll32 

  • Newbie
  • Group: Members
  • Posts: 23
  • Joined: 03-May 06

Posted 09 December 2007 - 04:44 PM

I got a problem with the icon of the exe when the size of the archive is bigger than ~700mb.
The problem is that the icon gets replaced to the boring "white rectangle".

Is this a bug with 7zSD?
If it's a known bug, is there any way to prevent it?

Share this topic:


  • 22 Pages +
  • 1
  • 2
  • 3
  • 4
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

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



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