Войти

Показать полную графическую версию : Модифицированный SFX модуль 7-Zip'а для установок


Страниц : 1 2 3 4 5 6 7 8 9 10 [11] 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101

gora
01-06-2006, 16:49
Oleg_SchВыложить без доков ?Конечно, бог с ними с доками.

+ Отображение иконки в диалоге указания пути распаковки (через 'GUIFlags')Значит GUI опять не будет работать из-за нововеденного параметра?
Эх, где же наш дембель? Загулял или совсем нас забросил?!

Нельзя ли шапке отображать номер версии модуля, а то гадай уже новый или еще старый лежит?

Кстати вопросик: Spliter может извлекать config файл из SFX архива, сделанного стандартным 7-Zip? У меня не получилось. Вы его тоже обещали подправить, как с ним дела? Извините за offtop.

YuriPet
01-06-2006, 16:51
Выкладывать "сырой" продукт, или нет - решает автор! ;)
А мне лично (может тоже чего подскажу - чем черт не шутит), можно? :shuffle: Например, на E-mail (есть в профиле).

Oleg_Sch
01-06-2006, 17:14
Ладно... Получайте...
http://7zsfx.solta.ru/alpha/7zSD_301.7z (примерно 65 КБ)
Это то, что получил сегодня vampik
Только не спрашивайте меня, почему их (модулей) так много в этом архиве... Доков пока никаких, окромя приведенного хистори :(
Только вот это http://7zsfx.solta.ru/new/parameters_RU.html можно глянуть

To gora
В следующем официальном выкладывании так и сделаю (про версию)...

SAOPP
01-06-2006, 17:24
Oleg_Sch
C нетерпеньем жду доков!!! :)

vampik
02-06-2006, 13:07
Вот, то, что успел сделать
Кстати, не упомянута ошибка с распаковкой некоторых архивов, из-за которой я собственно в первый раз и обращался.

SAOPP
02-06-2006, 20:52
Oleg_Sch
Вопрос следующий, указывание расширения файла (если он один в папке) не обязательно насколько я понял для того что бы сделать его ярлык?
Я случайно забыл указать расширение, оставив строчку так:
Shortcut="Pu, {%%T\\ProgramFile}, {}, {}, {}, {ProgramName}, {%%T}"
И всё нормально ассоциировалось, глюк это или так и должно быть? :)

gora
05-06-2006, 14:54
Oleg_Sch
Прошу разъяснить работу ключа -gfX. Вот 2 config файлы, с помощью которых созданы соответствующие SFX архивы (версия модуля 1.1.0.258):

;!@Install@!UTF-8!
Title="Установка FineReader 8.0"
BeginPrompt="Вы действительно хотите установить FineReader 8.0?\n1) Если нажать \"Да\", то произойдет интерактивная установка\n2) Если нажать \"Да\", удерживая клавишу \"Shift\", программа\nбудет установлена без вашего мудрого руководства."
AutoInstall="setup.exe /q"
RunProgram="\"setup.exe\""
GUIMode="1"
ExtractTitle="Распаковка..."
ExtractDialogText="Подождите, сейчас будут распакованы установочные файлы.\nУстановка начнется автоматически."
GUIFlags="62"
;!@InstallEnd@!

;!@Install@!UTF-8!
Title="FineReader 8.0 patch"
BeginPrompt="Установка этого патча снимет все триальные ограничения\nи решит проблему с сохранением документов с кирилицей.\n\nВы действительно хотите установить этот патч?"
RunProgram="\"patch.exe\""
InstallPath="%PROGRAMFILES%\\ABBYY FineReader 8.0 Professional Edition"
GUIMode="1"
ExtractTitle="Распаковка..."
ExtractDialogText="Подождите..."
GUIFlags="62"
;!@InstallEnd@!

1. Первый архив с ключами -ai -gf2 ставиться "тихо" без единого окна, а на второй архив ключ -gf2 ни как не действует. Почему так происходит?
2. Более того, при изменении на GUIMode="2" во втором файле, окно BeginPrompt= не исчезает. Этот ключ и флаг не действует на это окно? И почему в первом архиве ключ срабатывает?

zilexa
06-06-2006, 18:07
Hi, I hope the author of the modified 7zS.sfx knows English or someone else.

The modded 7zS.sfx is absolutely great! the reason I still used Winrar was because 7zip didn't had decent (good) SFX options. This modded version is truly a breaktrough.
Why o Why don't you contact the 7-zip creators? They should absolutely use your 7zS.sfx!

I have a question, I want my SFX to extract 3 folders to %programfiles% and then start an .INF file that is located in folder1.

This is the command to start the inf file:
rundll32.exe advpack.dll,LaunchINFSection %programfiles%\DVD-ReBuilder\SHORTCUTS.INF,DefaultInstall
This command WORKS, when I start it from Windows command prompt!

