Content Type
Profiles
Forums
Events
Posts posted by alfreire
-
-
This is true, also works in the main route %homedrive%.
The path %localappdata% good for the installer directly and also allows the uninstall, as it is a hidden folder.
If it is done manually, as in my case, I have to enable the display of hidden folders.
Thanks for your interest
Not need display hidden folders, you can put folder variables in Explorer Path bar directly, or use in WinRAR as by example Path=%localappdata% or Path=%programfiles(x86)%
Have you tried my WinRAR sfx example...?
Regards... ;-)
0 -
I always use my Windows PC as Admin user and UAC disabled from years, I don't like clik OK button every time... Only use Nod32 AV and uBlock Origin in Firefox, but all suspected and new programs are always tested first in VirtualBox... I repack all my programs to avoid junk inside and I haven't any infection by now... It's only my humble opinion...
Regards... ;-)
1 -
Good morning
For years, I delight in creating small self-extracting files for free programs, and I would like to understand why what I can do normally in W7 I no longer possible in W10.
If the example is copied in "C:\Program Files (x86)" folder full of JDowloader complete executable.
If this is done manually, everything works perfectly. If I create a self-extracting file with WinRAR, when I launch the executable returns an error to some files in it.
The same self-extracting file installed on W7 works without problems, what I think is that in W10 is not allowed under the "Program Files (x86)" and the like, the automatic extraction of some files.
Perhaps because they changed the management in terms of safety.
Is there any command or script to insert different procedure?
Sincerely thank you
Default install forder for Jdownloader 2 is %localappdata%\JDownloader v2.0 it's better use default folder to avoid problems with updates or configuration...
I did a test in Windows 10 x64 Pro and works without problems for me with WinRAR v5.30 (I'm Admin User)...
Try it if you want:
Regards... ;-)
0 -
Hello,
I would like to ask if is possible to propagate the exit code of "myprogram.exe" when the sfx file finish?
;!@Install@!UTF-8!
GUIMode="2"
RunProgram="myprogram.exe"
Autoinstall="myprogram.exe"
;!@InstallEnd@!For example if myprogram.exe will exit with code 9 I want sfx file to return the same code.
Thank you,
c0nf
I think understand your question, but don't understand why...? can you explain me...?
Regards... ;-)
0 -
2 alfreire
The module does not support wildcard (*,?)
Thank you very much, Gora... appreciate your help...
Cheers and regards... ;-)
0 -
Hi, friends... One question, how to make work this command...?
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\""
0 -
Well.. I auto-answer to myself... I updated sfx module to v1.6 develop (build 2712) and works now...
Regards... ;-)
0 -
Hello... I have a problem with some 7zsfx files in Windows 8 (other files works perfect)... I got error message : "Non 7z archive." That 7zsfx files works perfect in Win XP, Win 7 x86 and x64...
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... ;-)
0 -
After some very deep thought this is the best solution I can come up with:
I haven't stopped development of WPI. Here is the change-log for the next version so far.
v8.6.4 Updates - Released ?????, 2013
====================================================
*** TONS of manual internal fixes and corrections.
*** Minor installer.hta cleanup.
*** SystemEnclosureType fix.
*** Added in wmi detection FirewallProductName, AVProduct.
*** Fixed the extra buttons not showing on USB by default.This is what I am willing to do for those who have supported WPI:
I will (Upon a request AND agreement that you will not share or distro the supporter releases of WPI publicly) Share the new versions with people who have shown support.
The every couple of versions (Say 4-5 or so) I will release a public version.
Is this agree-able?
I'm glad your decision...
It is an honor. Thank you very much.
Congratulations, my friend...
Regards... ;-)
0 -
Some time ago I do not get into the forum, I feel you abandon the project... I made a small contribution (within my means), I hope is helpful... Paypal ID: 3UU54660UB249823H
I wish you well...
Regards and thanks by all... ;-)
In spanish:
Hace algún tiempo que no entro en el foro, siento que pares el proyecto... He hecho un pequeño aporte (dentro de mis posibilidades), espero sea de ayuda...
Te deseo lo mejor...
Saludos y gracias por todo... ;-)
0 -
Strongly agree...
Regards and thanks... ;-)
0 -
how set Password for .sfx
You must put password in *.7z file, before make *.sfx file...
Regards... ;-)
0 -
Or you could use 64 bit module.
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...
0 -
Thanks again...
0 -
A question about InstallPath, how do I get the path "Program files" on x86 and x64...?
If I put InstallPath="%programfiles%" I get c:\Program files in x86 and c:\Program files(x86) in x64... x86: and x64: don't work with this command...
Regards... ;-)
Wow, I'm stupid... InstallPath="C:\\Program files" hahahahaha X-D
0 -
For test:
;!@Install@!UTF-8!
Title="Variables %7zSfxVarModulePlatform% module in %%P OS"
BeginPrompt=" Check of variables %7zSfxVarModulePlatform% module in %%P OS
• Click 'OK', variables will are shown in a console window
• Click 'OK', retaining [Shift], variables will be are saved
to the file %SystemDrive%\\vars_%7zSfxVarModulePlatform%_module_on_%%P_OS.txt"
FinishMessage="The module %7zSfxVarModulePlatform% finished operation"
;
SetEnvironment="cmnd=@Echo Off& Title Module - %7zSfxVarModulePlatform%, OS - %%P& Echo Module - %7zSfxVarModulePlatform%, OS - %%P& Echo.& Echo Folders:&Set 7zSfxFolder& Echo.& Echo Vars:&Set 7zSfxVar& Echo %%^M=%%M& Echo %%^P=%%P& Echo %%^S=%%S& Echo %%^T=%%T& Set CommonD& Set MyDoc& Echo UserDesktop=%UserDesktop%& Echo."
RunProgram="hidcon:cmd /c Echo"
RunProgram="%%P:fm0:cmd /k %cmnd%"
AutoInstall="hidcon:cmd /c Echo"
AutoInstall="%%P:fm20:hidcon:cmd /c (%cmnd%)>%SystemDrive%\\vars_%7zSfxVarModulePlatform%_module_on_%%P_OS.txt"
GUIMode="2"
GUIFlags="2+4+8+16+32+2048+4096"
;!@InstallEnd@!
;!@Install@!UTF-8:Language:1049!
Title="Переменные %7zSfxVarModulePlatform% модуля в %%P ОС"
BeginPrompt=" Проверка переменных %7zSfxVarModulePlatform% модуля в %%P ОС
• Нажмите 'OK', переменные будет показаны в окне консоли
• Нажмите 'OK', удерживая [Shift], переменные будет
сохранены в файл %SystemDrive%\\vars_%7zSfxVarModulePlatform%_module_on_%%P_OS.txt"
FinishMessage="Модуль %7zSfxVarModulePlatform% завершил работу"
;!@InstallEnd@:Language:1049!Version module for test 1.6 build 2496
Finally, I undertstand your test... X-D Thanks again... ;-)
Module - x86, OS - x64
Folders:
7zSfxFolder00=C:\Users\Administrador\Desktop
7zSfxFolder02=C:\Users\Administrador\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
7zSfxFolder05=C:\Users\Administrador\Documents
7zSfxFolder06=C:\Users\Administrador\Favorites
7zSfxFolder07=C:\Users\Administrador\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
7zSfxFolder08=C:\Users\Administrador\AppData\Roaming\Microsoft\Windows\Recent
7zSfxFolder09=C:\Users\Administrador\AppData\Roaming\Microsoft\Windows\SendTo
7zSfxFolder11=C:\Users\Administrador\AppData\Roaming\Microsoft\Windows\Start Menu
7zSfxFolder13=C:\Users\Administrador\Music
7zSfxFolder14=C:\Users\Administrador\Videos
7zSfxFolder16=C:\Users\Administrador\Desktop
7zSfxFolder19=C:\Users\Administrador\AppData\Roaming\Microsoft\Windows\Network Shortcuts
7zSfxFolder20=C:\Windows\Fonts
7zSfxFolder21=C:\Users\Administrador\AppData\Roaming\Microsoft\Windows\Templates
7zSfxFolder22=C:\ProgramData\Microsoft\Windows\Start Menu
7zSfxFolder23=C:\ProgramData\Microsoft\Windows\Start Menu\Programs
7zSfxFolder24=C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
7zSfxFolder25=C:\Users\Public\Desktop
7zSfxFolder26=C:\Users\Administrador\AppData\Roaming
7zSfxFolder27=C:\Users\Administrador\AppData\Roaming\Microsoft\Windows\Printer Shortcuts
7zSfxFolder28=C:\Users\Administrador\AppData\Local
7zSfxFolder29=C:\Users\Administrador\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
7zSfxFolder30=C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
7zSfxFolder31=C:\Users\Administrador\Favorites
7zSfxFolder32=C:\Users\Administrador\AppData\Local\Microsoft\Windows\Temporary Internet Files
7zSfxFolder33=C:\Users\Administrador\AppData\Roaming\Microsoft\Windows\Cookies
7zSfxFolder34=C:\Users\Administrador\AppData\Local\Microsoft\Windows\History
7zSfxFolder35=C:\ProgramData
7zSfxFolder36=C:\Windows
7zSfxFolder37=C:\Windows\system32
7zSfxFolder38=C:\Program Files (x86)
7zSfxFolder39=C:\Users\Administrador\Pictures
7zSfxFolder40=C:\Users\Administrador
7zSfxFolder41=C:\Windows\SysWOW64
7zSfxFolder42=C:\Program Files (x86)
7zSfxFolder43=C:\Program Files (x86)\Common Files
7zSfxFolder44=C:\Program Files (x86)\Common Files
7zSfxFolder45=C:\ProgramData\Microsoft\Windows\Templates
7zSfxFolder46=C:\Users\Public\Documents
7zSfxFolder47=C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools
7zSfxFolder48=C:\Users\Administrador\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Administrative Tools
7zSfxFolder53=C:\Users\Public\Music
7zSfxFolder54=C:\Users\Public\Pictures
7zSfxFolder55=C:\Users\Public\Videos
7zSfxFolder56=C:\Windows\resources
7zSfxFolder59=C:\Users\Administrador\AppData\Local\Microsoft\Windows\Burn\Burn
Vars:
7zSfxVarCmdLine0=
7zSfxVarCmdLine1=
7zSfxVarCmdLine2=
7zSfxVarModulePlatform=x86
7zSfxVarSystemLanguage=3082
7zSfxVarSystemPlatform=x64
%%M=NewSfx86.exe
%%P=x64
%%S=C:\Users\Administrador\Desktop
%%T=C:\Users\ADMINI~1\AppData\Local\Temp\7ZipSfx.001
CommonDesktop=C:\Users\Public\Desktop
CommonDocuments=C:\Users\Public\Documents
MyDocs=C:\Users\Administrador\Documents
MyDocuments=C:\Users\Administrador\Documents
UserDesktop=C:\Users\Administrador\Desktop0 -
New 7zSFX_Shortcuts.7z updated including:
7zSFX_Install.reg | 7zSFX_Uninstall.reg | ReadMe.txt (English, French) | Image to see the shorcuts.
Thanks to improve or tell if there is errors!
Enjoy!
I use your first version to create sfx (with output exe name fix), one fot x86 an other for x64 sfx file...
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\7zSFX86]
"MUIVerb"="Create file 7z-sfx x86"
"NoWorkingDirectory"=""
"Icon"="C:\\Program files\\7-Zip\\7zG.exe, 0"
"Extended"=-
[HKEY_CLASSES_ROOT\Directory\shell\7zSFX86\command]
@="cmd.exe /c cd/d \"%1\" && cmd.exe /c copy /b \"C:\\Program files\\7-Zip\\7zsd_All.sfx\" + *.txt + *.7z NewSfx86.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\7zSFX86]
"MUIVerb"="Create file 7z-sfx x86"
"NoWorkingDirectory"=""
"Icon"="C:\\Program files\\7-Zip\\7zG.exe, 0"
"Extended"=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\7zSFX86\command]
@="cmd.exe /c cd/d \"%1\" && cmd.exe /c copy /b \"C:\\Program files\\7-Zip\\7zsd_All.sfx\" + *.txt + *.7z NewSfx86.exe"
[HKEY_CLASSES_ROOT\Directory\shell\7zSFX64]
"MUIVerb"="Create file 7z-sfx x64"
"NoWorkingDirectory"=""
"Icon"="C:\\Program files\\7-Zip\\7zG.exe, 0"
"Extended"=-
[HKEY_CLASSES_ROOT\Directory\shell\7zSFX64\command]
@="cmd.exe /c cd/d \"%1\" && cmd.exe /c copy /b \"C:\\Program files\\7-Zip\\7zsd_All_x64.sfx\" + *.txt + *.7z NewSfx64.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\7zSFX64]
"MUIVerb"="Create file 7z-sfx x64"
"NoWorkingDirectory"=""
"Icon"="C:\\Program files\\7-Zip\\7zG.exe, 0"
"Extended"=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\7zSFX64\command]
@="cmd.exe /c cd/d \"%1\" && cmd.exe /c copy /b \"C:\\Program files\\7-Zip\\7zsd_All_x64.sfx\" + *.txt + *.7z NewSfx64.exe"7zsd_All.sfx and 7zsd_All_x64.sfx must be inside 7-zip install folder...
And this for 7zSplit:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\7zSplit]
@="7ZSplitter"
"Icon"="C:\\Program files\\7zSplit\\7z.ico"
"Position"="Top"
[HKEY_CLASSES_ROOT\*\shell\7zSplit\command]
@="\"C:\\Program files\\7zSplit\\7ZSplit.exe\" \"%1\""
[HKEY_LOCAL_MACHINE\SOFTWARE\7zSplit]
"Path"="C:\\Program files\\7zSplit\\7ZSplit.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\7ZSplit.exe]
@="C:\\Program files\\7zSplit\\7ZSplit.exe"
"Path"="C:\\Program files\\7zSplit"Regards and thanks... ;-)
0 -
Thanks, myselfidem... good work...
0 -
Little contribution... Id: 5AW70884TG672061C
Works perfect...
Regards... ;-)
0 -
Wow... i dont kwow this... but need aswer to my question, the spaces in names...
Thanks, I pay another beer for you...
I'm waiting for the first beer !
Firefox seems not to be a good example, like I show you is already an SFX file!
Tip: unpack Firefox and do the same for others programs, if you want...
However filenames containing spaces must be properly enclosed in quotes.
For 'RunProgram' and all 'AutoInstall' parameters you CAN/MUST enclose the path to the executable along with its name in quotes.You CAN do so, even if the path and file name DO NOT contain spaces. You MUST do so, if the path or/and file name CONTAIN spaces. This is due to the fact that the full path is formed AFTER expanding the variables.
Thanks again, friend...
0 -
Firefox is already an SFX file!
Silent switch is: -ms
You can use 7ZSplit.exe to open Firefox and see how it was created!
Example:
Firefox Setup 15.0.1.txt
;!@Install@!UTF-8!
Title="Mozilla Firefox"
RunProgram="setup.exe"
;!@InstallEnd@!And you can try to add inside your customized config file:
RunProgram="\"%%T\\setup.exe\" -ms"
Wow... i dont kwow this... but need aswer to my question, the spaces in names...
Thanks, I pay another beer for you...
0 -
Other question... How to work with spaces in name of exe file...? any trick...? Obviously I can rename the file, but I just want to learn...
RunProgram="Firefox Setup 16.0b3.exe /S"
Regards... ;-)
0 -
Just a little typo error inside your config.txt: check it!
;!@InstallEnd@!
Cheers
There is no error in config.txt, error by copy/paste... X-D
However the error is inside your post and not corrected on this thread!
Enjoy!
Corrected now...
Regards and thanks again...
0 -
1-One question, how I can make a 7zsfx with hidden files...? I can do with password, but I just want the password to prevent decompression, and not for install, as in Button setup by Gora...
Read here
FAQ, item 2
Now I look... thanks...
Excuse my stupidity, can not find it...
I found it... sorry and thanks...
0
Problems creating self-extracting files in Program Files
in Windows 10
Posted · Edited by alfreire
Try, if you want, my InnoSetup Installer:
-Installer only English/Spanish but is multilanguage
-If you want Silent Install use /silent or /verysilent
Regards... ;-)