[main]
Title=7zip V 9.x
Author=JFX, Kare
Level=6
Description=Add 7zip compression Tool
Selected=True
Version=9
Date=28.11.2019

[Interface]
pCheckBox1=False,Run from ram (boot.wim),0,3,12,5,150,18
pFrame1=Shortcuts,0,0,0,10,40,200,105
pCheckBox2=True,Desktop,0,22,30,62,120,20
pCheckBox3=True,Startmenu,0,21,30,87,140,20
pTextBox1=.,TextBox,0,2,48,113,150,50

pCheckBox5=False,Associate with .iso files,0,0,12,160,160,18

tEcho_1=Copying program files...

[Interface.07]
Description=Fügt den 7-Zip Komprimierer hinzu
pCheckBox1=False,Starte vom Ram (boot.wim),0,3,12,5,150,18
pFrame1=Verknüpfungen,0,0,0,10,40,200,105
pCheckBox2=False,Desktop-Eintrag,0,22,30,62,120,20
pCheckBox3=True,Startmenü-Eintrag,0,21,30,87,140,20
pTextBox1=.,TextBox,0,2,48,113,150,50

pcheckbox5=False,Verknüpfe mit .iso Datei,0,0,12,160,160,18
techo_1=Programm-Dateien werden kopiert...

[Process]

RunFromRAM,%pCheckBox1%

set,%ProgramTitle%,7-Zip
set,%ProgramEXE%,7zFM.exe
set,%ProgramFolder%,7-Zip
set,%prgdir%,%Target_prog%\%ProgramFolder%

Echo,%tEcho_1%
If,%pCheckBox2%,=,True,then,Add_Shortcut,Desktop,".","%PE_Programs%\%ProgramFolder%\%ProgramEXE%",%ProgramTitle%
If,%pCheckBox3%,=,True,then,Add_Shortcut,StartMenu,%pTextBox1%,"%PE_Programs%\%ProgramFolder%\%ProgramEXE%",%ProgramTitle%

DirMake,%Target_Prog%\7-Zip\Lang
FileCopy,%appsdir%\7z\Files\7-Zip\7zFM.exe,%prgdir%\
FileCopy,%appsdir%\7z\Files\7-Zip\7zG.exe,%prgdir%\
FileCopy,%appsdir%\7z\Files\7-Zip\7z.dll,%prgdir%\
FileCopy,%appsdir%\7z\Files\7-Zip\7z.exe,%prgdir%\
FileCopy,%appsdir%\7z\Files\7-Zip\7z.sfx,%prgdir%\
FileCopy,%appsdir%\7z\Files\7-Zip\7zCon.sfx,%prgdir%\
FileCopy,%appsdir%\7z\Files\7-Zip\7-zip.dll,%prgdir%\
FileCopy,%appsdir%\7z\Files\7-Zip\7-zip.chm,%prgdir%\
FileCopy,%appsdir%\7z\Files\7-Zip\descript.ion,%prgdir%\

//language
set,%lng%,""
if,ExistFile,%appsdir%\7z\Files\7-Zip\lang\%distlang%.txt,Then
  filecopy,%appsdir%\7z\Files\7-Zip\lang\%distlang%.txt,%prgdir%\lang\
  Set,%lng%,%distlang%
Else
  string,%tmp%,left,%distlang%,2
  if,ExistFile,%appsdir%\7z\Files\7-Zip\lang\%tmp%.txt,Then
    Set,%lng%,%tmp%
    Filecopy,%appsdir%\7z\Files\7-Zip\lang\%lng%.txt,%prgdir%\lang\
  end
end

