[Main]
Title=Microsoft Paint
Description=Adds MsPaint to WindowsPE
Selected=True
Author=JFX
Level=3
Version=5.3
Date=29.04.2025
Sizex86=|3959741:0:0

[Interface]
Panel=1

[Interface.07]
Description=Integriert Paint in WindowsPE
Panel=1



[Process]

If,%LSPVer%,<,1.2.0.0,Then,Message,LSPVersion,Msg||1.2.0.0
Echo,201,Txt|MsPaint

SetReqFile,%Install_sys%,%Distlang%,%Fallback%,%target_sys%

ReqFile,IconCodecService.dll
ReqFile,MFC42u.dll

ReqFile,odbc32.dll
ReqFile,uiribbon.dll,1
ReqFile,uiribbonres.dll
ReqFile,wiaservc.dll,1

ReqFile,WindowsCodecs.dll
ReqFile,WindowsCodecsExt.dll

// Windows 11
// ----------
If,%WIM_BUILD%,<,22000,Then
    ReqFile,mspaint.exe,2
Else
    //+++++++++++++
    //----VARIABLES
	//+++++++++++++
	Set,%ProgramEXE%,mspaint.exe
	Set,%SrcDir%,%AppsDir%\Paint-Classic\Classic Apps\Microsoft Paint
	//+++++++++++++++++++++++++++++++++++++++++++++++
	//----DOWNLOAD + EXTRAHIEREN | DOWNLOAD + EXTRACT
	//+++++++++++++++++++++++++++++++++++++++++++++++
	If,%pCheckBox2%,=,True,Then
	    DirRemove,%AppsDir%\Paint-Classic,3
	    FileDelete,%AppsDir%\Paint-Classic.zip,1
	End
	If,Not,ExistFile,%SrcDir%\Program\%ProgramEXE%,Then,Run,%ScriptFile%,Download

	FileCopy,%SrcDir%\Program\%ProgramEXE%,%Target_Sys%
	FileCopy,%SrcDir%\Program\en-US\mspaint.exe.mui,%Target_Sys%\en-US
	FileCopy,%SrcDir%\SystemResources\mspaint.exe.mun,%Target_Win%\SystemResources
	
