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
  • 15 Pages +
  • « First
  • 2
  • 3
  • 4
  • 5
  • 6
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

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

#51 User is offline   Oleg_Sch 

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

Posted 25 December 2007 - 03:02 PM

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 :(


#52 User is offline   L-F 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 13-August 07

Posted 27 December 2007 - 09:57 AM

No Add Password Support ??

#53 User is offline   coucou 

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

Posted 01 January 2008 - 09:32 AM

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

#54 User is offline   jpeachman 

  • Group: Members
  • Posts: 2
  • Joined: 06-May 05

Posted 01 January 2008 - 02:55 PM

View Postcoucou, on Jan 1 2008, 07:32 AM, said:

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.
$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:
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=


#55 User is online   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,116
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 01 January 2008 - 03:20 PM

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.
@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.
reg query "hkcu\control panel\international" /v slanguage|find "FRA"&&start "" /wait hs62001_langfr.exe
All the above is one line again!

#56 User is offline   jpeachman 

  • Group: Members
  • Posts: 2
  • Joined: 06-May 05

Posted 01 January 2008 - 06:32 PM

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:
@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:
@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

#57 User is offline   weEvil 

  • n00b
  • PipPipPipPipPip
  • Group: Banned
  • Posts: 944
  • Joined: 21-August 06

Posted 01 January 2008 - 07:54 PM

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.

#58 User is online   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,116
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 01 January 2008 - 11:19 PM

View Postbrucevangeorge, on Jan 2 2008, 01:54 AM, said:

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.

#59 User is offline   coucou 

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

Posted 02 January 2008 - 02:25 AM

Many Many Many TNX jpeachman and Yzöwl :thumbup

Happy New 2008
coucou

#60 User is offline   albatros 

  • Group: Members
  • Posts: 4
  • Joined: 07-January 08

Posted 07 January 2008 - 05:46 PM

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!

View Postgora, on Dec 10 2007, 06:33 AM, said:


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

This post has been edited by albatros: 07 January 2008 - 06:39 PM


#61 User is offline   albatros 

  • Group: Members
  • Posts: 4
  • Joined: 07-January 08

Posted 07 January 2008 - 06:09 PM

View PostL-F, on Dec 27 2007, 09:57 AM, said:

No Add Password Support ??

AFAIK Oleg_Sch modules doesn't support encripted archives, isn't it?
In my opinion it could be useful if I send a secret file to someone, so I simply have to say: "launch it, input password and enjoy it" (without have to extract, then browse to get it, then finally launch it).
ATM WinRAR sfx can do it, so... why Oleg_Sch should have to not do it? :rolleyes:

#62 User is offline   gora 

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

Posted 07 January 2008 - 11:17 PM

Hi, AlbatroS.
Compression of the module can cause FALSE detection of some anti-virus programs. In this case you can switch-off compression of the module through a file Settings.ini:

Quote

; To use compression - 1 or 2, is not use - 0
useUPX=0

All this is in detail described in Russian Manual. ;)

#63 User is offline   albatros 

  • Group: Members
  • Posts: 4
  • Joined: 07-January 08

Posted 19 January 2008 - 03:05 PM

View Postgora, on Jan 8 2008, 12:17 AM, said:

In this case you can switch-off compression of the module through a file Settings.ini:

Thanx for reply :-)
I hope Oleg_Sch will reply too (will modules support encripted archives?).

#64 User is offline   gora 

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

Posted 19 January 2008 - 03:36 PM

Hi, AlbatroS.

View Postalbatros, on Jan 20 2008, 12:05 AM, said:

I hope Oleg_Sch will reply too (will modules support encripted archives?).

If you will be satisfied with my answer, at Russian forum Oleg_Sch responded, that: "Support by the module of encryption is NOT planned"

#65 User is offline   albatros 

  • Group: Members
  • Posts: 4
  • Joined: 07-January 08

Posted 20 January 2008 - 05:41 AM

View Postgora, on Jan 8 2008, 12:17 AM, said:

Hi, AlbatroS.
Compression of the module can cause FALSE detection of some anti-virus programs. In this case you can switch-off compression of the module through a file Settings.ini:

Quote

; To use compression - 1 or 2, is not use - 0
useUPX=0


Hi, gora.
Upacked files (Total Commander tool use Upack even if it shows "UPX" in settings.ini) are generically tagged as malicious/suspicious by some AVs. Below you can see Virustotal results of same file packed using UPX instead.
So can UPX be considered best way to compress without AVs false detection risk?

UPX packer:

Quote

