Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 



Oleg_Sch

7z SFX Modified Module and Tools

Recommended Posts

eltunisie    0

;!@Install@!UTF-8!
GUIMode="2"
RunProgram="cmd /c xcopy *.* \"%SystemDrive%\" /y /h"
;!@InstallEnd@!

Probably because you were missing a backslash from one of your quotes

Edit: try this slightly improved version (hides console window and added %%T=full extraction path)

;!@Install@!UTF-8!
GUIMode="2"
RunProgram="hidcon:xcopy \"%%T\\*.*\" \"%SystemDrive%\" /y /h"
;!@InstallEnd@!

+

not work

Share this post


Link to post
Share on other sites

myselfidem    5

You can find help also reading the guide, here:

http://7zsfx.info/en/

As example given for Total Commander:

;!@Install@!UTF-8!

Title="Total Commander 7 installation"

BeginPrompt="Total Commander file manager will be installed\nnow with English interface language.\n\nLearn about other installation scenarios\nby pressing \"Cancel\" and launching this\nSFX again with '-?' or '-h' switch."

; Installation folder

SetEnvironment="PathTC=%ProgramFiles%\\TOOLS\\Total Commander"

SetEnvironment="Var1=%PathTC%\\"

SetEnvironment="Var2=\"%PathTC%\""

; Deleting the previous installation registry keys

SetEnvironment="DelKey1=hidcon:cmd /c reg delete \"hkcu\\Software\\Ghisler\" /f"

SetEnvironment="DelKey2=hidcon:cmd /c reg delete \"hklm\\Software\\Ghisler\" /f"

; "Clean" TC installation

RunProgram="%DelKey1%"

RunProgram="%DelKey2%"

RunProgram="fm20:tcmd7pb3_E.exe"

AutoInstall1="%DelKey1%"

AutoInstall1="%DelKey2%"

AutoInstall1="fm20:tcmd7pb3_E.exe"

; Russian localization

AutoInstall2="hidcon:cmd /c xcopy Language \"%Var1%Language\" /s /e /i /y"

AutoInstall2="hidcon:cmd /c copy !ReadMe_Rus.txt %Var2%"

AutoInstall2="hidcon:cmd /c copy Hist_rus.txt %Var2%"

AutoInstall2="hidcon:cmd /c copy Keyb_rus.txt %Var2%"

; Personal settings

AutoInstall3="hidcon:cmd /c copy Default.bar %Var2%"

AutoInstall3="hidcon:cmd /c copy default.br2 %Var2%"

AutoInstall3="hidcon:cmd /c copy wcx_ftp.ini %Var2%"

AutoInstall3="hidcon:cmd /c copy wincmd.ini %Var2%"

; License keyAutoInstall4="hidcon:cmd /c copy wincmd.key %Var2%"

; Encryption support

AutoInstall5="hidcon:cmd /c copy wcmzip32.dll %Var2%"

; Plugins and utilities

AutoInstall6="hidcon:cmd /c xcopy Info \"%Var1%Info\" /s /e /i /y"

AutoInstall6="hidcon:cmd /c xcopy Plugins \"%Var1%Plugins\" /s /e /i /y"

AutoInstall6="hidcon:cmd /c xcopy Utils \"%Var1%Utils\" /s /e /i /y"

; Graphic and media file viewer

AutoInstall7="hidcon:cmd /c xcopy IrfanView \"%Var1%IrfanView\" /s /e /i /y"

; TC autorun when a USB flash drive is inserted

AutoInstall8="hidcon:cmd /c \"regedit -s ForAutoplayTC.reg\""

; Full TC installation

AutoInstall="%DelKey1%"

AutoInstall="%DelKey2%"

AutoInstall="fm20:tcmd7pb3_E.exe"

AutoInstall="hidcon:cmd /c \"del tcmd7pb3_E.exe /q\""

AutoInstall="hidcon:cmd /c xcopy %%T %Var2% /s /e /i /y"