Now this is the Config.txt I use:
;!@Install@!UTF-8!
RunProgram="rundll32.exe advpack.dll,LaunchINFSection %programfiles%\DVD-ReBuilder\SHORTCUTS.INF,DefaultInstall"
InstallPath="%PROGRAMFILES%"
ExtractTitle="Easy Installer: Extracting..."
GUIMode="2"
;!@InstallEnd@!

After extraction it gives an error:
System cannot find given file.

Can you help me? Why does it not work?





I also have a suggestion: the newest official 7zS.sfx supports some new things:
-y switch for installer module (at runtime) specifies quiet mode for extracting.

Installer Config file format
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Config file contains commands for Installer. File begins from string
;!@Install@!UTF-8! and ends with ;!@InstallEnd@!. File must be written
in UTF-8 encoding. File contains string pairs:

ID_String="Value"

ID_String Description

Title Title for messages
BeginPrompt Begin Prompt message
Progress Value can be "yes" or "no". Default value is "yes".
RunProgram Command for executing. Default value is "setup.exe".
Substring %%T will be replaced with path to temporary
folder, where files were extracted
Directory Directory prefix for "RunProgram". Default value is "..\\"
ExecuteFile Name of file for executing
ExecuteParameters Parameters for "ExecuteFile"


You can omit any values.

There are two ways to run program: RunProgram and ExecuteFile.
Use RunProgram, if you want to run some program from .7z archive.
Use ExecuteFile, if you want to open some document from .7z archive or
if you want to execute some command from Windows.

If you use RunProgram and if you specify empty directory prefix: Directory="",
the system searches for the executable file in the following sequence:

1. The directory from which the application (installer) loaded.
2. The temporary folder, where files were extracted.
3. The Windows system directory.

Perhaps you could base any new compile on this official one, or the official authors replace their 7zs with yours :)

Vadikan
06-06-2006, 23:44
zilexa
Did you try to put the command in the batch file and run the batch file intead? It'll run silently if you prefix the command with hidconRunProgram="hidcon:install.cmd"
I also have a suggestion: the newest official 7zS.sfx supports some new things:Looks like these new things are inspired by the modified module :)
Perhaps you could base any new compile on this official oneI'm sure the author (Oleg_Sch) will do this in the next release. His module usually retains all original functionality while adding extra features. the official authors replace their 7zs with yoursI don't think Igor Pavlov is really interested in it. I mean, he may like the module, but would hate to support it :) On the other hand, we aren't ready to provide assistance to international audience, because the English manual is pending...

zilexa
07-06-2006, 00:46
@Vadikan, thanks for replying (in English ;) )
I didn't know about the hidcon (it's not in the README.txt file!) starting a file silently, thats a very good one!

The INF file installs a program and also start a CMD file (silently). But I could change the order, first start cmd file (with the quotes) and let the cmd file run the INF file.

Problem is, I also add Uninstall info in Windows, and for uninstalling, the same CMD file and INF file need to run (silently without windows flashing).
Thats why I choose the order INF file first and let INF file start CMD file silently. But I will now use this order for uninstalling and the other way for installing. Thanks for the help.

the inf file is only used to create shortcuts, by doing this with inf instead of cmd shortcuts will be created correctly even for Russian Windows :) I will release the installer (RunProgram="http://dvd.yardcure.com/") very soon, for who is interested.

Vadikan
07-06-2006, 01:54
zilexa
The modified module is capable of creating shortcuts in certain places (Desktop, Start menu, Programs menu, Startup) either for the current user, all users or both. I think it was documented in old English help file, we should be able to dig it up, but again, at this point translation is not done.

zilexa
12-06-2006, 22:44
Thanks for the info! I found a few posts with code about shortcuts in this thread. But I need the INF file to create a Registry entry as well. Also, from what I've seen I am not sure if the modified module would create the shortcuts in Start Menu\Programs for ALL languages (in Dutch: "Menu Start\Programma's"). The INF file can.

I actually modified my INF file, it can do everything the install requires now very fast, doesn't need the CMD batchfile. So I tried some more tests to let the modified 7zS.sfx module run the INF file, no luck, but I think it must be possible because I found a post with this complex command:
RunProgram="StartX.exe /WAIT \"msiexec /i Adobe7.msi /qn\""
ofcourse in this example it is nonsense, since StartX and msiexec don't need to be called with the modified module. But it seems it can handle these complex commands so it must be able to handle this as well:

;!@Install@!UTF-8!
ExtractTitle="Easy Installer for DVD copying!"
BeginPrompt="Start the DVD-ReBuilder Easy Installer?"
GUIMode="2"
InstallPath="%PROGRAMFILES%"
RunProgram="rundll32.exe advpack.dll,LaunchINFSection %programfiles%\DVD-ReBuilder\SETUP.INF,DefaultInstall"
;!@InstallEnd@! But it doesn't.

I am going to test the official 4.42 7zS.sfx version now.