AhnLab-V3 2008.1.19.10 2008.01.18 -
AntiVir 7.6.0.48 2008.01.20 -
Authentium 4.93.8 2008.01.20 -
Avast 4.7.1098.0 2008.01.20 -
AVG 7.5.0.516 2008.01.19 -
BitDefender 7.2 2008.01.20 -
CAT-QuickHeal 9.00 2008.01.19 -
ClamAV 0.91.2 2008.01.20 -
DrWeb 4.44.0.09170 2008.01.19 -
eSafe 7.0.15.0 2008.01.16 suspicious Trojan/Worm
eTrust-Vet 31.3.5470 2008.01.18 -
Ewido 4.0 2008.01.20 -
FileAdvisor 1 2008.01.20 -
Fortinet 3.14.0.0 2008.01.20 -
F-Prot 4.4.2.54 2008.01.19 -
F-Secure 6.70.13260.0 2008.01.19 -
Ikarus T3.1.1.20 2008.01.20 -
Kaspersky 7.0.0.125 2008.01.20 -
McAfee 5211 2008.01.18 -
Microsoft 1.3109 2008.01.20 -
NOD32v2 2807 2008.01.19 -
Norman 5.80.02 2008.01.18 -
Panda 9.0.0.4 2008.01.19 -
Prevx1 V2 2008.01.20 -
Rising 20.27.62.00 2008.01.20 -
Sophos 4.24.0 2008.01.20 -
Sunbelt 2.2.907.0 2008.01.17 -
Symantec 10 2008.01.20 -
TheHacker 6.2.9.191 2008.01.19 -
VBA32 3.12.2.5 2008.01.19 -
VirusBuster 4.3.26:9 2008.01.20 -
Webwasher-Gateway 6.6.2 2008.01.20 -


#66 User is offline   gora 

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

Posted 20 January 2008 - 06:40 AM

Hi, AlbatroS.

In the first versions of "button" it was used UPX and you can use UPX instead of WinUpack. In a file Settings.ini make the following:

; Path to the UPX
pathUPX=!COMMANDER_PATH!\Utilites\SFX Tool\upx.exe
;pathUPX=!COMMANDER_PATH!\Utilites\SFX Tool\Upack.exe
; To use compression - 1 or 2, is not use - 0
useUPX=1
; The command line for UPX
cmdlinUPX=--best --all-methods
;cmdlinUPX=-c2 -f222

File upx.exe put in the specified folder or replace a way to it.

#67 User is offline   dll32 

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

Posted 25 January 2008 - 02:10 PM

I cant seem to find any documentation on how to specify InstallPath as a parameter on the exe, is it possible?
If not, is there any alternative way?

#68 User is offline   MioKawaii 

  • Newbie
  • Group: Members
  • Posts: 28
  • Joined: 02-May 05

Posted 27 January 2008 - 12:58 AM

View Postdll32, on Jan 26 2008, 04:10 AM, said:

I cant seem to find any documentation on how to specify InstallPath as a parameter on the exe, is it possible?
If not, is there any alternative way?

InstallPath="path_to_extract"

Sets the extraction path. The extraction folder will not be deleted after the extraction.

If the 'InstallPath' value is not present in the config file or the path was deleted from the interactive extraction dialog, the archive will be extracted to a temporary folder. This temporary folder will be deleted after the extraction and execution of all commands.

Environment variables are allowed (with the exception of %%T and variables defined in 'SetEnvironment', if %%T is used in any of them). You MUST use DOUBLE backslashes in paths. For example:

InstallPath="C:\\Windows\\system32\\test"

or

InstallPath="%PROGRAMFILES%\\test"

Relative paths are allowed. The current folder is the one from which the program launching SFX archive was executed. For example,

InstallPath="test"

creates a folder with the name of "test" in the folder from which the program launching SFX archive was executed. All files will be extracted to the "test" folder. On the other hand,

InstallPath="."

extracts the archive content to the folder from which the program launching SFX archive was executed. Also,

InstallPath="%%S"

extracts the archive content to the folder where the SFX is located.

If all you need is to extract the archive content to a certain folder, you need to specify a value for 'InstallPath' in the config file. In this case you should not specify 'RunProgram' or 'ExecuteFile' in the config file. 'AutoInstall' or 'AutoInstallX' may be specified in the config file, but should not be invoked via the command line or with the [SHIFT] key. If you specify 'RunProgram' or 'ExecuteFile' or invoke 'AutoInstall' and 'AutoInstallX', the specified executable will be launched after the extraction.

#69 User is offline   Oleg_Sch 

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

Posted 27 January 2008 - 06:43 AM

dll32,
If you mean "as command line parameter", then it is impossible in current version. This is in ToDo list for version 1.3.

This post has been edited by Oleg_Sch: 27 January 2008 - 06:44 AM


#70 User is offline   dll32 

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

Posted 27 January 2008 - 06:17 PM

View PostOleg_Sch, on Jan 27 2008, 01:43 PM, said:

dll32,
If you mean "as command line parameter", then it is impossible in current version. This is in ToDo list for version 1.3.


Yes i did! :rolleyes:
Then i'm waiting for v1.3 then :D

Share this topic:


  • 15 Pages +
  • « First
  • 2
  • 3
  • 4
  • 5
  • 6
  • Last »
  • 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