//	REGISTRY
//  --------
	RegLoad,%RegSoftware%,PE-SOFTWARE

	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\*\OpenWithList
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\*\OpenWithList\MSPaint.exe,,

	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\.bmp,,Paint.Picture
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\.bmp,Content Type,image/bmp
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\.bmp,PerceivedType,image
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\.bmp\OpenWithList
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\.bmp\OpenWithList\MSPaint.exe,,
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\.bmp\PersistentHandler,,{098f2470-bae0-11cd-b579-08002b30bfeb}
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\.bmp\ShellNew,ItemName,@#$pSystemRoot#$p\system32\mspaint.exe#$c-59414
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\.bmp\ShellNew,NullFile,

	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\AppID\{D3E34B21-9D75-101A-8C3D-00AA001A1652},,Bitmap Image
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\AppID\{D3E34B21-9D75-101A-8C3D-00AA001A1652},AppID,{D3E34B21-9D75-101A-8C3D-00AA001A1652}
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\AppID\{D3E34B21-9D75-101A-8C3D-00AA001A1652},LocalizedString,@#$pSystemRoot#$p\system32\mspaint.exe#$c-59419

	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\Applications\mspaint.exe
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\Applications\mspaint.exe\shell
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\Applications\mspaint.exe\shell\edit
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\Applications\mspaint.exe\shell\edit\command,,""#$pSystemRoot#$p\system32\mspaint.exe" "%1""
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Applications\mspaint.exe\SupportedTypes,.bmp,
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Applications\mspaint.exe\SupportedTypes,.dib,
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Applications\mspaint.exe\SupportedTypes,.emf,
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Applications\mspaint.exe\SupportedTypes,.gif,
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Applications\mspaint.exe\SupportedTypes,.ico,
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Applications\mspaint.exe\SupportedTypes,.jfif,
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Applications\mspaint.exe\SupportedTypes,.jpe,
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Applications\mspaint.exe\SupportedTypes,.jpeg,
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Applications\mspaint.exe\SupportedTypes,.jpg,
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Applications\mspaint.exe\SupportedTypes,.png,
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Applications\mspaint.exe\SupportedTypes,.rle,
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Applications\mspaint.exe\SupportedTypes,.tif,
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Applications\mspaint.exe\SupportedTypes,.tiff,
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Applications\mspaint.exe\SupportedTypes,.wmf,

	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652},,Paintbrush Picture
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652},LocalizedString,@#$pSystemRoot#$p\system32\mspaint.exe#$c-59418
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\AuxUserType
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\AuxUserType\2,,Bitmap Image
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\AuxUserType\2,LocalizedString,@#$pSystemRoot#$p\system32\mspaint.exe#$c-59419
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\AuxUserType\3,,Paint
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\AuxUserType\3,LocalizedString,@#$pSystemRoot#$p\system32\mspaint.exe#$c-57344
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\DataFormats
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\DataFormats\PriorityCacheFormats,#8,
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\DefaultIcon,,#$pSystemRoot#$p\system32\mspaint.exe#$c-3
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\InProcHandler32,,ole32.dll
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\Insertable
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\LocalServer32,,#$pSystemRoot#$p\system32\mspaint.exe
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\MiscStatus,,32
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\PersistentHandler,,{098f2470-bae0-11cd-b579-08002b30bfeb}
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\ProgID,,Paint.Picture
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\Verb
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\Verb\0,,&Edit#$c0#$c2
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\Verb\0,LocalizedString,@#$pSystemRoot#$p\system32\mspaint.exe#$c-59420
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\Verb\1,,&Open#$c0#$c2
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\Verb\1,LocalizedString,@#$pSystemRoot#$p\system32\mspaint.exe#$c-59421

	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\emffile,,EMF File
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\emffile\DefaultIcon,,#$pSystemRoot#$p\system32\mspaint.exe#$c-3
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\emffile\shell,,
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\emffile\shell\open,,
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\emffile\shell\open\command,,""#$pSystemRoot#$p\system32\mspaint.exe" "%1""
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\emffile\shell\print,,
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\emffile\shell\print\command,,""#$pSystemRoot#$p\system32\mspaint.exe" /p "%1""
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\emffile\shell\printto,,
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\emffile\shell\printto\command,,""#$pSystemRoot#$p\system32\mspaint.exe" /pt "%1" "%2" "%3" "%4""

	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Paint.Picture,,Bitmap Image
	RegWrite,HKLM,0x4,PE-SOFTWARE\Classes\Paint.Picture,EditFlags,0x200000
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\Paint.Picture,FriendlyTypeName,@#$pSystemRoot#$p\System32\shell32.dll#$c-30597
	RegWrite,HKLM,0x4,PE-SOFTWARE\Classes\Paint.Picture,ImageOptionFlags,1
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Paint.Picture\CLSID,,{D3E34B21-9D75-101A-8C3D-00AA001A1652}
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\Paint.Picture\DefaultIcon,,#$pSystemRoot#$p\system32\imageres.dll#$c-70
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Paint.Picture\Insertable,,
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\Paint.Picture\protocol
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\Paint.Picture\protocol\StdFileEditing
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\Paint.Picture\protocol\StdFileEditing\server,,#$pSystemRoot#$p\system32\mspaint.exe
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\Paint.Picture\protocol\StdFileEditing\verb
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Paint.Picture\protocol\StdFileEditing\verb\0,,&Edit
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\Paint.Picture\protocol\StdFileEditing\verb\0,LocalizedString,@#$pSystemRoot#$p\system32\mspaint.exe#$c-59420
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\Paint.Picture\shell
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\Paint.Picture\shell\edit
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\Paint.Picture\shell\edit\command,,""#$pSystemRoot#$p\system32\mspaint.exe" "%1""
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\Paint.Picture\shell\open,MuiVerb,@%ProgramFiles%\Windows Photo Viewer\photoviewer.dll#$c-3043
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\Paint.Picture\shell\open\command,,#$pSystemRoot#$p\System32\rundll32.exe "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll"#$c ImageView_Fullscreen %1
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Paint.Picture\shell\open\DropTarget,Clsid,{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\Paint.Picture\shell\printto
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\Paint.Picture\shell\printto\command,,""#$pSystemRoot#$p\system32\mspaint.exe" /pt "%1" "%2" "%3" "%4""

	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\PBrush,,
	RegWrite,HKLM,0x4,PE-SOFTWARE\Classes\PBrush,EditFlags,0x200000
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\PBrush\CLSID,,{0003000a-0000-0000-C000-000000000046}
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\PBrush\protocol
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\PBrush\protocol\StdFileEditing
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\PBrush\protocol\StdFileEditing\server,,#$pSystemRoot#$p\system32\mspaint.exe
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\PBrush\protocol\StdFileEditing\verb
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\PBrush\protocol\StdFileEditing\verb\0,,&Edit
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\PBrush\protocol\StdFileEditing\verb\0,LocalizedString,@#$pSystemRoot#$p\system32\mspaint.exe#$c-59420
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\PBrush\shell
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\PBrush\shell\edit
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\PBrush\shell\edit\command,,""#$pSystemRoot#$p\system32\mspaint.exe" "%1""
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\PBrush\shell\print
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\PBrush\shell\print\command,,""#$pSystemRoot#$p\system32\mspaint.exe" /p "%1""
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\PBrush\shell\printto
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\PBrush\shell\printto\command,,""#$pSystemRoot#$p\system32\mspaint.exe" /pt "%1" "%2" "%3" "%4""

	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\rlefile,,RLE File
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\rlefile\DefaultIcon,,#$pSystemRoot#$p\system32\mspaint.exe#$c-3
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\rlefile\shell,,
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\rlefile\shell\open,,
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\rlefile\shell\open\command,,""#$pSystemRoot#$p\system32\mspaint.exe" "%1""
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\rlefile\shell\print,,
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\rlefile\shell\print\command,,""#$pSystemRoot#$p\system32\mspaint.exe" /p "%1""
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\rlefile\shell\printto,,
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\rlefile\shell\printto\command,,""#$pSystemRoot#$p\system32\mspaint.exe" /pt "%1" "%2" "%3" "%4""

	RegWrite,HKLM,0x4,PE-SOFTWARE\Classes\SystemFileAssociations\image,Treatment,2
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\SystemFileAssociations\image,TypeOverlay,
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\SystemFileAssociations\image\DefaultIcon,,#$pSystemRoot#$p\system32\shell32.dll#$c-16823
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\SystemFileAssociations\image\OpenWithList
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\SystemFileAssociations\image\OpenWithList\MSPaint.exe,,
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\SystemFileAssociations\image\shell
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\SystemFileAssociations\image\shell\edit
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\SystemFileAssociations\image\shell\edit\command,,""#$pSystemRoot#$p\system32\mspaint.exe" "%1""
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\SystemFileAssociations\image\shell\print
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\SystemFileAssociations\image\shell\print\command,,#$pSystemRoot#$p\System32\rundll32.exe "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll"#$c ImageView_Fullscreen %1
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\SystemFileAssociations\image\shell\print\DropTarget,Clsid,{60fd46de-f830-4894-a628-6fa81bc0190d}
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\SystemFileAssociations\image\shellex
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\SystemFileAssociations\image\shellex\ContextMenuHandlers
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\SystemFileAssociations\image\shellex\ContextMenuHandlers\PlayTo,,{7AD84985-87B4-4a16-BE58-8B72A5B390F7}
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\SystemFileAssociations\image\shellex\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1},,{3F30C968-480A-4C6C-862D-EFC0897BB84B}
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\SystemFileAssociations\image\shellex\{e357fccd-a995-4576-b01f-234630154e96},,{C7657C4A-9F68-40fa-A4DF-96BC08EB3551}

	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\wmffile,,WMF File
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\wmffile\DefaultIcon,,#$pSystemRoot#$p\system32\mspaint.exe#$c-3
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\wmffile\shell,,
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\wmffile\shell\open,,
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\wmffile\shell\open\command,,""#$pSystemRoot#$p\system32\mspaint.exe" "%1""
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\wmffile\shell\print,,
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\wmffile\shell\print\command,,""#$pSystemRoot#$p\system32\mspaint.exe" /p "%1""
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\wmffile\shell\printto,,
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\wmffile\shell\printto\command,,""#$pSystemRoot#$p\system32\mspaint.exe" /pt "%1" "%2" "%3" "%4""

	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Wow6432Node\AppID\{D3E34B21-9D75-101A-8C3D-00AA001A1652},,Bitmap Image
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Wow6432Node\AppID\{D3E34B21-9D75-101A-8C3D-00AA001A1652},AppID,{D3E34B21-9D75-101A-8C3D-00AA001A1652}
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\Wow6432Node\AppID\{D3E34B21-9D75-101A-8C3D-00AA001A1652},LocalizedString,@#$pSystemRoot#$p\system32\mspaint.exe#$c-59419
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Wow6432Node\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652},,Paintbrush Picture
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\Wow6432Node\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652},LocalizedString,@#$pSystemRoot#$p\system32\mspaint.exe#$c-59418
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\Wow6432Node\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\AuxUserType
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Wow6432Node\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\AuxUserType\2,,Bitmap Image
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\Wow6432Node\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\AuxUserType\2,LocalizedString,@#$pSystemRoot#$p\system32\mspaint.exe#$c-59419
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Wow6432Node\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\AuxUserType\3,,Paint
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\Wow6432Node\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\AuxUserType\3,LocalizedString,@#$pSystemRoot#$p\system32\mspaint.exe#$c-57344
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\Wow6432Node\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\DataFormats
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Wow6432Node\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\DataFormats\PriorityCacheFormats,#8,
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\Wow6432Node\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\DefaultIcon,,#$pSystemRoot#$p\system32\mspaint.exe#$c-3
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Wow6432Node\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\InProcHandler32,,ole32.dll
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\Wow6432Node\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\Insertable
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\Wow6432Node\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\LocalServer32,,#$pSystemRoot#$p\system32\mspaint.exe
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Wow6432Node\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\MiscStatus,,32
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Wow6432Node\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\PersistentHandler,,{098f2470-bae0-11cd-b579-08002b30bfeb}
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Wow6432Node\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\ProgID,,Paint.Picture
	RegWrite,HKLM,0x0,PE-SOFTWARE\Classes\Wow6432Node\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\Verb
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Wow6432Node\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\Verb\0,,&Edit#$c0#$c2
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\Wow6432Node\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\Verb\0,LocalizedString,@#$pSystemRoot#$p\system32\mspaint.exe#$c-59420
	RegWrite,HKLM,0x1,PE-SOFTWARE\Classes\Wow6432Node\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\Verb\1,,&Open#$c0#$c2
	RegWrite,HKLM,0x2,PE-SOFTWARE\Classes\Wow6432Node\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\Verb\1,LocalizedString,@#$pSystemRoot#$p\system32\mspaint.exe#$c-59421

	RegWrite,HKLM,0x2,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\pbrush.exe,,#$pSystemRoot#$p\System32\mspaint.exe
	RegWrite,HKLM,0x2,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\pbrush.exe,Path,#$pSystemRoot#$p\System32

	RegWrite,HKLM,0x0,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Paint
	RegWrite,HKLM,0x2,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities,ApplicationDescription,@#$pSystemRoot#$p\system32\mspaint.exe#$c-50142
	RegWrite,HKLM,0x2,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities,ApplicationName,@#$pSystemRoot#$p\system32\mspaint.exe#$c-57344
	RegWrite,HKLM,0x1,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.bmp,PBrush
	RegWrite,HKLM,0x1,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.dib,PBrush
	RegWrite,HKLM,0x1,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.emf,emffile
	RegWrite,HKLM,0x1,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.gif,PBrush
	RegWrite,HKLM,0x1,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.ico,PBrush
	RegWrite,HKLM,0x1,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.jfif,PBrush
	RegWrite,HKLM,0x1,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.jpe,PBrush
	RegWrite,HKLM,0x1,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.jpeg,PBrush
	RegWrite,HKLM,0x1,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.jpg,PBrush
	RegWrite,HKLM,0x1,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.png,PBrush
	RegWrite,HKLM,0x1,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.rle,rlefile
	RegWrite,HKLM,0x1,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.tif,PBrush
	RegWrite,HKLM,0x1,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.tiff,PBrush
	RegWrite,HKLM,0x1,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.wmf,wmffile

	RegWrite,HKLM,0x1,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{1d75856d-36a7-4ecb-a3f5-b13152222d29},,Microsoft-Windows-MSPaint
	RegWrite,HKLM,0x2,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{1d75856d-36a7-4ecb-a3f5-b13152222d29},MessageFileName,#$pSystemRoot#$p\system32\mspaint.exe
	RegWrite,HKLM,0x2,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{1d75856d-36a7-4ecb-a3f5-b13152222d29},ResourceFileName,#$pSystemRoot#$p\system32\mspaint.exe
	RegWrite,HKLM,0x4,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{1d75856d-36a7-4ecb-a3f5-b13152222d29}\ChannelReferences,Count,3
	RegWrite,HKLM,0x1,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{1d75856d-36a7-4ecb-a3f5-b13152222d29}\ChannelReferences\0,,Microsoft-Windows-MSPaint/Admin
	RegWrite,HKLM,0x4,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{1d75856d-36a7-4ecb-a3f5-b13152222d29}\ChannelReferences\0,Flags,0
	RegWrite,HKLM,0x4,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{1d75856d-36a7-4ecb-a3f5-b13152222d29}\ChannelReferences\0,Id,0x10
	RegWrite,HKLM,0x1,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{1d75856d-36a7-4ecb-a3f5-b13152222d29}\ChannelReferences\1,,Microsoft-Windows-MSPaint/Diagnostic
	RegWrite,HKLM,0x4,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{1d75856d-36a7-4ecb-a3f5-b13152222d29}\ChannelReferences\1,Flags,0
	RegWrite,HKLM,0x4,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{1d75856d-36a7-4ecb-a3f5-b13152222d29}\ChannelReferences\1,Id,0x11
	RegWrite,HKLM,0x1,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{1d75856d-36a7-4ecb-a3f5-b13152222d29}\ChannelReferences\2,,Microsoft-Windows-MSPaint/Debug
	RegWrite,HKLM,0x4,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{1d75856d-36a7-4ecb-a3f5-b13152222d29}\ChannelReferences\2,Flags,0
	RegWrite,HKLM,0x4,PE-SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{1d75856d-36a7-4ecb-a3f5-b13152222d29}\ChannelReferences\2,Id,0x12

	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Classes\AppID\{D3E34B21-9D75-101A-8C3D-00AA001A1652},,Bitmap Image
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Classes\AppID\{D3E34B21-9D75-101A-8C3D-00AA001A1652},AppID,{D3E34B21-9D75-101A-8C3D-00AA001A1652}
	RegWrite,HKLM,0x2,PE-SOFTWARE\Wow6432Node\Classes\AppID\{D3E34B21-9D75-101A-8C3D-00AA001A1652},LocalizedString,@#$pSystemRoot#$p\system32\mspaint.exe#$c-59419
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652},,Paintbrush Picture
	RegWrite,HKLM,0x2,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652},LocalizedString,@#$pSystemRoot#$p\system32\mspaint.exe#$c-59418
	RegWrite,HKLM,0x0,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\AuxUserType
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\AuxUserType\2,,Bitmap Image
	RegWrite,HKLM,0x2,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\AuxUserType\2,LocalizedString,@#$pSystemRoot#$p\system32\mspaint.exe#$c-59419
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\AuxUserType\3,,Paint
	RegWrite,HKLM,0x2,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\AuxUserType\3,LocalizedString,@#$pSystemRoot#$p\system32\mspaint.exe#$c-57344
	RegWrite,HKLM,0x0,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\DataFormats
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\DataFormats\PriorityCacheFormats,#8,
	RegWrite,HKLM,0x2,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\DefaultIcon,,#$pSystemRoot#$p\system32\mspaint.exe#$c-3
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\InProcHandler32,,ole32.dll
	RegWrite,HKLM,0x0,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\Insertable
	RegWrite,HKLM,0x2,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\LocalServer32,,#$pSystemRoot#$p\system32\mspaint.exe
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\MiscStatus,,32
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\PersistentHandler,,{098f2470-bae0-11cd-b579-08002b30bfeb}
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\ProgID,,Paint.Picture
	RegWrite,HKLM,0x0,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\Verb
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\Verb\0,,&Edit#$c0#$c2
	RegWrite,HKLM,0x2,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\Verb\0,LocalizedString,@#$pSystemRoot#$p\system32\mspaint.exe#$c-59420
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\Verb\1,,&Open#$c0#$c2
	RegWrite,HKLM,0x2,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\Verb\1,LocalizedString,@#$pSystemRoot#$p\system32\mspaint.exe#$c-59421
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652},,Paintbrush Picture
	RegWrite,HKLM,0x2,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652},LocalizedString,@#$pSystemRoot#$p\system32\mspaint.exe#$c-59418
	RegWrite,HKLM,0x0,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\AuxUserType
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\AuxUserType\2,,Bitmap Image
	RegWrite,HKLM,0x2,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\AuxUserType\2,LocalizedString,@#$pSystemRoot#$p\system32\mspaint.exe#$c-59419
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\AuxUserType\3,,Paint
	RegWrite,HKLM,0x2,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\AuxUserType\3,LocalizedString,@#$pSystemRoot#$p\system32\mspaint.exe#$c-57344
	RegWrite,HKLM,0x0,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\DataFormats
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\DataFormats\PriorityCacheFormats,#8,
	RegWrite,HKLM,0x2,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\DefaultIcon,,#$pSystemRoot#$p\system32\mspaint.exe#$c-3
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\InProcHandler32,,ole32.dll
	RegWrite,HKLM,0x0,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\Insertable
	RegWrite,HKLM,0x2,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\LocalServer32,,#$pSystemRoot#$p\system32\mspaint.exe
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\MiscStatus,,32
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\PersistentHandler,,{098f2470-bae0-11cd-b579-08002b30bfeb}
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\ProgID,,Paint.Picture
	RegWrite,HKLM,0x0,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\Verb
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\Verb\0,,&Edit#$c0#$c2
	RegWrite,HKLM,0x2,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\Verb\0,LocalizedString,@#$pSystemRoot#$p\system32\mspaint.exe#$c-59420
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\Verb\1,,&Open#$c0#$c2
	RegWrite,HKLM,0x2,PE-SOFTWARE\Wow6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\Verb\1,LocalizedString,@#$pSystemRoot#$p\system32\mspaint.exe#$c-59421

	RegWrite,HKLM,0x0,PE-SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Applets\Paint
	RegWrite,HKLM,0x2,PE-SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities,ApplicationDescription,@#$pSystemRoot#$p\system32\mspaint.exe#$c-50142
	RegWrite,HKLM,0x2,PE-SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities,ApplicationName,@#$pSystemRoot#$p\system32\mspaint.exe#$c-57344
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.bmp,PBrush
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.dib,PBrush
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.emf,emffile
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.gif,PBrush
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.ico,PBrush
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.jfif,PBrush
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.jpe,PBrush
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.jpeg,PBrush
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.jpg,PBrush
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.png,PBrush
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.rle,rlefile
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.tif,PBrush
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.tiff,PBrush
	RegWrite,HKLM,0x1,PE-SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociations,.wmf,wmffile

	RegUnLoad,All
