;!@Install@!UTF-8! InstallPath="%temp%\\RHD" RunProgram="setup.exe /s /SMS" Delete="%temp%\\RHD" GUIMode="2" ;!@InstallEnd@!
How to make a 7-Zip Switchless Installer
#261
Posted 29 January 2009 - 01:13 PM
#262
Posted 29 January 2009 - 01:22 PM
#263
#264
Posted 30 January 2009 - 05:54 AM
RunProgram="setup.exe /s /f2c:\\test\\mylog.log /z[-rpC:\\RHDSetup.log]"
About syntax of the command
setup.exe /s /f2c:\mylog.log /z[-rpC:\RHDSetup.log]I do not know, but if it works in bath a file in such kind and in a file of a configuration of the modified module will work. Check up its work at first in bath a file, and then already working variant transfer to a configuration file considering inverted commas and double slashes.
This post has been edited by gora: 30 January 2009 - 06:02 AM
#265
Posted 30 January 2009 - 08:39 AM
gora, on Jan 30 2009, 03:54 AM, said:
RunProgram="setup.exe /s /f2c:\\test\\mylog.log /z[-rpC:\\RHDSetup.log]"
About syntax of the command
setup.exe /s /f2c:\mylog.log /z[-rpC:\RHDSetup.log]I do not know, but if it works in bath a file in such kind and in a file of a configuration of the modified module will work. Check up its work at first in bath a file, and then already working variant transfer to a configuration file considering inverted commas and double slashes.
I have the installer working, perfectly using this config.txt
;!@Install@!UTF-8! RunProgram="setup.exe /s /f2c:\mylog.log /z[-rpC:\RHDSetup.log]" ;!@InstallEnd@!with one exception
I'll post what I posted @ ryanvm forums
It's restarting the PC as soon as it's finished installing. I need to turn this off. I don't know if there's a parameter I can add to config.txt to keep it from restarting the PC, I checked the setup's .ini file and found some promising stuff, but I'm no coder and I have no clue what I need to do. So hopefully one of you can help me with this.
The interesting info in the setup.ini is below
[General Settings] OEM = 0 DelDatUpd = 0 DelDatUni = 0 RtkLogON = 1 ForceSetupQFE = 0 ForceInstallRtk = 1 RtkAPODbgReg = 0 RtkAPOReg = 1 RemoveHDQFE = 0 QFEReboot = 0 fW2KForceRebt = 0 SilentReboot = 0 NUpgradeDrv = 0 NRunClsWin = 0 QFEOption = /o /norestart /passive HideWinParm = /go
I tried adding /norestart to config.txt, but that doesn't do anything. I'm wondering if I can edit the .ini itself and change one of those flags to keep it from restarting after installing?
Once again your time, effort, and help are greatly appreciated...
large test
#266
Posted 05 February 2009 - 02:44 PM
To automate the process even more:
1. Modify 7zs.sfx as desired according to OP's instructions
2. Copy 7zS.sfx to your SYSTEM32 directory
3. Enter the following into a batch file:
-------------------------------BEGIN CODE-------------------------------
@echo off
cls
%~d1
cd %~p1
echo Enter the command (e.g. "msistub setup.msi /qb-!") without quotes:
echo.
SET /P CMDLINE=
echo ;!@Install@!UTF-8! > config.txt
echo RunProgram="%CMDLINE%" >> config.txt
echo ;!@InstallEnd@! >> config.txt
copy /b %windir%\system32\7zs.sfx + config.txt + %1 %~n1.exe
del /q config.txt
------------------------------- END CODE -------------------------------
(The "code" tag messed up the echo commands)
4. Save batch file as %WINDIR%\System32\CreateInstaller.bat (save as UTF-8 as stated by original poster)
5. In Windows Explorer, Go to the "Tools\Folder Options"
6. under the "File Types" tab, go to the .7Z extension and click "Advanced"
7. Click "New..."
8. Under "Action" type "Create Installer" without quotes
9. Under "Application used to perform action" type
%WINDIR%\system32\CreateInstaller.bat "%1"
10. Now, right-click any .7Z file you want to convert into an installer, and click "Create Installer"
11. A DOS window will prompt you for the command you want to execute within the 7Z archive. Enter it without quotes.
12. Voila! The installer appears alongside the 7Z file.
Sorry I don't have time at the moment to upload screen shots. Just wanted to post this up. It's been a *great* tool for me. Thanks!
This post has been edited by judolphin: 05 February 2009 - 02:46 PM
#267
Posted 25 February 2009 - 10:18 AM
my problem is this
;!@Install@!UTF-8!
RunProgram="tfb.exe"
$location = @ProgramFilesDir & "\tfb\test\"
fileCopy("tc.plg", $location)
;!@InstallEnd@!
I like 7zip too, for it wonderful compression - but its not work
Any Ideas?
#268
Posted 25 February 2009 - 01:57 PM
#269
Posted 06 July 2009 - 11:06 AM
This post has been edited by znogi: 06 July 2009 - 11:06 AM
#270
Posted 06 July 2009 - 02:09 PM
How do you know to make all the switches? & all the cmd commands?
i need a guide please for the switches
Thank you for your help...
This post has been edited by ghostE: 06 July 2009 - 02:10 PM
#272
Posted 06 July 2009 - 02:23 PM
strel, on Jul 6 2009, 03:15 PM, said:
Thank man it look scary but i'll try
Thanks again
#273
Posted 10 May 2010 - 06:36 AM
#274
Posted 08 June 2010 - 05:24 AM
But the program only compressed mode is removed and the file runs the installation program should I install it myself. While the installation program should automatically be done. Please guide me.
This my Config File :
config:
;!@Install@!UTF-8!
GUIMode="2"
RunProgram="Setup.exe"
;!@InstallEnd@!
And use this command :
copy /b 7zsD.sfx + config.txt + (Setup.exe).7z (Setup.exe).exe
#276
Posted 04 September 2010 - 01:27 AM
Thanks for this tutorial!
Could you please give the new links, because there are "broken"!?
Regards
#277
Posted 18 September 2010 - 10:55 AM
Links work now correctly!
Regards
This post has been edited by myselfidem: 18 September 2010 - 10:55 AM
#278
Posted 06 April 2011 - 10:53 AM
#279
Posted 18 June 2011 - 11:58 AM
I need to copy some files to c:\
i used this code but not working :
--------------------------------------------
;!@Install@!UTF-8!
GUIMode="2"
RunProgram="cmd /c xcopy *.* \"%SystemDrive%" /y /h"
;!@InstallEnd@!
---------------------------------------------
What the true code i used to copy????????????
#280
Posted 20 June 2011 - 10:27 AM
eltunisie, on 18 June 2011 - 11:58 AM, said:
I need to copy some files to c:\
i used this code but not working :
--------------------------------------------
;!@Install@!UTF-8!
GUIMode="2"
RunProgram="cmd /c xcopy *.* \"%SystemDrive%" /y /h"
;!@InstallEnd@!
---------------------------------------------
What the true code i used to copy????????????
Happy to see that the problem is solved!
http://www.msfn.org/...240#entry968970



Help


Back to top









