eltunisie Posted June 18, 2011 Posted June 18, 2011 ;!@Install@!UTF-8!GUIMode="2"RunProgram="cmd /c xcopy *.* \"%SystemDrive%\" /y /h";!@InstallEnd@!Probably because you were missing a backslash from one of your quotesEdit: 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
myselfidem Posted June 18, 2011 Posted June 18, 2011 (edited) 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 folderSetEnvironment="PathTC=%ProgramFiles%\\TOOLS\\Total Commander"SetEnvironment="Var1=%PathTC%\\"SetEnvironment="Var2=\"%PathTC%\""; Deleting the previous installation registry keysSetEnvironment="DelKey1=hidcon:cmd /c reg delete \"hkcu\\Software\\Ghisler\" /f"SetEnvironment="DelKey2=hidcon:cmd /c reg delete \"hklm\\Software\\Ghisler\" /f"; "Clean" TC installationRunProgram="%DelKey1%"RunProgram="%DelKey2%"RunProgram="fm20:tcmd7pb3_E.exe"AutoInstall1="%DelKey1%"AutoInstall1="%DelKey2%"AutoInstall1="fm20:tcmd7pb3_E.exe"; Russian localizationAutoInstall2="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 settingsAutoInstall3="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 supportAutoInstall5="hidcon:cmd /c copy wcmzip32.dll %Var2%"; Plugins and utilitiesAutoInstall6="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 viewerAutoInstall7="hidcon:cmd /c xcopy IrfanView \"%Var1%IrfanView\" /s /e /i /y"; TC autorun when a USB flash drive is insertedAutoInstall8="hidcon:cmd /c \"regedit -s ForAutoplayTC.reg\""; Full TC installationAutoInstall="%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 June 18, 2011 by myselfidem
gora Posted June 19, 2011 Posted June 19, 2011 not working;!@Install@!UTF-8!GUIMode="2"RunProgram="xcopy *.* %SystemDrive%\\ /y /h";!@InstallEnd@!
eltunisie Posted June 19, 2011 Posted June 19, 2011 I need true code pleasei need to know What meaning of :%Var1%%Var2%%PathTC%%DelKey1%%DelKey2%
ricktendo Posted June 19, 2011 Posted June 19, 2011 I need true code pleasei need to know What meaning of :%Var1%%Var2%%PathTC%%DelKey1%%DelKey2%They are whatever you make them
myselfidem Posted June 19, 2011 Posted June 19, 2011 (edited) @eltunisieAfter 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 June 19, 2011 by myselfidem
eltunisie Posted June 19, 2011 Posted June 19, 2011 @eltunisieAfter 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 encodingthanksbut i need to copy ghost files and boot.ini to c:\ if this fildes add in folder inside c:\ not woke in boot windwos
myselfidem Posted June 19, 2011 Posted June 19, 2011 (edited) 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 June 19, 2011 by myselfidem
myselfidem Posted June 19, 2011 Posted June 19, 2011 (edited) Works fine like below!! You can do like this and your folders will be copied on C:\ driveconfig.txt----------------;!@Install@!UTF-8!GUIMode="2"RunProgram="hidcon:cmd /c xcopy %%T\\*.* %SYSTEMDRIVE%\\ /s /e /i /y";!@InstallEnd@!Tested and works fine!Enjoy! Edited June 20, 2011 by myselfidem
eltunisie Posted June 20, 2011 Posted June 20, 2011 Works fine like below!! You can do like this and your folders will be copied on C:\ driveconfig.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 sorrynot workingI will uplode my files and you say what the wrong???????http://www.mediafire.com/?7h8lcrk916w6lqd
myselfidem Posted June 20, 2011 Posted June 20, 2011 (edited) 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 June 20, 2011 by myselfidem
eltunisie Posted June 20, 2011 Posted June 20, 2011 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 pls can you make this files to exe ??????????????
myselfidem Posted June 20, 2011 Posted June 20, 2011 (edited) 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 June 15, 2012 by myselfidem
gora Posted June 20, 2011 Posted June 20, 2011 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 eltunisieWrite a line:RunProgram="cmd /k xcopy \"%%T\\*.*\" %SYSTEMDRIVE%\\ /s /e /i /y /h" and see the output into the console windowPS Update module, you have very old
myselfidem Posted June 20, 2011 Posted June 20, 2011 (edited) 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\\*.*\"@eltunisiedownload link updated with the new config.txt:http://www.mediafire.com/?3s43j1jw65ycd*Edit: file updated and moved Edited June 21, 2011 by myselfidem
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now