End

//++++++++++++++++++++++
//----VERKNÜPFUNG | LINK
//++++++++++++++++++++++
GetDistLang,%DistTmp%,%target_sys%\shell32.dll,%DistLang%:%FallBack%
Retrieve,%Folder%,ResStr,%target_sys%\%DistTmp%\shell32.dll.mui,,21761
Retrieve,%Name%,ResStr,%target_sys%\%DistTmp%\shell32.dll.mui,,22054

Add_ShortCut,Startmenu,%Folder%,#$pSystemRoot#$p\System32\mspaint.exe,%Name%

[Download]

Set,%UrlPath_1%,https://www.winhelponline.com/blog/wp-content/uploads/2022/07/Paint-Classic.zip
Set,%ServerMD5%,3426e79dfb14f238c6d7674c043c2ff6
Set,%DirSize_orig%,3546669
Set,%FILE%,%AppsDir%\Paint-Classic.zip

Echo,205,Txt
WebGet,%UrlPath_1%,%FILE%
// DOWNLOAD-FEHLER | DOWNLOAD ERROR
// --------------------------------
If,%Exitcode%,=,1,Then,Message,Err_Download,Msg|
// MD5-PRÜFSUMMENVERGLEICH | MD5 CHECKSUM COMPARISON
// -------------------------------------------------
Retrieve,%FileMD5%,MD5,%FILE%
If,Not,%FileMD5%,=,%ServerMD5%,Then
	Message,Err_MD5,Msg|
	FileDelete,%FILE%,1
	Exit		