RegLoad,%RegUser%,PE-USER
RegLoad,%RegSoftware%,PE-SOFTWARE
RegWrite,HKLM,0x1,PE-USER\Software\7-Zip,Path,%PE_programs%\%ProgramFolder%\
RegWrite,HKLM,0x1,PE-USER\Software\7-Zip,Lang,%lng%
RegWrite,HKLM,0x4,PE-USER\Software\7-Zip,LargePages,0
RegWrite,HKLM,0x1,PE-USER\Software\7-Zip\FM,Editor,
RegWrite,HKLM,0x1,PE-USER\Software\7-Zip\FM,Diff,
RegWrite,HKLM,0x4,PE-USER\Software\7-Zip\FM,ShowDots,1
RegWrite,HKLM,0x4,PE-USER\Software\7-Zip\FM,ShowSystemMenu,0
RegWrite,HKLM,0x4,PE-USER\Software\7-Zip\FM,ShowRealFileIcons,0
RegWrite,HKLM,0x4,PE-USER\Software\7-Zip\FM,FullRow,0
RegWrite,HKLM,0x4,PE-USER\Software\7-Zip\FM,ShowGrid,0
RegWrite,HKLM,0x4,PE-USER\Software\7-Zip\FM,AlternativeSelection,0
RegWrite,HKLM,0x4,PE-USER\Software\7-Zip\FM,SingleClick,0
RegWrite,HKLM,0x3,PE-USER\Software\7-Zip\FM,FolderShortcuts,
RegWrite,HKLM,0x3,PE-USER\Software\7-Zip\FM,FolderHistory,00,00
RegWrite,HKLM,0x1,PE-USER\Software\7-Zip\FM,PanelPath0,
RegWrite,HKLM,0x4,PE-USER\Software\7-Zip\FM,FlatViewArc0,0
RegWrite,HKLM,0x1,PE-USER\Software\7-Zip\FM,PanelPath1,
RegWrite,HKLM,0x4,PE-USER\Software\7-Zip\FM,FlatViewArc1,0
RegWrite,HKLM,0x4,PE-USER\Software\7-Zip\FM,ListMode,771
RegWrite,HKLM,0x3,PE-USER\Software\7-Zip\FM,Position,7d,00,00,00,7d,00,00,00,7d,03,00,00,92,02,00,00,00,00,00,00
RegWrite,HKLM,0x3,PE-USER\Software\7-Zip\FM,Panels,01,00,00,00,00,00,00,00,76,01,00,00
RegWrite,HKLM,0x3,PE-USER\Software\7-Zip\FM\Columns,RootFolder,01,00,00,00,00,00,00,00,01,00,00,00,04,00,00,00,01,00,00,00,64,00,00,00
RegWrite,HKLM,0x4,PE-USER\Software\7-Zip\Options,CascadedMenu,1
RegWrite,HKLM,0x4,PE-USER\Software\7-Zip\Options,ContextMenu,4983
RegWrite,HKLM,0x4,PE-USER\Software\7-Zip\Options,WorkDirType,0
RegWrite,HKLM,0x1,PE-USER\Software\7-Zip\Options,WorkDirPath,
RegWrite,HKLM,0x4,PE-USER\Software\7-Zip\Options,TempRemovableOnly,1

