Initial community commit

This commit is contained in:
Jef
2024-09-24 14:54:57 +02:00
parent 537bcbc862
commit 20d28e80a5
16810 changed files with 4640254 additions and 2 deletions

View File

@ -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="

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 527 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -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

View File

@ -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