Content Type
Profiles
Forums
Events
Posts posted by gora
-
-
Is there a solution, if i run this SFX by doubleclick (without command line switches) to get an output (error) text, that 'this installer' could only run by command line switches?
Yes. For example:
RunProgram="fm20:hidcon:cmd /c echo"
...
FinishMessage = "ATTENTION!!!\n\nThis installer could only run by command line switches.\n\nWork is interrupted! "0 -
http://www.msfn.org/board/7z-SFX-Modified-...342#entry718342Is someone developing GUI for sfx installer creation? It would be great...2 cool400
Errors in a code are! Write a code working .bat file - I will write to you how be correct should in a configuration file.
0 -
Am I missing something?
The number of inverted commas always should be to steam rooms (2, 4, 6...)
0 -
rkillcrazy, may be so:
SetEnvironment="Var1=%ALLUSERSPROFILE%\\DESKTOP\\ADOBE READER 8.LNK"
You have errors in line
ExecuteParameters="/sPB /rs /l /msi\"/qb-! /norestart /log c:\\acrobat8.log ALLUSERS=2 EULA_ACCEPT=YES SUPPRESS_APP_LAUNCH=YES\"\""
Check up inverted commas.
0 -
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 -f222File upx.exe put in the specified folder or replace a way to it.
0 -
Hi, AlbatroS.
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"
0 -
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:
; To use compression - 1 or 2, is not use - 0useUPX=0
All this is in detail described in Russian Manual.
0 -
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
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
0 -
Hi, radix.
YES. All depends on your file setup.exe. If his process does not branch, the temporary folder should remove.Is this correct?If the file setup.exe starts child process and closes the basic, the module tries to remove a temporary folder, but child process can continue to use files from a temporary folder and does not allow to remove it.
0 -
Hi, radix.
In a configuration file do not have parametre 'InstallPath'. In the Help it is written:
If the 'InstallPath' value is not present in the configuration file or the path was deleted from the interactive extraction dialog, the archive will be extracted to a temporary folder.and
%%T - full extraction pathTherefore the module also adds to you a way to a temporary folder. At you should be so:
Shortcut = "Du, {C:\\Program Files\\DU Meter\\DUMeter.exe}, {}, {}, {}, {DU Meter}"
0 -
Inferi0r
So I don't understand why use SETLOCAL EnableExtensions, because I haven't disabled them.Excuse, I was not right. Sorry...
But the problem is that there is not enough pause between each extension (xpi). So one or none extensions will be installed. The 'ping localhost methode' doesn't work at all...so do you know a solution?In the module it is not provided what means for the organization of delays. But your problem in delay use in cmd.exe. You can use any known ways of the organization of a delay in .bat files. For example so:
RunProgram="hidcon:cmd FOR /f %%i IN ('DIR /b /a-d \"%Var2%\"') DO \"%Var1%\" -install-global-extension \"%Var5%\\%%i\" & echo *****"
Where * - code 07H (beep).
Or so:
RunProgram="hidcon:cmd FOR /f %%i IN ('DIR /b /a-d \"%Var2%\"') DO \"%Var1%\" -install-global-extension \"%Var5%\\%%i\" & nircmdc.exe wait 1000"
But it is necessary to add the freeware utility nircmdc.exe in archive. It is a lot of variants .
It will be possible to you better to unite all your commands in .bat file (the big flexibility since is not present necessity to unite some commands in one line) and then to start it from RunProgram, but.... To solve to you
Successes to you.
0 -
I do not see in your code %Var1%!? What is it?
Designs FOR/f %% i IN (' DIR/b/a-d "%Var2 %" ') DO "%Var1 %"-instal-global-extension"%Var5 % \%%i" should work only in the presence of command SETLOCAL ENABLEEXTENSIONS. Where at you it?
Publish a configuration file completely.
If you execute some commands in cmd.exe, and they are connected among themselves by variables all of them should be located in one parametr RunProgram. Parametres and variables remain only within one session cmd.exe.
If some commands cannot be written in one line in cmd.exe use bath a file and start it from RunProgram
0 -
It is possible to try so:
;!@Install@!UTF-8!
SetEnvironment="MP=\"%ProgramFiles%\\MyProg\""
RunProgram="hidcon:cmd /c setup.bat"
GUIMode="2"
;!@InstallEnd@!And in setup.bat to make so:
@echo off
start /b /WAIT "" "%%T\setup.exe" /s
:_loop
IF EXIST "%ProgramFiles%\MyProg\filename" (
xcopy "%%T\patch.exe" "%MP%" /y
) ELSE (
goto :_loop
)
EXITWhere filename substitute from installed applications.
0 -
Is this config.txt file is correct???
Oleg in holiday
Excuse for my bad English.
Yes. This should work, but problems are possible!
RunProgram = "setup.exe/s" to be started and will expect the process termination. But if setup.exe after start derivates "derived" processes and thus will close the main process setup.exe, RunProgram = "cmd/c xcopy patch.exe \" %MP %/y" it can be started earlier than the program folder %ProgramFiles%\MyProg will be created.
0
7z SFX Modified Module and Tools
in Application Installs
Posted