If,ExistRegKey,HKLM,PE-Software\Classes\.cab,Then,RegDelete,HKLM,PE-Software\Classes\.cab
//RegDelete,HKLM,PE-Software\Classes\.cab,PerceivedType
//RegDelete,HKLM,PE-Software\Classes\.cab\OpenWithProgids
//RegDelete,HKLM,PE-Software\Classes\.cab\PersistentHandler
If,ExistRegKey,HKLM,PE-Software\Classes\.GZ,Then,RegDelete,HKLM,PE-Software\Classes\.GZ
//RegDelete,HKLM,PE-Software\Classes\.GZ
If,ExistRegKey,HKLM,PE-Software\Classes\.tar,Then,RegDelete,HKLM,PE-Software\Classes\.tar
//RegDelete,HKLM,PE-Software\Classes\.tar,PerceivedType
//RegDelete,HKLM,PE-Software\Classes\.tar,Content Type
//RegDelete,HKLM,PE-Software\Classes\.tar\PersistentHandler
If,ExistRegKey,HKLM,PE-Software\Classes\.TGZ,Then,RegDelete,HKLM,PE-Software\Classes\.TGZ
//RegDelete,HKLM,PE-Software\Classes\.TGZ
If,ExistRegKey,HKLM,PE-Software\Classes\.Z,Then,RegDelete,HKLM,PE-Software\Classes\.Z
//RegDelete,HKLM,PE-Software\Classes\.Z
If,ExistRegKey,HKLM,PE-Software\Classes\.zip,Then,RegDelete,HKLM,PE-Software\Classes\.zip
//RegDelete,HKLM,PE-Software\Classes\.zip,PerceivedType
//RegDelete,HKLM,PE-Software\Classes\.zip,Content Type
//RegDelete,HKLM,PE-Software\Classes\.zip\CompressedFolder
//RegDelete,HKLM,PE-Software\Classes\.zip\OpenWithProgids
//RegDelete,HKLM,PE-Software\Classes\.zip\PersistentHandler
RegWrite,HKLM,0x1,PE-Software\7-Zip,Path,%PE_programs%\%ProgramFolder%\
RegWrite,HKLM,0x1,PE-Software\Classes\*\ShellEx\ContextMenuHandlers\7-Zip,,{23170F69-40C1-278A-1000-000100020000}
RegWrite,HKLM,0x1,PE-Software\Classes\.001,,7-Zip.001
RegWrite,HKLM,0x1,PE-Software\Classes\.7z,,7-Zip.7z
RegWrite,HKLM,0x1,PE-Software\Classes\.arj,,7-Zip.arj
RegWrite,HKLM,0x1,PE-Software\Classes\.bz2,,7-Zip.bz2
RegWrite,HKLM,0x1,PE-Software\Classes\.bzip2,,7-Zip.bzip2
RegWrite,HKLM,0x1,PE-Software\Classes\.cab,,7-Zip.cab
RegWrite,HKLM,0x1,PE-Software\Classes\.cpio,,7-Zip.cpio
RegWrite,HKLM,0x1,PE-Software\Classes\.deb,,7-Zip.deb
RegWrite,HKLM,0x1,PE-Software\Classes\.dmg,,7-Zip.dmg
RegWrite,HKLM,0x1,PE-Software\Classes\.fat,,7-Zip.fat
RegWrite,HKLM,0x1,PE-Software\Classes\.gz,,7-Zip.gz
RegWrite,HKLM,0x1,PE-Software\Classes\.gzip,,7-Zip.gzip
RegWrite,HKLM,0x1,PE-Software\Classes\.hfs,,7-Zip.hfs
RegWrite,HKLM,0x1,PE-Software\Classes\.lha,,7-Zip.lha
RegWrite,HKLM,0x1,PE-Software\Classes\.lzh,,7-Zip.lzh
RegWrite,HKLM,0x1,PE-Software\Classes\.lzma,,7-Zip.lzma
RegWrite,HKLM,0x1,PE-Software\Classes\.ntfs,,7-Zip.ntfs
RegWrite,HKLM,0x1,PE-Software\Classes\.rar,,7-Zip.rar
RegWrite,HKLM,0x1,PE-Software\Classes\.rpm,,7-Zip.rpm
RegWrite,HKLM,0x1,PE-Software\Classes\.squashfs,,7-Zip.squashfs
RegWrite,HKLM,0x1,PE-Software\Classes\.swm,,7-Zip.swm
RegWrite,HKLM,0x1,PE-Software\Classes\.tar,,7-Zip.tar
RegWrite,HKLM,0x1,PE-Software\Classes\.taz,,7-Zip.taz
RegWrite,HKLM,0x1,PE-Software\Classes\.tbz,,7-Zip.tbz
RegWrite,HKLM,0x1,PE-Software\Classes\.tbz2,,7-Zip.tbz2
RegWrite,HKLM,0x1,PE-Software\Classes\.tgz,,7-Zip.tgz
RegWrite,HKLM,0x1,PE-Software\Classes\.tpz,,7-Zip.tpz
RegWrite,HKLM,0x1,PE-Software\Classes\.txz,,7-Zip.txz
RegWrite,HKLM,0x1,PE-Software\Classes\.wim,,7-Zip.wim
RegWrite,HKLM,0x1,PE-Software\Classes\.xar,,7-Zip.xar
RegWrite,HKLM,0x1,PE-Software\Classes\.xz,,7-Zip.xz
RegWrite,HKLM,0x1,PE-Software\Classes\.z,,7-Zip.z
RegWrite,HKLM,0x1,PE-Software\Classes\.zip,,7-Zip.zip
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.001,,001 Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.001\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c9
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.001\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.001\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.001\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.7z,,7z Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.7z\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c0
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.7z\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.7z\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.7z\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.arj,,arj Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.arj\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c4
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.arj\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.arj\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.arj\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.bz2,,bz2 Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.bz2\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c2
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.bz2\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.bz2\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.bz2\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.bzip2,,bzip2 Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.bzip2\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c2
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.bzip2\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.bzip2\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.bzip2\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.cab,,cab Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.cab\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c7
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.cab\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.cab\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.cab\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.cpio,,cpio Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.cpio\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c12
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.cpio\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.cpio\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.cpio\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.deb,,deb Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.deb\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c11
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.deb\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.deb\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.deb\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.dmg,,dmg Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.dmg\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c17
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.dmg\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.dmg\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.dmg\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.fat,,fat Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.fat\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c21
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.fat\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.fat\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.fat\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.gz,,gz Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.gz\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c14
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.gz\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.gz\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.gz\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.gzip,,gzip Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.gzip\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c14
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.gzip\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.gzip\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.gzip\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.hfs,,hfs Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.hfs\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c18
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.hfs\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.hfs\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.hfs\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.lha,,lha Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.lha\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c6
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.lha\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.lha\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.lha\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.lzh,,lzh Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.lzh\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c6
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.lzh\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.lzh\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.lzh\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.lzma,,lzma Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.lzma\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c16
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.lzma\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.lzma\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.lzma\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.ntfs,,ntfs Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.ntfs\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c22
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.ntfs\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.ntfs\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.ntfs\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.rar,,rar Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.rar\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c3
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.rar\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.rar\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.rar\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.rpm,,rpm Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.rpm\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c10
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.rpm\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.rpm\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.rpm\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.squashfs,,squashfs Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.squashfs\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c24
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.squashfs\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.squashfs\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.squashfs\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.swm,,swm Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.swm\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c15
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.swm\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.swm\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.swm\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.tar,,tar Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.tar\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c13
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.tar\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.tar\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.tar\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.taz,,taz Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.taz\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c5
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.taz\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.taz\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.taz\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.tbz,,tbz Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.tbz\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c2
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.tbz\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.tbz\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.tbz\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.tbz2,,tbz2 Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.tbz2\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c2
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.tbz2\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.tbz2\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.tbz2\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.tgz,,tgz Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.tgz\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c14
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.tgz\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.tgz\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.tgz\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.tpz,,tpz Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.tpz\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c14
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.tpz\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.tpz\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.tpz\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.txz,,txz Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.txz\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c23
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.txz\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.txz\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.txz\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.vhd,,vhd Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.vhd\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c20
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.vhd\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.vhd\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.vhd\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.wim,,wim Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.wim\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c15
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.wim\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.wim\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.wim\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.xar,,xar Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.xar\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c19
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.xar\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.xar\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.xar\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.xz,,xz Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.xz\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c23
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.xz\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.xz\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.xz\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.z,,z Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.z\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c5
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.z\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.z\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.z\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.zip,,zip Archive
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.zip\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c1
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.zip\shell,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.zip\shell\open,,
RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.zip\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
RegWrite,HKLM,0x1,PE-Software\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000},,7-Zip Shell Extension
RegWrite,HKLM,0x1,PE-Software\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}\InprocServer32,,%PE_programs%\%ProgramFolder%\7-zip.dll
RegWrite,HKLM,0x1,PE-Software\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}\InprocServer32,ThreadingModel,Apartment
RegWrite,HKLM,0x1,PE-Software\Classes\Directory\ShellEx\ContextMenuHandlers\7-Zip,,{23170F69-40C1-278A-1000-000100020000}
RegWrite,HKLM,0x1,PE-Software\Classes\Directory\ShellEx\DragDropHandlers\7-Zip,,{23170F69-40C1-278A-1000-000100020000}
RegWrite,HKLM,0x1,PE-Software\Classes\Drive\shellex\DragDropHandlers\7-Zip,,{23170F69-40C1-278A-1000-000100020000}
RegWrite,HKLM,0x1,PE-Software\Microsoft\Windows\CurrentVersion\App Paths\7zFM.exe,,%PE_programs%\%ProgramFolder%p\7zFM.exe
RegWrite,HKLM,0x1,PE-Software\Microsoft\Windows\CurrentVersion\App Paths\7zFM.exe,Path,%PE_programs%\%ProgramFolder%\
RegWrite,HKLM,0x1,PE-Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved,{23170F69-40C1-278A-1000-000100020000},7-Zip Shell Extension

