commit 45be7c57f0d0881a83a414307a5e66f65c64f3c6 Author: Matthew Shillam Date: Wed Oct 17 21:53:36 2018 +0100 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f23e013 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +Duplicati_installer_v0.1.exe +archived_files.7z +InstallUtil.InstallLog +.DS_Store diff --git a/7z.exe b/7z.exe new file mode 100644 index 0000000..d516eb5 Binary files /dev/null and b/7z.exe differ diff --git a/7zSD.sfx b/7zSD.sfx new file mode 100755 index 0000000..c4a710b Binary files /dev/null and b/7zSD.sfx differ diff --git a/7za.dll b/7za.dll new file mode 100644 index 0000000..e95542c Binary files /dev/null and b/7za.dll differ diff --git a/7zxa.dll b/7zxa.dll new file mode 100644 index 0000000..1e3778a Binary files /dev/null and b/7zxa.dll differ diff --git a/Far/7-ZipEng.hlf b/Far/7-ZipEng.hlf new file mode 100644 index 0000000..eafd310 --- /dev/null +++ b/Far/7-ZipEng.hlf @@ -0,0 +1,85 @@ +.Language=English,English +.PluginContents=7-Zip Plugin + +@Contents +$^#7-Zip Plugin 18.05# +$^#Copyright (c) 1999-2018 Igor Pavlov# + This FAR module performs transparent #archive# processing. +Files in the archive are handled in the same manner as if they +were in a folder. + + ~Extracting from the archive~@Extract@ + + ~Add files to the archive~@Update@ + + ~7-Zip Plugin configuration~@Config@ + + + Web site: #www.7-zip.org# + +@Extract +$ #Extracting from the archive# + +In this dialog you may enter extracting mode. + + Path mode + + #Full pathnames# Extract files with full pathnames. + + #Current pathnames# Extract files with all relative paths. + + #No pathnames# Extract files without folder paths. + + + Overwrite mode + + #Ask before overwrite# Ask before overwriting existing files. + + #Overwrite without prompt# Overwrite existing files without prompt. + + #Skip existing files# Skip extracting of existing files. + + + Files + + #Selected files# Extract only selected files. + + #All files# Extract all files from archive. + +@Update +$ #Add files to the archive# + +This dialog allows you to specify options for process of updating archive. + + + Compression method + + #Store# Files will be copied to archive without compression. + + #Normal# Files will be compressed. + + #Maximum# Files will be compressed with method that gives + maximum compression ratio. + + + Update mode + + #Add and replace files# Add all specified files to the archive. + + #Update and add files# Update older files in the archive and add + files that are new to the archive. + + #Freshen existing files# Update specified files in the archive that + are older than the selected disk files. + + #Synchronize files# Replace specified files only if + added files are newer. Always add those + files, which are not present in the + archive. Delete from archive those files, + which are not present on the disk. + +@Config +$ #7-Zip Plugin configuration# + In this dialog you may change following parameters: + + #Plugin is used by default# Plugin is used by default. diff --git a/Far/7-ZipEng.lng b/Far/7-ZipEng.lng new file mode 100644 index 0000000..f717dff --- /dev/null +++ b/Far/7-ZipEng.lng @@ -0,0 +1,211 @@ +.Language=English,English + +"Ok" +"&Cancel" + +"Warning" +"Error" + +"Format" + +"Properties" + +"Yes" +"No" + +"Get password" +"Enter password" + +"Extract" +"&Extract to" + +"Path mode" +"&Full pathnames" +"C&urrent pathnames" +"&No pathnames" + +"Overwrite mode" +"As&k before overwrite" +"&Overwrite without prompt" +"Sk&ip existing files" +"A&uto rename" +"A&uto rename existing files" + +"Extract" +"&Selected files" +"A&ll files" + +"&Password" + +"Extr&act" +"&Cancel" + +"Can not open output file '%s'." + +"Unsupported compression method for '%s'." +"CRC failed in '%s'." +"Data error in '%s'." +"CRC failed in encrypted file '%s'. Wrong password?" +"Data error in encrypted file '%s'. Wrong password?" + +"Confirm File Replace" +"Destination folder already contains processed file." +"Would you like to replace the existing file" +"with this one" + +"bytes" +"modified on" + + +"&Yes" +"Yes to &All" +"&No" +"No to A&ll" +"A&uto rename" +"&Cancel" + + +"Update operations are not supported for this archive." + + +"Delete from archive" +"Delete \"%.40s\" from the archive" +"Delete selected files from the archive" +"Delete %d files from the archive" +"Delete" +"Cancel" + +"Add files to archive" + +"Add to %s a&rchive:" + +"Compression method" +"&Store" +"Fas&test" +"&Fast" +"&Normal" +"&Maximum" +"&Ultra" + +"Update mode" +"A&dd and replace files" +"&Update and add files" +"&Freshen existing files" +"S&ynchronize files" + +"&Add" +"Se&lect archiver" + +"Select archive format" + +"Wait" +"Reading the archive" +"Extracting from the archive" +"Deleting from the archive" +"Updating the archive" + +"Move operation is not supported" + +"7-Zip" +"7-Zip (add to archive)" + +"7-Zip" + +"Plugin is used by default" + +"0" +"1" +"2" +"Path" +"Name" +"Extension" +"Is Folder" +"Size" +"Packed Size" +"Attributes" +"Created" +"Accessed" +"Modified" +"Solid" +"Commented" +"Encrypted" +"Splited Before" +"Splited After" +"Dictionary Size" +"CRC" +"Type" +"Anti" +"Method" +"Host OS" +"File System" +"User" +"Group" +"Block" +"Comment" +"Position" +"Path Prefix" +"Folders" +"Files" +"Version" +"Volume" +"Multivolume" +"Offset" +"Links" +"Blocks" +"Volumes" +"Time Type" +"64-bit" +"Big-endian" +"CPU" +"Physical Size" +"Headers Size" +"Checksum" +"Characteristics" +"Virtual Address" +"ID" +"Short Name" +"Creator Application" +"Sector Size" +"Mode" +"Symbolic Link" +"Error" +"Total Size" +"Free Space" +"Cluster Size" +"Label" +"Local Name" +"Provider" +"NT Security" +"Alternate Stream" +"Aux" +"Deleted" +"Tree" +"SHA-1" +"SHA-256" +"Error Type" +"Errors" +"Errors" +"Warnings" +"Warning" +"Streams" +"Alternate Streams" +"Alternate Streams Size" +"Virtual Size" +"Unpack Size" +"Total Physical Size" +"Volume Index" +"SubType" +"Short Comment" +"Code Page" +"Is not archive type" +"Physical Size can't be detected" +"Zeros Tail Is Allowed" +"Tail Size" +"Embedded Stub Size" +"Link" +"Hard Link" +"iNode" +"Stream ID" +"Read-only" +"Out Name" +"Copy Link" diff --git a/Far/7-ZipFar.dll b/Far/7-ZipFar.dll new file mode 100644 index 0000000..982c4d7 Binary files /dev/null and b/Far/7-ZipFar.dll differ diff --git a/Far/7-ZipFar64.dll b/Far/7-ZipFar64.dll new file mode 100644 index 0000000..7ff73fa Binary files /dev/null and b/Far/7-ZipFar64.dll differ diff --git a/Far/7-ZipRus.hlf b/Far/7-ZipRus.hlf new file mode 100644 index 0000000..4954c66 --- /dev/null +++ b/Far/7-ZipRus.hlf @@ -0,0 +1,84 @@ +.Language=Russian,Russian (Русский) +.PluginContents=Плагин 7-Zip + +@Contents +$^#7-Zip Plugin 18.05# +$^#Copyright (c) 1999-2018 Igor Pavlov# + Этот модуль FAR позволяет работать с #архивами#. Для пользователя +файлы в архивах не отличаются от файлов в папках. + + + ~Распаковка файлов из архива~@Extract@ + + ~Добавление файлов к архиву~@Update@ + + ~Параметры работы с архивами~@Config@ + + + Web site: #www.7-zip.org# + +@Extract +$ #Распаковка файлов из архива# + В этом диалоге вы можете ввести путь для распаковки файлов и задать +режим распаковки. + + Пути + + #Полные пути# Распаковать файлы с полными путями. + + #Относительные пути# Распаковать с относительными путями. + + #Без путей# Распаковать без путей. + + + Перезапись + + #Спрашивать подтверждение# Спрашивать подтверждение на + перезапись существующего файла. + + #Без подтверждения# Замещать существующий файл + без подтверждения. + + #Пропускать# Пропускать существующие файлы. + + + Распаковать + + #Выбранные файлы# Распаковать только выделенные файлы из архива. + + #Все файлы# Распаковать все файлы из архива. + +@Update +$ #Добавление файлов к архиву# + + В этом диалоге вы можете задать режим упаковки. + + + Метод сжатия: + + #Без сжатия# Файлы будут скопированы без сжатия. + + #Нормальное сжатие# Файлы будут сжаты. + + #Максимальное сжатие# Файлы будут сжаты с максимальной + степенью сжатия. + + + Режим изменения: + + #Добавить и заменить# Добавить все выбранные файлы в архив. + + #Обновить и добавить# Обновить устаревшие файлы в архиве и + добавить файлы, которых нет в архиве. + + #Обновить# Обновить устаревшие файлы в архиве. + + #Синхронизировать# Синхронизировать содержимое архива + с выбранными файлами. + + +@Config +$ #Параметры работы с плагином 7-Zip# + В этом диалоге вы можете изменить следующие параметры: + + #Плагин используется по умолчанию# Плагин используется по умолчанию diff --git a/Far/7-ZipRus.lng b/Far/7-ZipRus.lng new file mode 100644 index 0000000..69523b2 --- /dev/null +++ b/Far/7-ZipRus.lng @@ -0,0 +1,211 @@ +.Language=Russian,Russian (Русский) + +"Продолжить" +"&Отменить" + +"Предупреждение" +"Ошибка" + +"Формат" + +"Свойства" + +"Да" +"Нет" + +"Ввод пароля" +"Введите пароль" + +"Распаковка" +"&Распаковать в" + +"Пути" +"По&лные пути" +"О&тносительные пути" +"&Без путей" + +"Перезапись" +"&Спрашивать подтверждение" +"Б&ез подтверждения" +"Проп&ускать" +"Переименовать автом." +"Переим. автом. существ." + +"Распаковать" +"В&ыбранные файлы" +"Все &файлы" + +"&Пароль" + +"Р&аспаковать" +"&Отменить" + +"Невозможно открыть файл '%s'." + +"Неподдерживаемый метод сжатия для файла '%s'." +"Ошибка CRC в '%s'." +"Ошибка в данных в '%s'." +"Ошибка CRC для зашифрованного файла '%s'. Неверный пароль?" +"Ошибка в данных зашифрованного файла '%s'. Неверный пароль?" + +"Подтвердите замену файла" +"Папка уже содержит обрабатываемый файл." +"Заменить существующий файл" +"следующим файлом" + +"байт" +"изменен" + + +"&Да" +"Да для &всех" +"&Нет" +"Нет для в&сех" +"Переименовать автоматически" +"&Отменить" + + +"Для этого архива операции изменения не поддерживаются." + + +"Удаление из архива" +"Удалить \"%.40s\" из архива" +"Удалить выбранные файлы из архива" +"Удалить %d файлов из архива" +"Удаление" +"Отмена" + +"Добавить файлы к архиву" + +"Добавить к %s &архиву" + +"Метод сжатия" +"Без сжатия" +"Скоростной" +"Быстрый" +"Нормальный" +"Максимальный" +"Ультра" + +"Режим изменения" +"Добавить и заменить" +"Обновить и добавить" +"Обновить" +"Синхронизировать" + +"&Добавить" +"А&рхиватор" + +"Выбор архивного формата" + +"Подождите" +"Чтение архива" +"Распаковка" +"Удаление" +"Изменение" + +"Перемещение файлов не поддерживается" + +"7-Zip" +"7-Zip (добавить в архив)" + +"7-Zip configuration" + +"Плагин используется по умолчанию" + +"0" +"1" +"2" +"Путь" +"Имя" +"Расширение" +"Папка" +"Размер" +"Сжатый" +"Атрибуты" +"Создан" +"Открыт" +"Изменен" +"Непрерывный" +"Комментарий" +"Зашифрован" +"Разбит До" +"Разбит После" +"Словарь" +"CRC" +"Тип" +"Анти" +"Метод" +"Система" +"Файловая Система" +"Пользователь" +"Группа" +"Блок" +"Комментарий" +"Позиция" +"Путь" +"Папок" +"Файлов" +"Версия" +"Том" +"Многотомный" +"Смещение" +"Ссылок" +"Блоков" +"Томов" +"Time Type" +"64-bit" +"Big-endian" +"Процессор" +"Физический Размер" +"Размер Заголовков" +"Контр. Сумма" +"Характеристики" +"Виртуальный Адрес" +"ID" +"Короткое имя" +"Программа" +"Размер сектора" +"Режим" +"Символьная Ссылка" +"Ошибка" +"Емкость" +"Свободно" +"Размер кластера" +"Метка" +"Локальное имя" +"Провайдер" +"NT Безопасность" +"Альтернативный Поток" +"Aux" +"Удаленный" +"Дерево" +"SHA-1" +"SHA-256" +"Тип Ошибки" +"Ошибки" +"Ошибки" +"Предупреждения" +"Предупреждение" +"Потоки" +"Альтернативные Потоки" +"Размер Альтернативных потоков" +"Виртуальный Размер" +"Распакованный Размер" +"Общий Физический Размер" +"Номер Тома" +"Подтип" +"Короткий Комментарий" +"Кодовая Страница" +"Is not archive type" +"Physical Size can't be detected" +"Zeros Tail Is Allowed" +"Размер Остатка" +"Размер Встроенного Блока" +"Ссылка" +"Жесткая Ссылка" +"iNode" +"ID Потока" +"Только для чтения" +"Out Name" +"Copy Link" diff --git a/Far/7zToFar.ini b/Far/7zToFar.ini new file mode 100644 index 0000000..aa3f172 --- /dev/null +++ b/Far/7zToFar.ini @@ -0,0 +1,67 @@ +; 7z supporting for MutiArc in Far +; Append the following strings to file +; ..\Program Files\Far\Plugins\MultiArc\Formats\Custom.ini + +[7z] +TypeName=7z +ID=37 7A BC AF 27 1C +IDPos= +IDOnly=1 +Extension=7z +List=7z l -- %%AQ +Start="^-----" +End="^-----" +Format0="yyyy tt dd hh mm ss aaaaa zzzzzzzzzzzz pppppppppppp nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn" +Extract=7z x {-p%%P} -r0 -y -scsDOS -- %%A @%%LQMN +ExtractWithoutPath=7z e {-p%%P} -r0 -y -scsDOS -- %%A @%%LQMN +Test=7z t {-p%%P} -r0 -scsDOS -- %%A @%%LQMN +Delete=7z d {-p%%P} -r0 -ms=off -scsDOS -- %%A @%%LQMN +Add=7z a {-p%%P} -r0 -t7z {%%S} -scsDOS -- %%A @%%LQMN +AddRecurse=7z a {-p%%P} -r0 -t7z {%%S} -scsDOS -- %%A @%%LQMN +AllFilesMask="*" + +[rpm] +TypeName=rpm +ID=ED AB EE DB +IDPos= +IDOnly=1 +Extension=rpm +List=7z l -- %%AQ +Start="^-----" +End="^-----" +Format0="yyyy tt dd hh mm ss aaaaa zzzzzzzzzzzz pppppppppppp nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn" +Extract=7z x {-p%%P} -r0 -y -scsDOS -- %%A @%%LQMN +ExtractWithoutPath=7z e {-p%%P} -r0 -y -scsDOS -- %%A @%%LQMN +Test=7z t {-p%%P} -r0 -scsDOS -- %%A @%%LQMN +AllFilesMask="*" + +[cpio] +TypeName=cpio +ID= +IDPos= +IDOnly=0 +Extension=cpio +List=7z l -- %%AQ +Start="^-----" +End="^-----" +Format0="yyyy tt dd hh mm ss aaaaa zzzzzzzzzzzz pppppppppppp nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn" +Extract=7z x {-p%%P} -r0 -y -scsDOS -- %%A @%%LQMN +ExtractWithoutPath=7z e {-p%%P} -r0 -y -scsDOS -- %%A @%%LQMN +Test=7z t {-p%%P} -r0 -scsDOS -- %%A @%%LQMN +AllFilesMask="*" + +[deb] +TypeName=deb +ID= +IDPos= +IDOnly=0 +Extension=deb +List=7z l -- %%AQ +Start="^-----" +End="^-----" +Format0="yyyy tt dd hh mm ss aaaaa zzzzzzzzzzzz pppppppppppp nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn" +Extract=7z x {-p%%P} -r0 -y -scsDOS -- %%A @%%LQMN +ExtractWithoutPath=7z e {-p%%P} -r0 -y -scsDOS -- %%A @%%LQMN +Test=7z t {-p%%P} -r0 -scsDOS -- %%A @%%LQMN +AllFilesMask="*" + diff --git a/Far/far7z.reg b/Far/far7z.reg new file mode 100644 index 0000000..dd4610d --- /dev/null +++ b/Far/far7z.reg @@ -0,0 +1,67 @@ +REGEDIT4 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Far\Plugins\MultiArc\ZIP] +"Extract"="7z x {-p%%P} -r0 -y {-w%%W} -scsDOS -i@%%LQMN -- %%A" +"ExtractWithoutPath"="7z e {-p%%P} -r0 -y {-w%%W} -scsDOS -i@%%LQMN -- %%A" +"Test"="7z t {-p%%P} -r0 -scsDOS -i@%%LQMN -- %%A" +"Delete"="7z d {-p%%P} -r0 {-w%%W} -scsDOS -i@%%LQMN -- %%A" +"Add"="7z a {-p%%P} -r0 -tzip {-w%%W} {%%S} -scsDOS -i@%%LQMN -- %%A" +"AddRecurse"="7z a {-p%%P} -r0 -tzip {-w%%W} {%%S} -scsDOS -i@%%LQMN -- %%A" +"AllFilesMask"="*" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Far\Plugins\MultiArc\TAR] +"Extract"="7z x -r0 -y {-w%%W} -scsDOS -i@%%LQMN -- %%A" +"ExtractWithoutPath"="7z e -r0 -y {-w%%W} -scsDOS -i@%%LQMN -- %%A" +"Test"="7z t -r0 -scsDOS -i@%%LQMN -- %%A" +"Delete"="7z d -r0 {-w%%W} -scsDOS -i@%%LQMN -- %%A" +"Add"="7z a -r0 -y -ttar {-w%%W} {%%S} -scsDOS -i@%%LQMN -- %%A" +"AddRecurse"="7z a -r0 -y -ttar {-w%%W} {%%S} -scsDOS -i@%%LQMN -- %%A" +"AllFilesMask"="*" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Far\Plugins\MultiArc\GZIP] +"Extract"="7z x -r0 -y {-w%%W} -scsDOS -i@%%LQMN -- %%A" +"ExtractWithoutPath"="7z e -r0 -y {-w%%W} -scsDOS -i@%%LQMN -- %%A" +"Test"="7z t -r0 -scsDOS -i@%%LQMN -- %%A" +"Delete"="7z d -r0 {-w%%W} -scsDOS -i@%%LQMN -- %%A" +"Add"="7z a -r0 -tgzip {-w%%W} {%%S} -scsDOS -i@%%LQMN -- %%A" +"AddRecurse"="7z a -r0 -tgzip {-w%%W} {%%S} -scsDOS -i@%%LQMN -- %%A" +"AllFilesMask"="*" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Far\Plugins\MultiArc\BZIP] +"Extract"="7z x -r0 -y {-w%%W} -scsDOS -i@%%LQMN -- %%A" +"ExtractWithoutPath"="7z e -r0 -y {-w%%W} -scsDOS -i@%%LQMN -- %%A" +"Test"="7z t -r0 -scsDOS -i@%%LQMN -- %%A" +"Delete"="7z d -r0 {-w%%W} -scsDOS -i@%%LQMN -- %%A" +"Add"="7z a -r0 -tbzip2 {-w%%W} {%%S} -scsDOS -i@%%LQMN -- %%A" +"AddRecurse"="7z a -r0 -tbzip2 {-w%%W} {%%S} -scsDOS -i@%%LQMN -- %%A" +"AllFilesMask"="*" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Far\Plugins\MultiArc\ARJ] +"Extract"="7z x -r0 -y {-w%%W} -scsDOS -i@%%LQMN -- %%A" +"ExtractWithoutPath"="7z e -r0 -y {-w%%W} -scsDOS -i@%%LQMN -- %%A" +"Test"="7z t -r0 -scsDOS -i@%%LQMN -- %%A" +"AllFilesMask"="*" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Far\Plugins\MultiArc\CAB] +"Extract"="7z x -r0 -y {-w%%W} -scsDOS -i@%%LQMN -- %%A" +"ExtractWithoutPath"="7z e -r0 -y {-w%%W} -scsDOS -i@%%LQMN -- %%A" +"Test"="7z t -r0 -scsDOS -i@%%LQMN -- %%A" +"AllFilesMask"="*" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Far\Plugins\MultiArc\LZH] +"Extract"="7z x -r0 -y {-w%%W} -scsDOS -i@%%LQMN -- %%A" +"ExtractWithoutPath"="7z e -r0 -y {-w%%W} -scsDOS -i@%%LQMN -- %%A" +"Test"="7z t -r0 -scsDOS -i@%%LQMN -- %%A" +"AllFilesMask"="*" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Far\Plugins\MultiArc\RAR] +"Extract"="7z x -r0 -y {-w%%W} -scsDOS -i@%%LQMN -- %%A" +"ExtractWithoutPath"="7z e -r0 -y {-w%%W} -scsDOS -i@%%LQMN -- %%A" +"Test"="7z t -r0 -scsDOS -i@%%LQMN -- %%A" +"AllFilesMask"="*" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Far\Plugins\MultiArc\Z(Unix)] +"Extract"="7z x -r0 -y {-w%%W} -scsDOS -i@%%LQMN -- %%A" +"ExtractWithoutPath"="7z e -r0 -y {-w%%W} -scsDOS -i@%%LQMN -- %%A" +"Test"="7z t -r0 -scsDOS -i@%%LQMN -- %%A" +"AllFilesMask"="*" diff --git a/Far/far7z.txt b/Far/far7z.txt new file mode 100644 index 0000000..ab83b86 --- /dev/null +++ b/Far/far7z.txt @@ -0,0 +1,67 @@ +7-Zip Plugin for FAR Manager +---------------------------- + +FAR Manager is a file manager working in text mode. +You can download "FAR Manager" from site: +http://www.farmanager.com + +Files: + +far7z.txt - This file +far7z.reg - Regisrty file for MultiArc Plugin +7zToFar.ini - Supporting 7z for MultiArc Plugin +7-ZipFar.dll - 7-Zip Plugin for FAR Manager +7-ZipEng.hlf - Help file in English for FAR Manager +7-ZipRus.hlf - Help file in Russian for FAR Manager +7-ZipEng.lng - Plugin message strings in English for FAR Manager +7-ZipRus.lng - Plugin message strings in Russian for FAR Manager + +There are two ways to use 7-Zip with FAR Manager: + + 1) Via 7-Zip FAR Plugin (it's recommended way). + 2) Via standard MultiArc Plugin. + + +7-Zip FAR Plugin +~~~~~~~~~~~~~~~~ + +7-Zip FAR Plugin is first level plugin for FAR Manager, like MultiArc plugin. +It very fast extracts and updates files in archive, since it doesn't use +external programs. It supports all formats supported by 7-Zip: +7z, ZIP, RAR, CAB, ARJ, GZIP, BZIP2, Z, TAR, CPIO, RPM and DEB. + +To install 7-Zip FAR Plugin: + 1) Create "7-Zip" folder in ...\Program Files\Far\Plugins folder. + 2) Copy all files from "FAR" folder of this package to created folder. + 3) Install 7-Zip, or copy 7z.dll from 7-Zip to Program Files\Far\Plugins\7-Zip\ + 4) Restart FAR. + +You can open archives with one of the following ways: + * Pressing Enter. + * Pressing Ctrl-PgDown. + * Pressing F11 and selecting 7-Zip item. + + +You can create new archives with 7-Zip by pressing F11 and +selecting 7-Zip (add to archive) item. + +If you think that some operations with archives is better to do with MultiArc Plugin, +you can disable 7-Zip plugin via Options / Pligin configuration / 7-Zip. In such mode +opening archives by pressing Enter and Ctrl-PgDown will start MultiArc Plugin. And +if you want to open archive with 7-Zip, press F11 and select 7-Zip item. + + +Using command line 7-Zip via MultiArc Plugin +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +If you want to use 7-Zip via MultiArc Plugin, you must +register file far7z.reg. + +If you want to use 7z archives via MultiArc Plugin, you must +append contents of file Far\7zToFar.ini to file +..\Program Files\Far\Plugins\MultiArc\Formats\Custom.ini. + + +If you want to cancel using 7-Zip by MultiArc, just remove lines that contain +7-Zip (7z) program name from HKEY_LOCAL_MACHINE\SOFTWARE\Far\Plugins\MultiArc\ZIP +registry key. diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/config.txt b/config.txt new file mode 100755 index 0000000..7802a00 --- /dev/null +++ b/config.txt @@ -0,0 +1,5 @@ +;!@Install@!UTF-8! + Title="My Dental Backup Installer (t00t)" + BeginPrompt="Run Mats Mad cool setup script?" + ExecuteFile="setup_duplicati.bat" +;!@InstallEnd@! \ No newline at end of file diff --git a/create_zip.bat b/create_zip.bat new file mode 100755 index 0000000..7ba4c82 --- /dev/null +++ b/create_zip.bat @@ -0,0 +1,24 @@ +@echo off +title %~nx0 +set local +cls + +:START + echo. + echo Copyright -- Matthew Shillam -- 2018 + echo. + echo --------------------------------------------------------------------------- + echo %date% %time% - Install started + echo --------------------------------------------------------------------------- + echo. + +start /wait 7z.exe a archived_files.7z .\duplicati_install_script\* -r -x!*.git -x!.git -x!.DS_Store -x!Icon -x!Thumbs.db + +echo. +echo Archived all files now creating the installer.... +echo. +copy /b 7zSD.sfx + config.txt + archived_files.7z Duplicati_installer_v0.1.exe +echo. +echo All done! + +cmd /k \ No newline at end of file diff --git a/duplicati_install_script/bin/Duplicati 2 start.lnk b/duplicati_install_script/bin/Duplicati 2 start.lnk new file mode 100644 index 0000000..e9ffee7 Binary files /dev/null and b/duplicati_install_script/bin/Duplicati 2 start.lnk differ diff --git a/duplicati_install_script/bin/WinSCP.com b/duplicati_install_script/bin/WinSCP.com new file mode 100755 index 0000000..483247c Binary files /dev/null and b/duplicati_install_script/bin/WinSCP.com differ diff --git a/duplicati_install_script/bin/WinSCP.exe b/duplicati_install_script/bin/WinSCP.exe new file mode 100755 index 0000000..7ed2f83 Binary files /dev/null and b/duplicati_install_script/bin/WinSCP.exe differ diff --git a/duplicati_install_script/bin/WinSCP.ini b/duplicati_install_script/bin/WinSCP.ini new file mode 100644 index 0000000..474844a --- /dev/null +++ b/duplicati_install_script/bin/WinSCP.ini @@ -0,0 +1,5 @@ +[Configuration] + +[Configuration\Interface\Updates] +ConsoleVersion=5.13.4 + diff --git a/duplicati_install_script/bin/duplicati-2.0.3.11_canary_2018-09-05-x64.msi b/duplicati_install_script/bin/duplicati-2.0.3.11_canary_2018-09-05-x64.msi new file mode 100644 index 0000000..2e71a1f Binary files /dev/null and b/duplicati_install_script/bin/duplicati-2.0.3.11_canary_2018-09-05-x64.msi differ diff --git a/duplicati_install_script/bin/duplicati_client.exe b/duplicati_install_script/bin/duplicati_client.exe new file mode 100755 index 0000000..83d0039 Binary files /dev/null and b/duplicati_install_script/bin/duplicati_client.exe differ diff --git a/duplicati_install_script/bin/id_deployer2.ppk b/duplicati_install_script/bin/id_deployer2.ppk new file mode 100644 index 0000000..5d4d7a8 --- /dev/null +++ b/duplicati_install_script/bin/id_deployer2.ppk @@ -0,0 +1,12 @@ +PuTTY-User-Key-File-2: ecdsa-sha2-nistp521 +Encryption: none +Comment: imported-openssh-key +Public-Lines: 4 +AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBAFR2PSqwv5j +H+Wpvj3okPYZg4GP5rUXPsWsiziKd9eJ/NttXDwNkqN4WYqt6wuWFPziTu6Bwj+a +NNdd/DfAkwvvjwCRRDvts3NB454CHD+Ik1m5y0PBCCsoXIeoiUcFncKW7S3mSVG2 +bBsCp9zHT1QF1rde6rfwZijqbAiMaebMuZ8SWA== +Private-Lines: 2 +AAAAQgDZW9jbtUgRR5bhLMHbyG/mLqI65dUV8lV79qnWRWlFpxu2hOvqsCIkG9Uc +cg3bF3G29M/Z4DjErDdPXEvsh4f0cQ== +Private-MAC: 7f4cf324686fb7a4349e473bd738f1eabb95f309 diff --git a/duplicati_install_script/setup_duplicati.bat b/duplicati_install_script/setup_duplicati.bat new file mode 100644 index 0000000..94c45fe --- /dev/null +++ b/duplicati_install_script/setup_duplicati.bat @@ -0,0 +1,156 @@ +@echo off +title %~nx0 +set local +cls + + +:START + echo. + echo Copyright -- Matthew Shillam -- 2018 + echo. + echo --------------------------------------------------------------------------- + echo %date% %time% - Duplicati Install started + echo --------------------------------------------------------------------------- + echo. + + set RESTART=0 + + + +:GETOSVERSION + + SET OSVersion=Unknown + + VER | FINDSTR /L "5.0" > NUL + IF %ERRORLEVEL% EQU 0 SET OSversion="2000"& SET OSDescription="Windows 2000" + + VER | FINDSTR /L "5.1" > NUL + IF %ERRORLEVEL% EQU 0 SET OSversion="XP"& SET OSDescription="Windows XP" + + VER | FINDSTR /L "5.2" > NUL + IF %ERRORLEVEL% EQU 0 SET OSversion="2003"& SET OSDescription="Windows XP Pro x64 | Windows Server 2003" + + VER | FINDSTR /L "6.0" > NUL + IF %ERRORLEVEL% EQU 0 SET OSversion="Vista"& SET OSDescription="Windows Vista | Windows Server 2008" + + VER | FINDSTR /L "6.1" > NUL + IF %ERRORLEVEL% EQU 0 SET OSversion="7"& SET OSDescription="Windows 7 | Windows Server 2008 R2" + + VER | FINDSTR /L "6.2" > NUL + IF %ERRORLEVEL% EQU 0 SET OSversion="8"& SET OSDescription="Windows 8 | Windows Server 2012" + + VER | FINDSTR /L "6.3" > NUL + IF %ERRORLEVEL% EQU 0 SET OSversion="8.1"& SET OSDescription="Windows 8.1 | Windows Server 2012 R2" + + VER | FINDSTR /L "10.0" > NUL + IF %ERRORLEVEL% EQU 0 SET OSversion="10"& SET OSDescription="Windows 10 | Windows Server 2016" + + IF %OSVersion%==Unknown ( + + echo. + echo Unable to Determine your operating system, it must be old! + + + ) ELSE ( + + echo. + echo You appear to be using %OSDescription% + ) + + + +:DUPLICATIINSTALL + echo . + echo Installing duplicati binary... + echo Ensure that you deselect run at startup to ensure service works proper! + echo Also! Ensure you do not run duplicati after install has completed!! + start /wait msiexec /i %~dp0bin\duplicati-2.0.3.11_canary_2018-09-05-x64.msi + goto GETPROGRAMPATH + + + +:GETPROGRAMPATH + + SET NUL=NUL + IF "%OS%"=="Windows_NT" SET NUL= + echo. + echo --------------------------------------------------------------------------- + IF EXIST "C:\Program Files (x86)\Duplicati 2\%NUL%" ( SET "PROGRAMFOLDER=C:\Program Files (x86)\Duplicati 2\" )& echo Program path is: "C:\Program Files (x86)\Duplicati 2\" + IF EXIST "C:\Program Files\Duplicati 2\%NUL%" (SET "PROGRAMFOLDER=C:\Program Files\Duplicati 2\")& echo Program path is: "C:\Program Files\Duplicati 2\" + REM IF "%PROGRAMFOLDER%" == "" echo Software was not installed... time to debug!& GOTO EXITNOW + + + +:SETUPSERVICE + + set "execpath=%PROGRAMFOLDER%\Duplicati.WindowsService.exe" + "%execpath%" install --webservice-interface=127.0.0.1 --webservice-port=8200 --portable-mode + echo . + NET START Duplicati + + + +:GETCLIENTNAME + echo Enter client name ( In email eg: client-mat-is-ace )? : + set /p CLIENTNAME= + echo. + echo --------------------------------------------------------------------------- + echo Ok -- %CLIENTNAME% it is... + echo --------------------------------------------------------------------------- + echo. + goto GETSCHEDULES + + + +:GETSCHEDULES + set FILEXRAYS="schedule-xrays-%CLIENTNAME%.json" + set FILEDATABASE="schedule-database-%CLIENTNAME%.json" + set FILEDOCUMENTS="schedule-documents-%CLIENTNAME%.json" + + %~dp0bin\winscp.com /ini=nul /command ^ + "open sftp://mrdownloader@mydentalbackup.co.uk:5349/ -hostkey=""ssh-ed25519 256 PTL6imOWXdhJQEuBThd8yfozcuOtOxpKEZs0hOGZh3c="" -privatekey=""%~dp0bin\id_deployer2.ppk""" ^ + "cd /home/mydentalbackup.co.uk/files" ^ + "lcd %~dp0bin" ^ + "get %FILEDATABASE%" "get %FILEDOCUMENTS%" "get %FILEXRAYS%" ^ + "close" ^ + "exit" + + goto ADDSCHEDULES + + + +:ADDSCHEDULES + + %~dp0bin\duplicati_client.exe login http://127.0.0.1:8200 + %~dp0bin\duplicati_client.exe create backup %~dp0bin\schedule-database-%CLIENTNAME%.json + %~dp0bin\duplicati_client.exe create backup %~dp0bin\schedule-documents-%CLIENTNAME%.json + %~dp0bin\duplicati_client.exe create backup %~dp0bin\schedule-xrays-%CLIENTNAME%.json + +goto SORTCHORTCUTS + + +:SORTCHORTCUTS + + echo Removing shortcut from desktop... + echo. + del "%USERPROFILE%\Desktop\Duplicati 2.lnk" + echo. + echo Adding new shortcut to desktop + xcopy "%~dp0bin\Duplicati 2 start.lnk" %USERPROFILE%\Desktop + + +:EXITNOW + echo. + echo. + echo --------------------------------------------------------------------------- + echo. + echo Ok -- if all went well you should see no errors above... Scroll up + echo and check!!! ( yes you John! ) + echo. + echo --------------------------------------------------------------------------- + + echo. & echo %date% %time% - %~nx0 ended & echo. + +Cmd /k + +:EXITCLOSE \ No newline at end of file diff --git a/x64/7za.dll b/x64/7za.dll new file mode 100644 index 0000000..95dcc51 Binary files /dev/null and b/x64/7za.dll differ diff --git a/x64/7za.exe b/x64/7za.exe new file mode 100644 index 0000000..d3055c8 Binary files /dev/null and b/x64/7za.exe differ diff --git a/x64/7zxa.dll b/x64/7zxa.dll new file mode 100644 index 0000000..5d34bf8 Binary files /dev/null and b/x64/7zxa.dll differ