[main]
Title=QtWeb
Description=Adds QtWeb Internet Browser
Selected=True
Author=Kare
Level=6
Version=7
Date=22.03.2020
Translation_DE=MaineCoon
UrlPath_1=http://www.qtweb.net/downloads/QtWeb.zip
UrlPath_2=
UrlPath_3=

[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

ptextbox2=http://www.google.com/,Start page:,0,0,10,200,180,21
pTextLabel1=Language:,10,0,Default,250,62,70,20
pscrollbox1=English,1,0,0,320,60,100,20,Chinese,Czech,English,German,French,Hungarian,Italian,Russian,Spanish,Swedish
//
tEcho_1=Processing 'QTWeb'...
tEcho_2=Creating shortcuts...
tEcho_3=Downloading QTWeb...
tEcho_4=Copying program files...

tmsg1=Check download...
tmsg2=Load File from provider...
tmsg3=Download is not available.#$xSkript aborted.

tLangList=zh_cn|cz|en_US|de|fr|hu|it|ru_RU|es|sv

[Interface.07]
Description=Integriert den Internet Browser QtWeb in WindowsPE

pCheckBox1=False,Starte vom Ram (boot.wim),0,3,12,5,150,18
pFrame1=Verknüpfungen,0,0,0,10,40,200,105
pCheckBox2=True,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

ptextbox2=http://www.google.de/,Startseite:,0,0,10,160,180,21
ptextlabel1=Sprache:,10,0,Default,250,62,60,20
pscrollbox1=Deutsch,1,0,0,320,60,100,20,Chinesisch,Deutsch,Englisch,Französisch,Italienisch,Russisch,Spanisch,Schwedisch,Tschechisch,Ungarisch

techo_1='QTWeb' wird ausgeführt...
techo_2=Startmenü-Einträge werden erstellt...
techo_3=Download von QTWeb...
techo_4=Programm-Dateien werden kopiert...
tmsg1=Prüfe Download...
tmsg2=Lade Datei vom Anbieter...
tmsg3=Download ist nicht verfügbar.#$xSkript wird abgebrochen.
tlanglist=zh_cn|de|en_US|fr|it|ru_RU|es|sv|cz|hu
pscrollbox2=Deutsch,1,0,0,320,60,100,20,Chinesisch,Deutsch,Englisch,Französisch,Italienisch,Russisch,Spanisch,Schwedisch,Tschechisch,Ungarisch

[Process]

Echo,%tEcho_1%
RunFromRAM,%pCheckBox1%

set,%ProgramTitle%,QtWeb
set,%ProgramEXE%,QtWeb.exe
set,%ProgramFolder%,QtWeb
set,%prgdir%,%Target_prog%\%ProgramFolder%

If,not,ExistFile,%ScriptDir%\%ProgramFolder%-files\%ProgramEXE%,Then

	Set,%UrlPath%,http://www.qtweb.net/downloads/QtWeb.zip
	set,%FilePath%,%AppsDir%\QtWeb.zip

	If,not,ExistFile,%FilePath%,Then
		echo,%tmsg1%
		If,ExistWebFile,%UrlPath%,Then
			echo,%tmsg2%
			webget,%UrlPath%,%FilePath%,1
		Else
			Message,%tmsg3%,ERROR,6
			Exit
		End
	end
	dirmake,%ScriptDir%\%ProgramFolder%-files
	Pack,Decompress,%FilePath%,%ScriptDir%\%ProgramFolder%-files\,%ProgramEXE%
end

Echo,%tEcho_2%
If,%pCheckBox2%,=,True,then,Add_Shortcut,Desktop,".","%PE_Programs%\%ProgramFolder%\%ProgramEXE%",%ProgramTitle%
If,%pCheckBox3%,=,True,then,Add_Shortcut,StartMenu,".","%PE_Programs%\%ProgramFolder%\%ProgramEXE%",%ProgramTitle%
//If,%pCheckBox4%,=,True,then,Add_Shortcut,Quicklaunch,".","%PE_Programs%\%ProgramFolder%\%ProgramEXE%",%ProgramTitle%

Echo,%tEcho_4%
DirMake,%prgdir%
FileCopy,%ScriptDir%\QtWeb-files\QtWeb.exe,%prgdir%
IF,%NTVersion%,=,5,Then,Require_file,cryptsvc.dll


DirMake,%prgdir%\QtWebSettings\QtWeb.NET

Interface,GetIndex,pScrollBox1,%Idx%
String,%lang%,SPLIT,%tLangList%,|,%Idx%

IniWrite,%prgdir%\QtWebSettings\QtWeb.NET\QtWeb Internet Browser.ini,%General,Language,%lang%
IniWrite,%prgdir%\QtWebSettings\QtWeb.NET\QtWeb Internet Browser.ini,MainWindow,home,%pTextBox2%
IniWrite,%prgdir%\QtWebSettings\QtWeb.NET\QtWeb Internet Browser.ini,downloadmanager,askForFileName,true
IniWrite,%prgdir%\QtWebSettings\QtWeb.NET\QtWeb Internet Browser.ini,downloadmanager,downloadDirectory,%RAMDrive%\\
IniWrite,%prgdir%\QtWebSettings\QtWeb.NET\QtWeb Internet Browser.ini,ApprovedSSL,ApproveAll,true

[Script-Pic]
0=1684,2064,ZLB64
1=eNqd0WdUk2cUB/D3JQkJS8hCimSQBIhsAoiQYooYkKjMQBBaLEtFkSEoiEEUxJEjoClUxVXDCi6GCQRQkARNxYFhCSgOBEWKFKxIQCQNno4v/dD2/5zzfLn3ec79navqU70ADFhePl4ACAIAqD6AagGgewYyPdh+gW7ELTE225JitxB3O9jaE6m7UuISthB9WN5Elj/Tm7h7BW25NTF5V2R8XOoeojtxpbO26gngCcAgUCgUAlNfMBhME66LgKujr6OjpYvUR6GQ+kgk2tBkKRpjjEUijUyNjHE4AoGAXkqikPAUEzwBv/gJqH4K14QvQSCW4DFIDP4/R3ULQCIAGkCDgCRAAwlCkKCqDSCokTDwS4A/AmpAoOopEVraOuoGsQGgAUIgGur51QB1NVNdB6BIGMrUwUMTHRAJJyVjaAdOXESQV9e0YgMVkxTHqJ3ZWtqGS42+MjYzt6Aut3RyXuGy0tXNcw3Ty3utDyuIHRzCCd0YFh0Tu3nL1rhtKam7dqel78nIOZh76PCRozz+D4VFP548dbpYUFJaVl4hrLxUe10krquXNDRKZW2378h/vtve2dXd0/u4r3/g5dCr4ZHXb0bfjk29/+3D9McZ5ezcogsEIOCf+UcXUu3SUK8FCl90gRppiw1IKMzUQRPlEQCPTEaTaAcQmNUnLta0apEdAyexUTsV2oYUp5dmU4u0L7J/B8v+X7K/YH+7BgBdCKheHgQJMIBPtjViFWDQH0cn0SsaC4eo5GXn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