AutoInstall="hidcon:cmd /c \"regedit -s ForAutoplayTC.reg\""

GUIFlags="2+4+8+16+32+2048+4096"GUIMode="1"

ExtractTitle="Extracting files..."

ExtractDialogText="Hang on, we are almost done."

Shortcut="26,{%Var1%TOTALCMD.EXE},{},{Microsoft\\Internet Explorer\\Quick Launch},{File manager},{Total Commander}"

HelpText="If you launch this SFX archive without switches, Total Commander (TC)\nwill be installed (unregistered version) with English interface language.\n\nIf you launch this SFX archive with switches (number below is a key),\nyou will get:\n\t1 Total Commander (required switch)\n\t2 Russian localization\n\t3 Configuration files\n\t4 Legally purchased license key\n\t5 ZIP-dll with encryption support\n\t6 Plugins\n\t7 IrfanView viewer\n\t8 Autorun TC when USB flash drive is inserted\n\nIf the SFX is launched with switch:\n '-ai12345678' - You get \"full\" TC\n '-ai1245' - You keep the original TC interface\n '-ai125' - You get TC with Russian interface.\n\nMake up your mind and launch the SFX with the switches you need!"

FinishMessage="Total Commander 7 has been installed.\n\nClick the TC icon on the Quick Launch\ntool bar to launch the program."

;!@InstallEnd@!

Edited by myselfidem

Share this post


Link to post
Share on other sites
gora    6
not working

;!@Install@!UTF-8!
GUIMode="2"
RunProgram="xcopy *.* %SystemDrive%\\ /y /h"
;!@InstallEnd@!

Share this post


Link to post
Share on other sites
ricktendo    3

I need true code please

i need to know What meaning of :

%Var1%

%Var2%

%PathTC%

%DelKey1%

%DelKey2%

They are whatever you make them

Share this post


Link to post
Share on other sites
myselfidem    5

@eltunisie

After many tests I see that works if I add a folder to copy the files inside "Systemdrive%\\Folders", like this:

config.txt

-------------

;!@Install@!UTF-8!

GUIMode="2"

RunProgram="hidcon:cmd /c xcopy %%T\\*.* %SYSTEMDRIVE%\\Folders /s /e /i /y"

;!@InstallEnd@!

Give the name you want for the destination folder! This one will be created with the name you give!

Works fine!

Remember to save the config.txt in UTF-8 encoding

Edited by myselfidem

Share this post


Link to post
Share on other sites
eltunisie    0

@eltunisie

After many tests I see that works if I add a folder to copy the files inside "Systemdrive%\\Folders", like this:

config.txt

-------------

;!@Install@!UTF-8!

GUIMode="2"

RunProgram="cmd /c xcopy %%T\\.* %SYSTEMDRIVE%\\Folders /s /e /i /y"

;!@InstallEnd@!

Give the name you want for the destination folder! This one will be created with the name you give!

Remember to save the config.txt in UTF-8 encoding

thanks

but i need to copy ghost files and boot.ini to c:\

if this fildes add in folder inside c:\ not woke in boot windwos

Share this post


Link to post
Share on other sites
myselfidem    5

I've updated my last post about a little error and added hidcon: (to hide the command window)

RunProgram="hidcon:cmd /c xcopy %%T\\*.* %SYSTEMDRIVE%\\Folders /s /e /i /y"

You can also use a batch file to copy your files inside C:\ using SFX modified module!

config.txt

-------------

;!@Install@!UTF-8!

GUIMode="2"

RunProgram="hidcon:install.cmd"

;!@InstallEnd@!

Edited by myselfidem

Share this post


Link to post
Share on other sites
myselfidem    5

Works fine like below!! :rolleyes:

You can do like this and your folders will be copied on C:\ drive

config.txt

----------------

;!@Install@!UTF-8!

GUIMode="2"

RunProgram="hidcon:cmd /c xcopy %%T\\*.* %SYSTEMDRIVE%\\ /s /e /i /y"

