IPB

Google Frontpage Forums Unattended CD/DVD Guide

> 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

> 7z SFX Modified Module and Tools
Oleg_Sch
post Jul 23 2007, 03:18 AM
Post #1


Newbie


Group: Members
Posts: 23
Joined: 9-July 07
Member No.: 145979
OS: XP Pro x86
Country Flag





7z SFX Modified Module

version 1.2 RC1 (build 715)


Hi All!

I am excited to finally present the modified 7z SFX module and accompany tools to the English speaking audience. I know some of you already got a hold of the module and used it a little. Now you can take full advantage of all feature thanks to fully translated documentation. I do encourage you to read the docs, because the module development was driven by Russian unattended community. You'll find a lot of features regular users would never think of smile.gif . I'll list just a few of them here:

- select between interactive, silent and hidden extraction
- control the appearance of dialog prompts and text
- consequently run several files (.exe, .msi, .reg and so on) after the extraction to install configured applications
- replace .bat and .cmd files and eliminate the need in supplementary utilities like "StartX.exe", "msistub.exe" and so on
- create shortcuts for programs with the icons of your choice

There's a lot, and you may want to start with usage examples to see some pics



You may also want to download 7z SFX Tools to see the installer in action.

I truly hope you like the module and start using it in your PC tasks. As you become familiar with its features, please share your experience with your peers through this thread. Although I understand written English relatively well, my writing skills are not that good and I may not be able to answer some questions with the level of detail they require (Honestly, I got a lot of help with this post newwink.gif )

You're welcome to leave any thoughts or suggestions in this thread - I'm subscribed to it. Feel free to conact me by e-mail, but keep in mind that often you can get techincal help through the forum faster smile.gif

