From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- .../App/AppInfo/Launcher/7-ZipPortable.ini | 56 +++++++++++++++++++++ .../App/AppInfo/Launcher/Custom.nsh | 37 ++++++++++++++ .../App/AppInfo/Launcher/splash.jpg | Bin 0 -> 31500 bytes .../7-ZipPortable_22.01/App/AppInfo/appicon.ico | Bin 0 -> 90126 bytes .../App/AppInfo/appicon_128.png | Bin 0 -> 4892 bytes .../7-ZipPortable_22.01/App/AppInfo/appicon_16.png | Bin 0 -> 527 bytes .../7-ZipPortable_22.01/App/AppInfo/appicon_32.png | Bin 0 -> 1051 bytes .../7-ZipPortable_22.01/App/AppInfo/appicon_75.png | Bin 0 -> 2244 bytes .../7-ZipPortable_22.01/App/AppInfo/appinfo.ini | 34 +++++++++++++ .../App/AppInfo/pac_installer_log.ini | 8 +++ 10 files changed, 135 insertions(+) create mode 100644 BuildTools/7-ZipPortable_22.01/App/AppInfo/Launcher/7-ZipPortable.ini create mode 100644 BuildTools/7-ZipPortable_22.01/App/AppInfo/Launcher/Custom.nsh create mode 100644 BuildTools/7-ZipPortable_22.01/App/AppInfo/Launcher/splash.jpg create mode 100644 BuildTools/7-ZipPortable_22.01/App/AppInfo/appicon.ico create mode 100644 BuildTools/7-ZipPortable_22.01/App/AppInfo/appicon_128.png create mode 100644 BuildTools/7-ZipPortable_22.01/App/AppInfo/appicon_16.png create mode 100644 BuildTools/7-ZipPortable_22.01/App/AppInfo/appicon_32.png create mode 100644 BuildTools/7-ZipPortable_22.01/App/AppInfo/appicon_75.png create mode 100644 BuildTools/7-ZipPortable_22.01/App/AppInfo/appinfo.ini create mode 100644 BuildTools/7-ZipPortable_22.01/App/AppInfo/pac_installer_log.ini (limited to 'BuildTools/7-ZipPortable_22.01/App/AppInfo') diff --git a/BuildTools/7-ZipPortable_22.01/App/AppInfo/Launcher/7-ZipPortable.ini b/BuildTools/7-ZipPortable_22.01/App/AppInfo/Launcher/7-ZipPortable.ini new file mode 100644 index 00000000..0aaa98ef --- /dev/null +++ b/BuildTools/7-ZipPortable_22.01/App/AppInfo/Launcher/7-ZipPortable.ini @@ -0,0 +1,56 @@ +[Launch] +ProgramExecutable=7-Zip\7zFM.exe +ProgramExecutable64=7-Zip64\7zFM.exe +DirectoryMoveOK=yes +SupportsUNC=yes + +[Activate] +Registry=true + +[RegistryKeys] +7zip_portable=HKCU\Software\7-zip + +[FileWrite1] +Type=INI +File=%PAL:DataDir%\settings\7zip_portable.reg +Section=HKEY_CURRENT_USER\Software\7-zip +Key='"Lang"' +Value='"%PAL:LanguageCustom%"' + +[FileWrite2] +Type=Replace +File=%PAL:DataDir%\settings\7zip_portable.reg +Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:DoubleBackslash%\\ +Replace=%PAL:Drive%%PAL:PackagePartialDir:DoubleBackslash%\\ + +[FileWrite3] +Type=Replace +File=%PAL:DataDir%\settings\7zip_portable.reg +Find=%PAL:LastDrive%%PAL:LastPortableAppsBaseDir:DoubleBackslash%\\ +Replace=%PAL:Drive%%PAL:PortableAppsBaseDir:DoubleBackslash%\\ + +[FileWrite4] +Type=Replace +File=%PAL:DataDir%\settings\7zip_portable.reg +Find=%PAL:LastDrive%\\ +Replace=%PAL:Drive%\\ + +[FileWrite5] +Type=Replace +File=%PAL:DataDir%\settings\7zip_portable.reg +Find=%PAL:LastDriveHex%,00,3a,00 +Replace=%PAL:DriveHex%,00,3a,00 + +[Language] +Base=%PortableApps.comLanguageCode% +CheckIfExists=%FullAppDir%\Lang\%PAL:LanguageCustom%.txt +DefaultIfNotExists=en + +[LanguageStrings] +ar-sa=ar + +[LanguageFile] +Type=ConfigRead +File=%PAL:DataDir%\settings\7zip_portable.reg +Entry='"Lang"="' +TrimRight=" \ No newline at end of file diff --git a/BuildTools/7-ZipPortable_22.01/App/AppInfo/Launcher/Custom.nsh b/BuildTools/7-ZipPortable_22.01/App/AppInfo/Launcher/Custom.nsh new file mode 100644 index 00000000..0dd31d56 --- /dev/null +++ b/BuildTools/7-ZipPortable_22.01/App/AppInfo/Launcher/Custom.nsh @@ -0,0 +1,37 @@ +${SegmentFile} + +${Segment.OnInit} + ; Borrowed the following from PAL 2.2, Remove on release of PAL 2.2 + ; Work out if it's 64-bit or 32-bit + System::Call kernel32::GetCurrentProcess()i.s + System::Call kernel32::IsWow64Process(is,*i.r0) + ${If} $0 == 0 + StrCpy $Bits 32 + Rename "$EXEDIR\App\7-Zip64\Lang" "$EXEDIR\App\7-Zip\Lang" + ${Else} + StrCpy $Bits 64 + Rename "$EXEDIR\App\7-Zip\Lang" "$EXEDIR\App\7-Zip64\Lang" + ${EndIf} +!macroend + +${SegmentInit} + ${If} $Bits = 64 + ${SetEnvironmentVariablesPath} FullAppDir "$EXEDIR\App\7-Zip64" + ${Else} + ${SetEnvironmentVariablesPath} FullAppDir "$EXEDIR\App\7-Zip" + ${EndIf} +!macroend + +${SegmentPre} + ${Registry::StrToHex} ":" $9 ;$9 now contains the ASCII code for : + ExpandEnvStrings $0 "%PAL:Drive%" + ${Registry::StrToHex} $0 $1 ;$1 now contains the ASCII code for current drive + ${WordReplace} $1 $9 "" "+" $2 + + ExpandEnvStrings $3 "%PAL:LastDrive%" + ${Registry::StrToHex} $3 $4 ;$4 now contains the ASCII code for last drive + ${WordReplace} $4 $9 "" "+" $5 + + System::Call 'Kernel32::SetEnvironmentVariable(t, t) i("PAL:DriveHex", "$2").r0' + System::Call 'Kernel32::SetEnvironmentVariable(t, t) i("PAL:LastDriveHex", "$5").r0' +!macroend \ No newline at end of file diff --git a/BuildTools/7-ZipPortable_22.01/App/AppInfo/Launcher/splash.jpg b/BuildTools/7-ZipPortable_22.01/App/AppInfo/Launcher/splash.jpg new file mode 100644 index 00000000..6c47b6a1 Binary files /dev/null and b/BuildTools/7-ZipPortable_22.01/App/AppInfo/Launcher/splash.jpg differ diff --git a/BuildTools/7-ZipPortable_22.01/App/AppInfo/appicon.ico b/BuildTools/7-ZipPortable_22.01/App/AppInfo/appicon.ico new file mode 100644 index 00000000..1aa8c8fd Binary files /dev/null and b/BuildTools/7-ZipPortable_22.01/App/AppInfo/appicon.ico differ diff --git a/BuildTools/7-ZipPortable_22.01/App/AppInfo/appicon_128.png b/BuildTools/7-ZipPortable_22.01/App/AppInfo/appicon_128.png new file mode 100644 index 00000000..9456d8b9 Binary files /dev/null and b/BuildTools/7-ZipPortable_22.01/App/AppInfo/appicon_128.png differ diff --git a/BuildTools/7-ZipPortable_22.01/App/AppInfo/appicon_16.png b/BuildTools/7-ZipPortable_22.01/App/AppInfo/appicon_16.png new file mode 100644 index 00000000..57ea4a0b Binary files /dev/null and b/BuildTools/7-ZipPortable_22.01/App/AppInfo/appicon_16.png differ diff --git a/BuildTools/7-ZipPortable_22.01/App/AppInfo/appicon_32.png b/BuildTools/7-ZipPortable_22.01/App/AppInfo/appicon_32.png new file mode 100644 index 00000000..f894f2ac Binary files /dev/null and b/BuildTools/7-ZipPortable_22.01/App/AppInfo/appicon_32.png differ diff --git a/BuildTools/7-ZipPortable_22.01/App/AppInfo/appicon_75.png b/BuildTools/7-ZipPortable_22.01/App/AppInfo/appicon_75.png new file mode 100644 index 00000000..7b859ea6 Binary files /dev/null and b/BuildTools/7-ZipPortable_22.01/App/AppInfo/appicon_75.png differ diff --git a/BuildTools/7-ZipPortable_22.01/App/AppInfo/appinfo.ini b/BuildTools/7-ZipPortable_22.01/App/AppInfo/appinfo.ini new file mode 100644 index 00000000..5b38c414 --- /dev/null +++ b/BuildTools/7-ZipPortable_22.01/App/AppInfo/appinfo.ini @@ -0,0 +1,34 @@ +[Format] +Type=PortableAppsFormat +Version=3.5 + +[Details] +Name=7-Zip Portable +AppId=7-ZipPortable +Publisher=7-Zip Team & PortableApps.com +Homepage=https://portableapps.com/apps/utilities/7-zip_portable +Category=Utilities +Description=File archiver with support for 7z, ZIP, GZIP, BZIP2, TAR, RAR, etc +Language=Multilingual + +[License] +Shareable=true +OpenSource=true +Freeware=true +CommercialUse=true + +[Version] +PackageVersion=22.1.0.0 +DisplayVersion=22.01 + +[Control] +BaseAppID=%BASELAUNCHERPATH%\App\7-Zip\7zFM.exe +BaseAppID64=%BASELAUNCHERPATH%\App\7-Zip64\7zFM.exe +Icons=1 +Start=7-ZipPortable.exe + +[Associations] +FileTypes=001,7z,arj,bz2,bzip2,cab,cpio,deb,dmg,fat,gz,gzip,hfs,iso,lha,lzh,lzma,ntfs,rar,rpm,squashfs,swm,tar,taz,tbz,tbz2,tgz,tpz,txz,vhd,wim,xarmxz,z,zip + +[FileTypeIcons] +AllOtherIcons=archive diff --git a/BuildTools/7-ZipPortable_22.01/App/AppInfo/pac_installer_log.ini b/BuildTools/7-ZipPortable_22.01/App/AppInfo/pac_installer_log.ini new file mode 100644 index 00000000..f2cb4332 --- /dev/null +++ b/BuildTools/7-ZipPortable_22.01/App/AppInfo/pac_installer_log.ini @@ -0,0 +1,8 @@ +[PortableApps.comInstaller] +Info1=Do not delete or modify this file. It may be necessary for this app to function correctly. +Info2=This file was generated by the PortableApps.com Installer wizard. +Info3=This file should be excluded from git repositories by using the appropriate gitignore. +Run=false +WizardVersion=3.7.0.0 +PackagingDate=2022-07-16 +PackagingTime=20:23:59 -- cgit