;!@InstallEnd@!

Tested and works fine!

Enjoy!

Edited by myselfidem

Share this post


Link to post
Share on other sites
eltunisie    0

Works fine like below!! :rolleyes:

You can do like this and your folders will be copied on C:\ drive

config.txt

----------------

;!@Install@!UTF-8!

GUIMode="2"

RunProgram="hidcon:cmd /c xcopy %%T\\*.* %SYSTEMDRIVE%\\ /s /e /i /y"

;!@InstallEnd@!

Tested and works fine!

Enjoy!

I'm sorry

not working

I will uplode my files and you say what the wrong???????

http://www.mediafire.com/?7h8lcrk916w6lqd

Share this post


Link to post
Share on other sites
myselfidem    5

You need to create a config.bat to have your .exe file for silent installation!

Rename your run.cmd as config.bat and launch this batch file!

You will have your .exe file!

*Edit: just add the switch /h inside config.txt for the hiden files!

like this:

;!@Install@!UTF-8!

GUIMode="2"

RunProgram="hidcon:cmd /c xcopy %%T\\*.* %SYSTEMDRIVE%\\ /s /e /i /y /h"

;!@InstallEnd@!

Tested and works fine!

Of course you need to choose Show hiden files and folders to see your files on C:\ drive!

Edited by myselfidem

Share this post


Link to post
Share on other sites
eltunisie    0

You need to create a config.bat to have your .exe file for silent installation!

Rename your run.cmd as config.bat and launch this batch file!

You will have your .exe file!

*Edit: just add the switch /h inside config.txt for the hiden files!

like this:

;!@Install@!UTF-8!

GUIMode="2"

RunProgram="hidcon:cmd /c xcopy %%T\\*.* %SYSTEMDRIVE%\\ /s /e /i /y /h"

;!@InstallEnd@!

Tested and works fine!

Of course you need to choose Show hiden files and folders to see your files on C:\ drive!

thanks

but not work :(

:blushing: pls can you make this files to exe ?????????????? :)

Share this post


Link to post
Share on other sites
myselfidem    5

Ok!

You can try this one I've tested like you want!

Just double-click on the .exe file to launch the program and see immediately the result on your C:\ drive

Edited by myselfidem

Share this post


Link to post
Share on other sites
gora    6
RunProgram="hidcon:cmd /c xcopy %%T\\*.* %SYSTEMDRIVE%\\ /s /e /i /y /h"

This is an incorrect line

Variable %%T can contain spaces

Correctly written as:

RunProgram="hidcon:cmd /c xcopy *.* %SYSTEMDRIVE%\\ /s /e /i /y /h"

or so:

RunProgram="hidcon:cmd /c xcopy \"%%T\\*.*\" %SYSTEMDRIVE%\\ /s /e /i /y /h"

2 eltunisie

Write a line:

RunProgram="cmd /k xcopy \"%%T\\*.*\" %SYSTEMDRIVE%\\ /s /e /i /y /h"

and see the output into the console window

PS

Update module, you have very old

Share this post


Link to post
Share on other sites
myselfidem    5
RunProgram="hidcon:cmd /c xcopy %%T\\*.* %SYSTEMDRIVE%\\ /s /e /i /y /h"

This is an incorrect line

Variable %%T can contain spaces

Correctly written as:

RunProgram="hidcon:cmd /c xcopy *.* %SYSTEMDRIVE%\\ /s /e /i /y /h"

or so:

RunProgram="hidcon:cmd /c xcopy \"%%T\\*.*\" %SYSTEMDRIVE%\\ /s /e /i /y /h"

Thanks :)

The two methods works fine for me, but I think it's better to write like your example above: \"%%T\\*.*\"

@eltunisie

download link updated with the new config.txt:

http://www.mediafire.com/?3s43j1jw65ycd

*Edit: file updated and moved

Edited by myselfidem

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing   0 members

    No registered users viewing this page.

×