if,%pCheckBox5%,=,true,then
	RegWrite,HKLM,0x1,PE-Software\Classes\.iso,,7-Zip.iso
	RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.iso,,iso Archive
	RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.iso\DefaultIcon,,%PE_programs%\%ProgramFolder%\7z.dll#$c8
	RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.iso\shell,,	
	RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.iso\shell\open,,
	RegWrite,HKLM,0x1,PE-Software\Classes\7-Zip.iso\shell\open\command,,#$q%PE_programs%\%ProgramFolder%\7zFM.exe#$q #$q#$p1#$q
end


If,%Arch%,=,x64,Then
	RegWrite,HKLM,0x1,PE-Software\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\7zFM.exe,,%PE_programs%\%ProgramFolder%\7zFM.exe
	RegWrite,HKLM,0x1,PE-Software\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\7zFM.exe,Path,%PE_programs%\%ProgramFolder%\
end
RegUnLoad,PE-Software
RegUnLoad,PE-USER

[Script-Pic]
0=2887,3480,ZLB64
1=eNqdVWlUE8kWrphAwhoyQEBEoqwuIE82FRgC4rC4oY6IKBBlQFkGkUUWhTSyyIiDiCgwokQExGVcUCTIKJEdRBEEWRUSGEQYhI4gNqTpfp15M++dM2d+vPe+ruruU3Vv1f2qvluF9+BCoLLZydUJkEgkcIB4AN4PHMEiEkla/gBZhiyFLIVClqHKUqnSSpNTkKPR5GlUqrySvLyCIgGqnDJdSVFZ+i8dROou9SKKIo1KU/yfgT8DDBrYBDaRSbpgEYNEZpDwOsACgCRD+h3gD5AWkSkyskRI8gqEwSMVInwyeRERrAyFQvTGE/2AwpD5avlaB1nVnQepumFqZiczC2h6G0ur1Xe1w/rmvuGJcvJMDc3FWgaGRitWrrKwtFq3foO146ZvnJxdXDd/u9t9j8dez33f+fkfOhwQGBQReSwqOib2eFJyyqnUH06nnc+6cDE7J/enS9cKi4qvl9y4eevBw7JH5fyKx5U1tXX1DY1Nzc9fd3S+6eru6e0TDQ3/OvJ+9MPYuPjT9Mzn2S/I3LyUFwmQSX/ib3kxCF6LiD2gUKW8SIuipQYMiszytbJfOeykHgxT1TU7SVPbmFlQWi2nZ74LVvcNb5dn6luIDMRSar8z+++IJf5fzP5N7D+8+oAimURsHpkB2GDhMlKIAxk5hArbNHoMaIj5jfQkjC62yhlZeOjShfqXBH6ZzfcLXhV7bpt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