End
// ENTPACKEN | UNPACK
//--------------------
Echo,207,Txt
DirMake,%AppsDir%\Paint-Classic
ShellExecute,Hide,%Tools%\7z.exe,"x #$q%FILE%#$q -y -p"winhelponline" -o#$q%AppsDir%\#$q"
// Überprüfung Ordnergröße | Check folder size
Echo,210,Txt
Wait,2000
Retrieve,%DirSize%,DirSize,%AppsDir%\Paint-Classic
If,Not,%DirSize%,=,%DirSize_orig%,Then
    DirRemove,%AppsDir%\Paint-Classic,3
    FileDelete,%FILE%,1
    Message,Err_DirSize,Msg|
End


//GetDistLang,%DistTmp%,%target_sys%\shell32.dll,%Distlang%:%FallBack%
//Retrieve,%Fold%,ResStr,%target_sys%\%DistTmp%\shell32.dll.mui,,21761
//Add_ShortCut,Startmenu,%Fold%,X:\Windows\system32\mspaint.exe,Paint





[Script-Pic]
0=2031,2692,ZLB64
1=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
2=N3A4GcKiQdVORqhRIBPucWLe3C5i4esoMPGkK39pM8V6jkNFIl159ZLzQeNxY0PwAGv9jiLztTo6dMNLZX+y5HCIkvAjNT+SmIlfT3GHSpXIQpnCzoRJ/VfsWoXkZiUuJBL+VOoBWfF0G/W01qWhc0/E+8gkZ0CJctcB7jpGKv24Aj7CKTvrU2EZYutp4y1PMhH6OQBnUFghVY/b64O0YUC2Ntz0494IPmZRZZ6lAx2NfbDDWsAijaXOdK8R2jSxTIMSe9JJtTlrxzr2iA76pCCRwN7/AayAqPg=