EDIT
Check this out, the official 7zS.sfx + this config.txt:;!@Install@!UTF-8!
Title="Easy Installer for DVD copying!"
BeginPrompt="Start the DVD-ReBuilder Easy Installer?"
ExecuteFile="C:\Windows\system32\rundll32.exe"
ExecuteParameters="advpack.dll,LaunchINFSection C:\Progra~1\SETUP.INF,DefaultInstall"
;!@InstallEnd@!
This runs the INF file (located in C:\Program Files, Progra~1 is the DOS 8:3 name) just fine!
BUT: if I replace "C:\Windows" for "%systemroot%" and "C:\Progra~1" for "%programfiles%", it fails.
Also I can't use the official since I can't give a path to extract... I hope Oleg_Sch will update his modified module soon :)
Oh but I read on http://unattended.solta.ru the latest versions are dated on 11 July 2005.. does this mean the modified module isn't being developed?

EDIT, thanks Oleg_Sch for all the help, everything works fine :)

desperate
23-06-2006, 11:21
После тихой установки Photoshopa не удаеться временная папка... программа запакована 7-zip'ом
вот мой config.txt

;!@Install@!UTF-8!
RunProgram="hidcon:install.bat"
ExtractTitle="Photoshop CS2"
GUIMode="1"
;!@InstallEnd@!

vek
23-06-2006, 11:38
desperate
Из справки по модулю: "Параметры файла конфигурации" http://tools.oszone.net/7zsfx/parameters_RU.html:
Delete="file_or_folder_name"
Удаляет указанный файл или папку ПОСЛЕ установки.
Если указанное имя является папкой, то она будет удалена вместе со всем содержимым.
ВНИМАНИЕ! Будьте осторожны, чтобы не указать что-нибудь вроде "C:\Windows" ;-)
Переменные среды и относительные пути допустимы. Текущей папкой при выполнении команд 'Delete' является папка, в которой находится файл SFX установки (для остальных команд текущей папкой является папка распаковки).
Команд 'Delete' может быть сколько угодно, обрабатываться они будут в той последовательности, в которой идут в конфигурационном файле.

desperate
23-06-2006, 19:27
а при таком подходе, она удаляеться слишком рано, т.е. батник после распаковки не успевает отработать, а как результат - часть файлов нне найдена

Oleg_Sch
24-06-2006, 01:25
desperate
Я уже как-то тут писал про дочерние процессы, полистайте назад, скорее всего это ваш случай.
Не видя install.bat, предположу, что из него добавляется какая-нибудь информация в реестр, а потом запускается какой-нибудь setup.exe
Чтобы дождаться выполнения этого setup.exe, попробуйте запустить его через start, т.е. в install.bat
start /WAIT setup.exe

Oleg_Sch
26-06-2006, 12:32
To All
Ребята, я тут немножко потерялся, от вас было много вопросов, а ответов я не давал. Просьба: кто еще не разобрался с какими-то проблемами, повторите вопросы. Ближайшую неделю я собираюсь посвятить вам. Постараюсь на все ответить.
Надеюсь на следующей неделе будет новая версия.

gora
26-06-2006, 13:19
Oleg_Sch
1. Повторять пост наверное не целесообразно. Пост №207, вроде нашел ключ -у, но хотел бы услышать ваш ответ.

2. Q 2 Нельзя ли сделать так, чтобы 7zsplit config файл сохранял с расширением .txt ?

A 2. Можно. На следующей неделе. Уточните срок.

3. Может ли 7zsplit извлекать config файл из стандартного (созданного не с помощью вашего модуля) SFX архива ?

Oleg_Sch
26-06-2006, 13:38
gora
Принято.
1. Первый архив с ключами -ai -gf2 ставиться "тихо" без единого окна, а на второй архив ключ -gf2 ни как не действует. Почему так происходит?
2. Более того, при изменении на GUIMode="2" во втором файле, окно BeginPrompt= не исчезает. Этот ключ и флаг не действует на это окно? И почему в первом архиве ключ срабатывает?
1. Ключ gfX (и параметр GUIMode="x") влияет ТОЛЬКО на отображение окна распаковки. Чтобы подавить вывод окна BeginPrompt надо указать -y или -ai
2.
Цитата:
Q 2 Нельзя ли сделать так, чтобы 7zsplit config файл сохранял с расширением .txt ?

A 2. Можно. На следующей неделе.

Уточните срок.

Можно. На следующей неделе. :) Шутка. Тестовый вариант постараюсь дать завтра-послезавтра. Будете тестером :), в смысле ссылка будем в ПМ
3. Может ли 7zsplit извлекать config файл из стандартного (созданного не с помощью вашего модуля) SFX архива ?
Да и текущий вариант должен. Проверю.

gora
26-06-2006, 14:38
Oleg_SchДа и текущий вариант должен. Проверю.У меня не получается. Выдает ошибку
D: \Setup_Windows\SetupDrivers\SetupDrivers. exe:
Coud't find 5FX config. Config file not writed.и следом за нимNothing to do.




© OSzone.net 2001-2012