7z SFX Modified Module and Tools
#401
Posted 08 October 2012 - 03:23 PM
Also, from Wikipedia:
%ProgramFiles%
This variable points to Program Files directory, which stores all the installed program of Windows and others. The default on English-language systems is C:\Program Files. In 64-bit editions of Windows (XP, 2003, Vista), there are also %ProgramFiles(x86)% which defaults to C:\Program Files (x86) and %ProgramW6432% which defaults to C:\Program Files. The %ProgramFiles% itself depends on whether the process requesting the environment variable is itself 32-bit or 64-bit (this is caused by Windows-on-Windows 64-bit redirection).
#402
Posted 11 October 2012 - 12:51 AM
mooms, on 08 October 2012 - 03:23 PM, said:
Also, from Wikipedia:
%ProgramFiles%
This variable points to Program Files directory, which stores all the installed program of Windows and others. The default on English-language systems is C:\Program Files. In 64-bit editions of Windows (XP, 2003, Vista), there are also %ProgramFiles(x86)% which defaults to C:\Program Files (x86) and %ProgramW6432% which defaults to C:\Program Files. The %ProgramFiles% itself depends on whether the process requesting the environment variable is itself 32-bit or 64-bit (this is caused by Windows-on-Windows 64-bit redirection).
Thanks for info...
Regards...
#404
Posted 22 October 2012 - 03:55 AM
#405
Posted 12 November 2012 - 02:03 PM
myselfidem, on 15 September 2012 - 09:57 AM, said:
alfreire, on 14 September 2012 - 02:13 PM, said:
;!@Install@!UTF-8! GUIMode="1" MiscFlags="4" RunProgram="x86:hidcon:file_x86.cmd" RunProgram="x64:hidcon:file_x64.cmd" ;!@InstallEnd@!
file_x86.cmd:
rename "%CommonProgramFiles(x86)%\Program\Test\library.dll" library.bak xcopy /y library.dll "%CommonProgramFiles(x86)%\Program\Test\" del /F /Q "%ProgramFiles(x86)%\Program\Test\file.exe" regedit /S regfile.reg shutdown -r -t 3
Regards... ;-)
Inside your config.txt, try: GUIMode="2"
config.txt (saved as UTF-8 file)
;!@Install@!UTF-8! GUIMode="2" MiscFlags="4" RunProgram="x86:hidcon:cmd /c \"%%T\\file_x86.cmd"" RunProgram="x64:hidcon:cmd /c \"%%T\\file_x64.cmd"" ;!@InstallEnd@!
I think the batch need to be improved:
file_x86.cmd
@echo off MKDIR "%CommonProgramFiles(x86)%\Program\Test" XCOPY /Y "%~dp0library.dll" "%CommonProgramFiles(x86)%\Program\Test\" /C /I /E /H /R REN "%CommonProgramFiles(x86)%\Program\Test\library.dll" library.bak DEL /F /Q "%ProgramFiles(x86)%\Program\Test\file.exe" REGEDIT /S "%~dp0regfile.reg" shutdown -r -t 3
Assuming the regfile.reg and library.dll are inside your SFX file!
However, I think it's not a good idea to restart the computer at last using SFX file with a batch file!
Because the temp folder will be removed and the batch file is already in use and errors may occurs.
*Edit: errors about quotes inside config.txt updated and corrected!
Hello,
Hopefully I can get some help. The MiscFlags="4" is not working for me as well. I tried using the 7zsd_All.sfx and 7zsd_LZMA2.sfx. I'm very new to SFX so just to be clear - I would like the sfx executable I'm creating to prompt for administrator.
Config:
;!@Install@!UTF-8!
Title="Enterprise 6.0.1"
GUIMode="2"
MiscFlags="4"
RunProgram="x64:%%T\x64\setup.exe"
RunProgram="x86:%%T\x86\setup.exe"
;!@InstallEnd@!
Thanks in advanced!
This post has been edited by DomenicP: 12 November 2012 - 02:15 PM
#406
Posted 13 November 2012 - 10:28 AM
7zip sfx - application error
#407
Posted 19 November 2012 - 08:45 AM
DomenicP, on 12 November 2012 - 02:03 PM, said:
Hello,
Hopefully I can get some help. The MiscFlags="4" is not working for me as well. I tried using the 7zsd_All.sfx and 7zsd_LZMA2.sfx. I'm very new to SFX so just to be clear - I would like the sfx executable I'm creating to prompt for administrator.
Config:
;!@Install@!UTF-8!
GUIMode="2"
MiscFlags="4"
RunProgram="x64:%%T\x64\setup.exe"
RunProgram="x86:%%T\x86\setup.exe"
;!@InstallEnd@!
Thanks in advanced!
Can anyone please help me out? This is driving me crazy and I need to resolve it. Thanks you.
#408
Posted 01 December 2012 - 03:14 PM
I have to create one SFX file that can be installed in both, 32 or 64 bit machines. But, I want to know if it is possible to give the extraction path dynamically, i mean Can the SFX itself decide in which %ProgramFiles% it should extract contents.? In 32 bit we have Program Files folder and in 64 bit, we have Program files(x86).
Please help me ASAP
#409
Posted 01 December 2012 - 04:01 PM
Cheers and Regards
#410
Posted 29 December 2012 - 04:37 PM
JFX, on 13 November 2012 - 10:28 AM, said:
7zip sfx - application error
Can you give a beta version of the SuRun for reproduce error? I can't download it now.
#411
Posted 18 January 2013 - 11:31 AM
Oleg_Sch, on 29 December 2012 - 04:37 PM, said:
It does not seems to occur in the recent beta 6, but happens here in SuRun1211b5.zip
This post has been edited by JFX: 18 January 2013 - 02:37 PM
#412
Posted 31 January 2013 - 08:32 AM
An example of config file:
;!@Install@!UTF-8! GUIMode="0" MiscFlags="4" GUIFlags="2+4+8+16+32+2048" Title="Mozilla Firefox v19.0 b4 esp Silent..." BeginPrompt=" Creado por -=cr@ckm@n=- ¿Quieres instalar Mozilla Firefox...?" ExtractTitle="Extrayendo archivos..." ExtractDialogText="Mozilla Firefox v19.0 b4 español" ExtractCancelText="Cancelar la instalación" RunProgram="setup.exe -ms" FinishMessage="Instalación finalizada correctamente... ;-)" ;!@InstallEnd@!
Regards... ;-)
Attached File(s)
-
Error.jpg (15.16K)
Number of downloads: 2
This post has been edited by alfreire: 31 January 2013 - 09:26 AM
#413
Posted 31 January 2013 - 11:08 AM
Regards... ;-)
This post has been edited by alfreire: 31 January 2013 - 11:09 AM
#415
Posted 26 April 2013 - 09:13 AM
Delete="%%T\\*.reg"
*.reg not working... I tried this
Delete="%%T\\\"*.reg\""
and this
Delete="\"%%T\\*.reg\""
and this
SetEnvironment="Variable1=*.reg" Delete="%%T\\%Variable1%"
but not working too...
Regards... ;-)
p.d.: This command works perfect...
RunProgram="hidcon:cmd /c del \"%%T\\*.reg\""
This post has been edited by alfreire: 26 April 2013 - 09:37 AM
#416
Posted 26 April 2013 - 09:31 AM
The module does not support wildcard (*,?)
#417
Posted 26 April 2013 - 01:02 PM
#418
Posted 29 April 2013 - 06:41 AM
I would like to know If is possible to give the extraction path as a parameter.
i.e In config.txt file I set the InstallPath="%TEMP%" dir for extraction path but I want the user to have the option to choose the extraction path and overwrite the setting in config file.
is that possible?
Cheers,
c0nf
#419
Posted 29 April 2013 - 07:02 AM
#420
Posted 29 April 2013 - 07:33 AM
Cheers



Help


Back to top