Thank you!
==========
Latest version look at here (1.2 build 861)
==========
To do:
GUI (but it's been todo for quite some time sad.gif )
Feel free to develop GUI, but make sure it can be easily localized to other languages.

This post has been edited by Oleg_Sch: Dec 8 2007, 03:06 AM
Go to the top of the page
 
+Quote Post
8 Pages V  < 1 2 3 4 5 > »   
Start new topic
Replies (40 - 59)
Oleg_Sch
post Dec 10 2007, 12:53 AM
Post #41


Newbie


Group: Members
Posts: 23
Joined: 9-July 07
Member No.: 145979
OS: XP Pro x86
Country Flag


dll32
Some questions:
Are you changing icon in module? If "yes" - what program you use for that ?
Are you compress module by UPX or other programs?
I.e., give me full details...
I will try to repeat the situation and provide a more precise answer.
Go to the top of the page
 
+Quote Post
dll32
post Dec 10 2007, 02:44 AM
Post #42


Newbie


Group: Members
Posts: 23
Joined: 3-May 06
Member No.: 95361
Country Flag


I'm not changing the icon of the module, or using any kind of compression except for 7-zip.

I got a question now to:
is it possible to specify two archives when creating the exe?
eg.
copy /b 7zs.sfx + config.txt + archive1.7z + archive2.7z (Installer_Name).exe
Go to the top of the page
 
+Quote Post
Oleg_Sch
post Dec 10 2007, 04:58 AM
Post #43


Newbie


Group: Members
Posts: 23
Joined: 9-July 07
Member No.: 145979
OS: XP Pro x86
Country Flag


QUOTE
is it possible to specify two archives when creating the exe?
eg.
copy /b 7zs.sfx + config.txt + archive1.7z + archive2.7z (Installer_Name).exe

No. It's not! Only ONE archive can be active/used in one time. (in your example this is the archive1.7z, i.e. first)
I think it is better to go to the PM about icon's problems.
When we will decide our problems, we will inform all...
Go to the top of the page
 
+Quote Post
heffalump
post Dec 10 2007, 05:10 AM
Post #44


Junior
*

Group: Members
Posts: 83
Joined: 28-November 07
Member No.: 164210
OS: none
Country Flag


Would be nice if someone made a little GUI so no need to manually write text files and use command prompt. Like winrar SFX window newwink.gif
Go to the top of the page
 
+Quote Post
Oleg_Sch
post Dec 10 2007, 06:26 AM
Post #45


Newbie


Group: Members
Posts: 23
Joined: 9-July 07
Member No.: 145979
OS: XP Pro x86
Country Flag


To heffalump:
QUOTE (from first post)
To do:
GUI (but it's been todo for quite some time )
Feel free to develop GUI, but make sure it can be easily localized to other languages.

Sorry, not enough time to do this sad.gif
Go to the top of the page
 
+Quote Post
gora
post Dec 10 2007, 06:33 AM
Post #46


Newbie


Group: Members
Posts: 33
Joined: 9-August 07
Member No.: 149949
OS: XP Pro x86
Country Flag


QUOTE (heffalump @ Dec 10 2007, 03:10 PM) *
Would be nice if someone made a little GUI so no need to manually write text files and use command prompt. Like winrar SFX window newwink.gif

GUI for write config file (interface Russian only)
Creation of a config file Online service (interface Russian only)
Creation 7z SFX archives in Total Commander (interface Russian and English, Help - Russian only)

All on the basis of modified module Oleg_Sch

This post has been edited by gora: Oct 15 2008, 01:04 PM
Go to the top of the page
 
+Quote Post
Jolli
post Dec 12 2007, 11:19 AM
Post #47


Newbie


Group: Members
Posts: 18
Joined: 18-July 06
Member No.: 103080
OS: XP Pro x86
Country Flag


Hi there welcome.gif

There is an other Guy (Georg Wittberger) who mod the SFX modules, with a really "eye-candy" user interface. thumbup.gif

So, if both can combine together, it would be perfect!
Is this possible?

Regards.

Georg Wittberger Homepage

Attached File  Professional_GUI.jpg ( 36.22K ) Number of downloads: 8


CODE
This projects aimes at improving the look and feel of 7-Zip's SFX modules.

Currently there are two types of customized SFX modules: a simple basic module for general purposes and
a professional-looking advanced module with a modern installer look and feel. All these modules are based
on the original SFX modules so they do not provide any extra functionality.

The main advantages of these customized SFX modules are the consistent look of the start dialog and
the extraction dialog, the support of Windows XP visual styles and additional graphics and
texts to tell unexperienced users what to do with the SFX archive.
Go to the top of the page
 
+Quote Post
Oleg_Sch
post Dec 13 2007, 07:07 AM
Post #48


Newbie


Group: Members
Posts: 23
Joined: 9-July 07
Member No.: 145979
OS: XP Pro x86
Country Flag


QUOTE (dll32)
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?

I made some experiments and found that it is not a bug of the module.
I found a description of such problems for Inno Setup. Read this
I do not know how to solve this problem
Go to the top of the page
 
+Quote Post
dll32
post Dec 23 2007, 04:55 PM
Post #49


Newbie


Group: Members
Posts: 23
Joined: 3-May 06
Member No.: 95361
Country Flag


QUOTE (Oleg_Sch @ Dec 13 2007, 02:07 PM) *
QUOTE (dll32)
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?

I made some experiments and found that it is not a bug of the module.
I found a description of such problems for Inno Setup. Read this
I do not know how to solve this problem


Thanks for the clarification and thanks for trying, now I at least know what's causing it.

By the way...
I just got an idea, i might just put the installer within another installer, that extract the installer silently and then executes it.

// dLL32
Go to the top of the page
 
+Quote Post
LLL
post Dec 25 2007, 04:57 AM
Post #50





Group: Members
Posts: 1
Joined: 24-December 07
Member No.: 168080
OS: none
Country Flag


Hy,

Your module is under GNU LGPL but i don't find the sources code on the douwload page. Can you give me the link please ?

THANKS
Go to the top of the page
 
+Quote Post
Oleg_Sch
post Dec 25 2007, 03:02 PM
Post #51


Newbie


Group: Members
Posts: 23
Joined: 9-July 07
Member No.: 145979
OS: XP Pro x86
Country Flag


Updates of the site and files (and sources) will be available in first or second week of January.
Sorry, but now i'm too busy sad.gif
Go to the top of the page
 
+Quote Post
L-F
post Dec 27 2007, 09:57 AM
Post #52


Newbie


Group: Members
Posts: 15
Joined: 13-August 07
Member No.: 150632
OS: XP Pro x86
Country Flag


No Add Password Support ??
Go to the top of the page
 
+Quote Post
coucou
post Jan 1 2008, 09:32 AM
Post #53


Senior Member
****

Group: Members
Posts: 524
Joined: 1-January 04
Member No.: 11791
Country Flag


Hi,

To add a language file to some apps, i'm using the following AutoIt script to check the "HKCU\Control Panel\International\sLanguage" registry value, if it equal to "FRA" the i copy/run my language file.
CODE
$Lang = RegRead("HKEY_CURRENT_USER\Control Panel\International", "sLanguage")
If $Lang = "FRA" Then
    RunWait("HS62001_LangFR.exe")
EndIf
The size of that compiled autoit script file is about 200K.

To downsize the final archive file, i have to translate the above .au3 file to a .cmd file.
Anyone can help writing that .cmd script?

Regards
coucou
Go to the top of the page
 
+Quote Post
jpeachman
post Jan 1 2008, 02:55 PM
Post #54





Group: Members
Posts: 2
Joined: 6-May 05
Member No.: 54968
Country Flag


QUOTE (coucou @ Jan 1 2008, 07:32 AM) *
To add a language file to some apps, i'm using the following AutoIt script to check the "HKCU\Control Panel\International\sLanguage" registry value, if it equal to "FRA" the i copy/run my language file.
CODE
$Lang = RegRead("HKEY_CURRENT_USER\Control Panel\International", "sLanguage")
If $Lang = "FRA" Then
    RunWait("HS62001_LangFR.exe")
EndIf
The size of that compiled autoit script file is about 200K.

To downsize the final archive file, i have to translate the above .au3 file to a .cmd file.
Anyone can help writing that .cmd script?


Try:
CODE
FOR /F "tokens=2*" %%a in ('REG QUERY "HKCU\Control Panel\International" /v sLanguage') DO @(SET Lang=%%b)
IF "%Lang%"=="FRA" START /WAIT HS62001_LangFR.exe
SET Lang=
Go to the top of the page
 
+Quote Post
Yzöwl
post Jan 1 2008, 03:20 PM
Post #55


MSFN Junkie
Group Icon

Group: Super Moderator
Posts: 3520
Joined: 13-October 04
Member No.: 33618
OS: Windows 7 x64
Country Flag


Just an additional note to the above, there is no real need to either use a for loop or set a variable which isn't needed.
CODE
@reg query "hkcu\control panel\international" /v slanguage|find "FRA">nul 2>&1&&start "" /wait hs62001_langfr.exe
All the above is one line!

Also if you were to use program to hide the console window then you could shorten it a little too.
CODE
reg query "hkcu\control panel\international" /v slanguage|find "FRA"&&start "" /wait hs62001_langfr.exe
All the above is one line again!
Go to the top of the page
 
+Quote Post
jpeachman
post Jan 1 2008, 06:32 PM
Post #56





Group: Members
Posts: 2
Joined: 6-May 05
Member No.: 54968
Country Flag


Excellent point about there being no need to set a variable! I confess I haven't written any AutoIT scripts and was just attempting a pretty literal translation of the original into a batch file. I didn't write the FOR loop so nicely, either. It can easily be done with a single iteration, and everything can go on one line with unwanted output suppressed too by using:
CODE
@FOR /F "tokens=3 skip=4" %%a IN ('REG QUERY "HKCU\Control Panel\International" /v sLanguage') DO @IF "%%a"=="FRA" START /WAIT HS62001_LangFR.exe

Yzöwl's example of piping through FIND is still slightly shorter than this, though. Where using FOR rather than FIND might be shorter and more straightforward is if you were testing for more than one condition. For a three-language example:
CODE
@FOR /F "tokens=3 skip=4" %%a IN ('REG QUERY "HKCU\Control Panel\International" /v sLanguage') DO @IF "%%a"=="FRA" (START /WAIT HS62001_LangFR.exe) ELSE IF "%%a"=="DEU" (START /WAIT HS62001_LangDE.exe) ELSE IF "%%a"=="ENU" (START /WAIT HS62001_LangEN.exe)
It's probably good to know both techniques; still, Yzöwl's method is shortest for the specific need expressed by coucou! thumbup.gif
Go to the top of the page
 
+Quote Post
weEvil
post Jan 1 2008, 07:54 PM
Post #57


n00b
*****

Group: Banned
Posts: 944
Joined: 21-August 06
Member No.: 108167
OS: Server 2008 x64
Country Flag


So exactly what does this application do?

It would be nice to have a little snippet of info in the OPs post. Maybe a screenshot too if appropriate.
Go to the top of the page
 
+Quote Post
Yzöwl
post Jan 1 2008, 11:19 PM
Post #58


MSFN Junkie
Group Icon

Group: Super Moderator
Posts: 3520
Joined: 13-October 04
Member No.: 33618
OS: Windows 7 x64
Country Flag


QUOTE (brucevangeorge @ Jan 2 2008, 01:54 AM) *
So exactly what does this application do?

It would be nice to have a little snippet of info in the OPs post. Maybe a screenshot too if appropriate.
All the info you need is presented on the website through links provided in the opening post of this topic. Unfortunately the site is down for a while so you'd have to wait for it to come back up again for that info.

If you've already got the module it has a reasonably good help file with it giving switches, options and usage examples etc.
Go to the top of the page
 
+Quote Post
coucou
post Jan 2 2008, 02:25 AM
Post #59


Senior Member
****

Group: Members
Posts: 524
Joined: 1-January 04
Member No.: 11791
Country Flag


Many Many Many TNX jpeachman and Yzöwl thumbup.gif

Happy New 2008
coucou
Go to the top of the page
 
+Quote Post
albatros
post Jan 7 2008, 05:46 PM
Post #60





Group: Members
Posts: 4
Joined: 7-January 08
Member No.: 170286
OS: none
Country Flag


Hi, I'm AlbatroS :-)

First of all, thanx to Oleg_Sch and all contributors here. It's great what we can do with those modified SFXs!

QUOTE (gora @ Dec 10 2007, 06:33 AM) *

Hm, it seems AVs don't like its generated exe's:


This post has been edited by albatros: Jan 7 2008, 06:39 PM
Go to the top of the page
 
+Quote Post

Google Frontpage Forums Unattended CD/DVD Guide

8 Pages V  < 1 2 3 4 5 > » 
Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 




Lo-Fi Version Time is now: 22nd November 2009 - 03:17 AM
All trademarks mentioned on this page are the property of their respective owners
MSFN is not affiliated with Microsoft
Copyright © 2001-2009 msfn.org
Privacy Policy