[Main]
Title=Microsoft Photo Viewer
Description=The default Picture Viewer of Windows (Windows7 only)
Selected=True
Author=ChrisR, JFX, Kare
Level=3
Version=6
Date=12.11.2016
Sizex86=|4844368:0:0
Sizex64=|6071136:0:0
Translation_DE=MaineCoon

[Interface]
tEcho_1=copy files ...

[Interface.07]
Description=Integriert die Windows-Fotoanzeige in WindowsPE (nur Windows7)
tEcho_1=Dateien werden kopiert...


[Process]

if,not,%os%,=,win7,then,exit

//If,%pcheckbox1%,=,True,Then
//Add_ShortCut,Desktop,,X:\Program Files\Windows Photo Viewer\ImagingDevices.exe,PhotoViewer
//Add_ShortCut,Startmenu,.,X:\Program Files\Windows Photo Viewer\ImagingDevices.exe,PhotoViewer

echo,%tEcho_1%

SetReqFile,%Install_sys%,%Distlang%,%FallBack%,%target_sys%
ReqFile,IconCodecService.dll
ReqFile,MFC42u.dll
ReqFile,UIRibbon.dll
ReqFile,UIRibbonRes.dll
ReqFile,WindowsCodecs.dll
ReqFile,WindowsCodecsExt.dll
ReqFile,icm32.dll,1
ReqFile,sti.dll,1
ReqFile,d3d8thk.dll
ReqFile,d3d9.dll

DirMake,%TargetDir%\Program Files\Windows Photo Viewer
DirCopy,%InstallSRC%\Program Files\Windows Photo Viewer,%TargetDir%\Program Files\Windows Photo Viewer\,1

If,Not,ExistDir,%target_sys%\spool\drivers\color,Then,DirMake,%target_sys%\spool\drivers\color
FileCopy,%InstallSRC%\Windows\System32\spool\drivers\color\sRGB Color Space Profile.icm,%target_sys%\spool\drivers\color\

RegLoad,%RegSoftware%,PE-Software
If,EXISTREGKEY,HKLM,PE-Software\Classes\icofile\shell\open\DropTarget,Then,RegDelete,HKLM,PE-Software\Classes\icofile\shell\open\DropTarget
If,EXISTREGKEY,HKLM,PE-Software\Classes\jpegfile\shell\open\DropTarget,Then,RegDelete,HKLM,PE-Software\Classes\jpegfile\shell\open\DropTarget
If,EXISTREGKEY,HKLM,PE-Software\Classes\Paint.Picture\shell\open\DropTarget,Then,RegDelete,HKLM,PE-Software\Classes\Paint.Picture\shell\open\DropTarget
If,EXISTREGKEY,HKLM,PE-Software\Classes\PhotoViewer.FileAssoc.Bitmap\shell\open\DropTarget,Then,RegDelete,HKLM,PE-Software\Classes\PhotoViewer.FileAssoc.Bitmap\shell\open\DropTarget
If,EXISTREGKEY,HKLM,PE-Software\Classes\PhotoViewer.FileAssoc.JFIF\shell\open\DropTarget,Then,RegDelete,HKLM,PE-Software\Classes\PhotoViewer.FileAssoc.JFIF\shell\open\DropTarget
If,EXISTREGKEY,HKLM,PE-Software\Classes\PhotoViewer.FileAssoc.Jpeg\shell\open\DropTarget,Then,RegDelete,HKLM,PE-Software\Classes\PhotoViewer.FileAssoc.Jpeg\shell\open\DropTarget
If,EXISTREGKEY,HKLM,PE-Software\Classes\PhotoViewer.FileAssoc.Png\shell\open\DropTarget,Then,RegDelete,HKLM,PE-Software\Classes\PhotoViewer.FileAssoc.Png\shell\open\DropTarget
If,EXISTREGKEY,HKLM,PE-Software\Classes\PhotoViewer.FileAssoc.Tiff\shell\open\DropTarget,Then,RegDelete,HKLM,PE-Software\Classes\PhotoViewer.FileAssoc.Tiff\shell\open\DropTarget
If,EXISTREGKEY,HKLM,PE-Software\Classes\PhotoViewer.FileAssoc.Wdp\shell\open\DropTarget,Then,RegDelete,HKLM,PE-Software\Classes\PhotoViewer.FileAssoc.Wdp\shell\open\DropTarget
If,EXISTREGKEY,HKLM,PE-Software\Classes\pjpegfile\shell\open\DropTarget,Then,RegDelete,HKLM,PE-Software\Classes\pjpegfile\shell\open\DropTarget
If,EXISTREGKEY,HKLM,PE-Software\Classes\pngfile\shell\open\DropTarget,Then,RegDelete,HKLM,PE-Software\Classes\pngfile\shell\open\DropTarget
If,EXISTREGKEY,HKLM,PE-Software\Classes\SystemFileAssociations\image\shell\print\DropTarget,Then,RegDelete,HKLM,PE-Software\Classes\SystemFileAssociations\image\shell\print\DropTarget
If,EXISTREGKEY,HKLM,PE-Software\Classes\TIFImage.Document\shell\open\DropTarget,Then,RegDelete,HKLM,PE-Software\Classes\TIFImage.Document\shell\open\DropTarget
If,EXISTREGKEY,HKLM,PE-Software\Classes\wdpfile\shell\open\DropTarget,Then,RegDelete,HKLM,PE-Software\Classes\wdpfile\shell\open\DropTarget
RegUnLoad,PE-SOFTWARE

