[Main]
Title=Notepad
Description=Will add Notepad to the PE compilation.

Level=6
Author=John Adamopoulos, Kare
Version=17
Date=02.09.2018
Selected=True
Translation_DE=MaineCoon

[Interface]
pTextLabel2=File types to associate with notepad:,10,0,Default,8,170,350,20
pFrame1=,707070,0,0,20,30,180,125
pCheckBox1=True,Startmenü,0,3,30,45,121,18
pCheckBox2=False,Desktop,0,3,30,70,121,18
pTextBox1=%accessories%,Menuefolder,0,0,30,95,100,21
pCheckBox4=True,.txt,0,3,30,200,60,18
pCheckBox5=True,.ini,0,3,30,220,121,18
pCheckBox6=True,.inf,0,3,30,240,121,18
//
tEcho_1=Creating entries [Startmenu] ...
tEcho_2=Copying files ...

[Interface.07]
Description=Integriert Notepad in WindowsPE
pTextLabel2=Verknüpfungen:,10,0,Default,20,170,350,20
pFrame1=,707070,0,0,20,30,180,125
pCheckBox1=True,Startmenü,0,3,30,45,121,18
pCheckBox2=True,Desktop,0,3,30,70,121,18
ptextbox1=%accessories%,Menüordner,0,0,30,95,100,21
pCheckBox4=True,.txt,0,3,30,200,60,18
pCheckBox5=True,.ini,0,3,30,220,121,18
pCheckBox6=True,.inf,0,3,30,240,121,18
//
tEcho_1=Einträge werden erstellt [Startmenü] ...
tEcho_2=Dateien werden kopiert ...


[Process]

Echo,%tEcho_1%
set,%ProgramTitle%,Notepad
set,%ProgramEXE%,"notepad.exe

Retrieve,%accessories%,ResStr,%target_sys%\shell32.dll,%LCID%,21761
Echo,%tEcho_2%
If,%pCheckBox1%,=,True,then,Add_Shortcut,StartMenu,%accessories%,"#$pSystemRoot#$p\%ProgramEXE%",%ProgramTitle%
If,%pCheckBox2%,=,True,then,Add_Shortcut,Desktop,".","#$pSystemRoot#$p\%ProgramEXE%",%ProgramTitle%

CopyOrExpand,%source_sys%\notepad.exe,%target_Win%
CopyOrExpand,%source_win%\lucon.ttf,%target_win%\Fonts

RegLoad,%RegSoftware%,PE-SOFTWARE
If,%pCheckBox4%,=,true,then
	RegWrite,HKLM,0x1,PE-Software\Classes\.txt\ShellNew,NullFile,""
	RegWrite,HKLM,0x3,PE-Software\Classes\txtfile,EditFlags,10000
	RegWrite,HKLM,0x2,PE-Software\Classes\txtfile,FriendlyTypeName,"@#$pSystemRoot#$p\notepad.exe#$c-469"
	RegWrite,HKLM,0x2,PE-Software\Classes\txtfile\DefaultIcon,,"#$pSystemRoot#$p\shell32.dll#$c-152"
	RegWrite,HKLM,0x2,PE-Software\Classes\txtfile\shell\open\command,,"notepad #$q%1#$q"
	RegWrite,HKLM,0x2,PE-Software\Classes\txtfile\shell\print\command,,"notepad /p %1"
end
If,%pCheckBox5%,=,true,then
	RegWrite,HKLM,0x1,PE-Software\Classes\.ini,,inifile
	RegWrite,HKLM,0x2,PE-Software\Classes\inifile\shell\open\command,,"notepad #$q%1#$q"
	RegWrite,HKLM,0x2,PE-Software\Classes\inifile\shell\print\command,,"notepad /p %1"
	RegWrite,HKLM,0x2,PE-Software\Classes\inifile\DefaultIcon,,"#$pSystemRoot#$p\shell32.dll#$c-151"
end
If,%pCheckBox6%,=,true,then
	RegWrite,HKLM,0x1,PE-Software\Classes\.inf,,inffile
	RegWrite,HKLM,0x2,PE-Software\Classes\inffile\shell\open\command,,"notepad #$q%1#$q"
	RegWrite,HKLM,0x2,PE-Software\Classes\inffile\shell\print\command,,"notepad /p %1"
	RegWrite,HKLM,0x2,PE-Software\Classes\inffile\DefaultIcon,,"#$pSystemRoot#$p\shell32.dll#$c-151"
end
RegUnLoad,PE-SOFTWARE

[Script-Pic]
0=3877,4988,ZLB64
1=eNqllldY09u2xf8UqRZAQBQ2RapEQgcpgigEQpQmPUSkNyHSpYWtUgQp20BAirClCCH03lGjICAghCQmIAgaeugiPYd9vnvPy325371jroc1v/GwfnOsl8n4yvgO8JhCoBCA6aTunxTAOAbEbhsZGIpbe7h5ByAfIL18PILFoQFuYHFbZbCSMsCYAG4BzP9PnbyixRXt7RLk7oZ8GBGtoqSsrHhylJTFlZW0VdW1VZW4rD2CQxQsbnEZGtka3Ta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