[Script-Pic]
0=9662,4960,ZLB64
1=eNrtWWlYVGeWLqMxWz8xM502xhjXGJdEUUNMJ+0k6cSlE+O+RE0rcVCDARXUKJsCsssuIPtOAcVaRUFBLdTKvu8gKPuqyA6Kim+fe8F0nnRmJtMzYX6Mn8/LqboUdd/vO+e855wrhzON/q1Zw6GfCzkxSzmc2RwOZzmBLnG+5UxcZ5blUs7T9f9sfXdw2yG9Q9s1BPxPQd8Fg8O7Cs7q7j80VfyN9Q5qfJytRxKiwxEZ5IMkXgRSEmMgiI1AXEQgwn1cEOBiDV8nK/g6W8Pb2QbXnKzhcfUK3B2t4GpnAScbczhZm8PZ1gJ2ZkZjlwwOa6aKv4fFGaglQvT09qGjox0DgwPobG9BRUEmsjOEyOBHIi7QA0HudogL9oQwLgKi5ASkpvAhTE5EMj8B6SIhMjVK5Ofng88Lh/vl05gq/sEul6EUC9DV3Y2+3rtob21ElkwIrrc9/OwvIsTFHI6mBjilswcWp47A18EMcWF+ECTEIJ7HRWoyHzmZKhQV5KGqqhLyND6CnC9NGf/wazbI18gwNDSMuz23We7ZhJab1ejrasHQ3S401JSDHxlAsb0TF3T3IMLLHiI+DwnEv7y0BPm5Odi7cyv27toJG/OLCHWznDL+Mb5OqCrOw8jICBrrq1GokaIkRwWVIgMuLq5wsHOAkJ+EiqJchFEumJ78BlfJH3JRAgTx0Wi4VY/8vBwsnjcb8+e+jlPHj7K+myr+iSGeaKitwNDgIEpzVehsvgmNXILzp07go9VLsHn9Qhge24tAfz801lUhwM0WF08eQaYkGan8ONTX1xL/bKx9922sXrkCFw31KV/cp4x/MtcPbQ11GBkeRKFagtttTfD39oDu7s8g9TqD+yVOCLHcBa3VWmhsaKD8DYe54TGKs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