[Main]
Title           =Network Center
Description     =Adds the network center.
Selected=True
Level           =3
Author          =ChrisR
Version=24
Date=24.09-2018
Sizex86=|65545732:0:0
Sizex64=|73916156:0:0
Transl. DE      =Bazii

[Interface]
tEcho_1=Copying Files
tEcho_2=Writing registry entries ..


[Interface.07]
Description=Integriert das Netzwerkcenter in WinPE.
//
tEcho_1=Dateien werden kopiert
tEcho_2=Registry-Einträge werden geschrieben...

[Process]

Echo,%tEcho_1%

DirMake,%Target_Sys%\networklist
DirMake,%Target_Win%\L2Schemas
DirMake,%Target_Win%\schemas
DirMake,%Target_Sys%\wdi\perftrack
DirMake,%Target_Sys%\migration
DirMake,%Target_Sys%\wbem\%DistLang%

DirCopy, %Install_Sys%\networklist, %Target_Sys%\networklist\
DirCopy, %Install_Win%\L2Schemas, %Target_Win%\L2Schemas\
DirCopy, %Install_Win%\schemas, %Target_Win%\schemas\
FileCopy, %Install_Sys%\wdi\perftrack\Wlansvc.ptxml, %Target_Sys%\wdi\perftrack
FileCopy, %Install_Sys%\migration\netiomig.dll, %Target_Sys%\migration
If,Not,ExistDir,%Target_Sys%\icsxml, Then, DirCopy,%Install_Sys%\icsxml,%Target_Sys%\icsxml\
FileCopy, %Install_Sys%\wbem\*.*, %Target_Sys%\wbem
FileCopy, %Install_Sys%\wbem\%DistLang%\*.*,  %Target_Sys%\wbem\%DistLang%

if,%os%,=,win81,then
	DirMake,%Target_Sys%\wbem\en-US
	FileCopy, %Install_Sys%\wbem\en-US\*.*, %Target_Sys%\wbem\en-US
end

SetReqFile,%Install_win%\inf,%Distlang%,%FallBack%,%target_win%\inf
ReqFile,ndiscap.inf
ReqFile,netnwifi.inf
ReqFile,netvwifibus.inf
ReqFile,netvwififlt.inf
ReqFile,netvwifimp.inf

DirCopy,    %Install_Sys%\DriverStore\FileRepository\netnwifi.inf_*,    %Target_Sys%\DriverStore\FileRepository\
FileCopy,   %Install_Sys%\DriverStore\%DistLang%\netnwifi.inf_*,        %Target_Sys%\DriverStore\%DistLang%
DirCopy,    %Install_Sys%\DriverStore\FileRepository\netvwifibus.inf_*,    %Target_Sys%\DriverStore\FileRepository\
FileCopy,   %Install_Sys%\DriverStore\%DistLang%\netvwifibus.inf_*,        %Target_Sys%\DriverStore\%DistLang%
DirCopy,    %Install_Sys%\DriverStore\FileRepository\netvwififlt.inf_*,    %Target_Sys%\DriverStore\FileRepository\
FileCopy,   %Install_Sys%\DriverStore\%DistLang%\netvwififlt.inf_*,        %Target_Sys%\DriverStore\%DistLang%
DirCopy,    %Install_Sys%\DriverStore\FileRepository\netvwifimp.inf_*,    %Target_Sys%\DriverStore\FileRepository\
FileCopy,   %Install_Sys%\DriverStore\%DistLang%\netvwifimp.inf_*,        %Target_Sys%\DriverStore\%DistLang%

SetReqFile,%Install_sys%,%Distlang%,%FallBack%,%target_sys%
ReqFile,drivers\http.sys,1
ReqFile,drivers\ipnat.sys,1
ReqFile,drivers\ndiscap.sys,1
ReqFile,drivers\ndisimplatform.sys,1
ReqFile,drivers\nwifi.sys,1
ReqFile,drivers\tcpipreg.sys
ReqFile,drivers\tdx.sys
ReqFile,drivers\tunnel.sys,1
ReqFile,drivers\vwifibus.sys,1
ReqFile,drivers\vwififlt.sys
ReqFile,drivers\vwifimp.sys
if,%os%,=,win81,then, ReqFile,drivers\wfplwfs.sys

SetReqFile,%boot_sys%,%Distlang%,%FallBack%,%target_sys%

ReqFile,bfe.dll,1
ReqFile,  cmifw.dll
ReqFile,  cryptnet.dll
ReqFile,  dhcpcmonitor.dll,1
ReqFile,  dhcpcore.dll,1
ReqFile,  dhcpcore6.dll,1
ReqFile,  dhcpqec.dll,1
ReqFile,  dnsrslvr.dll,1
ReqFile,  eap3host.exe
ReqFile,  eapp3hst.dll
ReqFile,  eappcfg.dll,1
ReqFile,  eappgnui.dll,1
ReqFile,  eapphost.dll,1
ReqFile,  eappprxy.dll
ReqFile,  eapqec.dll,1
ReqFile,  eapsvc.dll,1
ReqFile,  fwremotesvr.dll
ReqFile,  httpapi.dll,1
ReqFile,  icfupgd.dll
ReqFile,  icmp.dll
ReqFile,  ikeext.dll,1
ReqFile,  ipconfig.exe,1
ReqFile,  keyiso.dll,1
ReqFile,  lmhsvc.dll,1
ReqFile,  mprext.dll,1
ReqFile,  mprmsg.dll,1
ReqFile,  mpssvc.dll,1
ReqFile,  msafd.dll
ReqFile,  msaudite.dll,1
ReqFile,  nbtstat.exe,1
ReqFile,  ncpa.cpl,1
ReqFile,  netbios.dll
ReqFile,  netbtugc.exe,1
ReqFile,  netcfg.exe,1
ReqFile,  netcfgx.dll,1
ReqFile,  neth.dll,1
ReqFile,  netiohlp.dll,1
ReqFile,  netiougc.exe,1
ReqFile,  netlogon.dll,1
ReqFile,  netman.dll,1
ReqFile,  netsh.exe,1
ReqFile,  netshell.dll,1
ReqFile,  nshwfp.dll,1
ReqFile,  oleacchooks.dll
if,%os%,=,win8,then,ReqFile,rascfg.dll,1
ReqFile,  srvsvc.dll,1
ReqFile,  sscore.dll,1
ReqFile,  sstpsvc.dll,1
ReqFile,  tcpipcfg.dll,1
ReqFile,  tcpmib.dll
ReqFile,  tcpsvcs.exe
ReqFile,  wfapigp.dll
ReqFile,  winipsec.dll
ReqFile,  winsockhc.dll,1
ReqFile,  wlanutil.dll,1
ReqFile,  wshelper.dll,1
ReqFile,  wshnetbs.dll
if,%os%,=,win81,then
	ReqFile,smbwmiv2.dll,1
	ReqFile,ttlsauth.dll,1
	ReqFile,ttlscfg.dll,1
end

SetReqFile,%Install_sys%,%Distlang%,%FallBack%,%target_sys%
ReqFile,  authfwcfg.dll,1
ReqFile,  authfwgp.dll,1
ReqFile,  authfwwizfwk.dll
ReqFile,  browser.dll,1
ReqFile,  connect.dll,1
ReqFile,  damm.dll,1
ReqFile,  dhcpsapi.dll,1
ReqFile,  dot3api.dll,1
ReqFile,  dot3cfg.dll,1
ReqFile,  dot3dlg.dll,1
ReqFile,  dot3gpclnt.dll,1
ReqFile,  dot3gpui.dll,1
ReqFile,  dot3hc.dll,1
ReqFile,  dot3mm.dll,1
ReqFile,  dot3msm.dll,1
ReqFile,  dot3svc.dll,1
ReqFile,  dot3ui.dll,1
ReqFile,  dtsh.dll,1
ReqFile,  dwrite.dll
ReqFile,  firewall.cpl
ReqFile,  firewallcontrolpanel.dll,1
ReqFile,  fwcfg.dll,1
ReqFile,  gptext.dll,1
ReqFile,  hgcpl.dll,1
ReqFile,  hnetcfg.dll,1
ReqFile,  hnetmon.dll,1
ReqFile,  icsigd.dll,1
ReqFile,  icsunattend.exe
ReqFile,  ieadvpack.dll,1
ReqFile,  ieframe.dll
ReqFile,  inetcomm.dll
ReqFile,  inetcpl.cpl,1
ReqFile,  ipnathlp.dll,1
ReqFile,  iprtprio.dll
ReqFile,  iprtrmgr.dll,1
ReqFile,  ipsecsnp.dll,1
ReqFile,  keymgr.dll,1
ReqFile,  l2gpstore.dll
ReqFile,  l2nacp.dll,1
if,%Arch%,=,x86,then,ReqFile,lanman.drv
ReqFile,  mprddm.dll,1
ReqFile,  mprdim.dll,1
ReqFile,  msi.dll
ReqFile,  msutb.dll,1
ReqFile,  ncaapi.dll
ReqFile,  ndfapi.dll,1
ReqFile,  ndfetw.dll
ReqFile,  ndfeventview.xml
ReqFile,  ndfhcdiscovery.dll
ReqFile,  ndiscapcfg.dll
ReqFile,  ndishc.dll,1
ReqFile,  ndisimplatform.dll
ReqFile,  netcenter.dll,1
ReqFile,  netevent.dll,1
ReqFile,  netid.dll,1
ReqFile,  netplwiz.dll,1
ReqFile,  netplwiz.exe,1
ReqFile,  netprofm.dll
ReqFile,  netprofmsvc.dll,1
ReqFile,  networkexplorer.dll
ReqFile,  networkitemfactory.dll,1
ReqFile,  networkstatus.dll,1
ReqFile,  nlahc.dll,1
ReqFile,  nlmgp.dll,1
ReqFile,  nlmproxy.dll
ReqFile,  nlmsprep.dll
ReqFile,  npmproxy.dll

ReqFile,  onex.dll,1
ReqFile,  onexui.dll,1
ReqFile,  provcore.dll,1
ReqFile,  puiapi.dll,1
ReqFile,  rasmm.dll,1
ReqFile,  rtm.dll,1
ReqFile,  sc.exe
ReqFile,  seclogon.dll
ReqFile,  setnetworklocation.dll,1
ReqFile,  shsvcs.dll
ReqFile,  shwebsvc.dll,1
ReqFile,  shrpubw.exe,1
ReqFile,  sscoreext.dll,1
ReqFile,  tapi32.dll
ReqFile,  telephon.cpl,1
ReqFile,  van.dll,1
ReqFile,  wcmapi.dll
ReqFile,  wcmcsp.dll
ReqFile,  wcmsvc.dll,1
ReqFile,  wfhc.dll,1
ReqFile,  winrnr.dll
ReqFile,  wlanapi.dll,1
ReqFile,  wlancfg.dll,1
ReqFile,  wlanconn.dll,1
ReqFile,  wlandlg.dll,1
ReqFile,  wlanext.exe,1
ReqFile,  wlangpui.dll,1
ReqFile,  wlanhc.dll,1
ReqFile,  wlanhlp.dll
ReqFile,  wlaninst.dll
ReqFile,  wlanmm.dll,1
ReqFile,  wlanmsm.dll
ReqFile,  wlanpref.dll,1
ReqFile,  wlanradiomanager.dll
ReqFile,  wlansec.dll
ReqFile,  wlansvc.dll,1
ReqFile,  wlanui.dll,1
ReqFile,  wmiclnt.dll
ReqFile,  wshqos.dll,1
ReqFile,  wwaninst.dll
ReqFile,  wwanmm.dll,1
ReqFile,  wwanradiomanager.dll
ReqFile,  xwizard.dtd
ReqFile,  xwizard.exe,1
ReqFile,  xwizards.dll,1
ReqFile,  xwreg.dll
ReqFile,  xwtpdui.dll,1
ReqFile,  xwtpw32.dll,1
if,%os%,=,win81,then
	ReqFile,cngcredui.dll,1
	ReqFile,cngprovider.dll,1
	ReqFile,comsvcs.dll
	if,%Arch%,=,x64,then,ReqFile,cryptcatsvc.dll
	ReqFile,Dot3Conn.dll,1
	ReqFile,fontext.dll,1
	ReqFile,fundisc.dll,1
	ReqFile,pnidui.dll,1
	ReqFile,shrpubw.exe,1
	ReqFile,simauth.dll,1
	ReqFile,simcfg.dll,1
	ReqFile,SMBHelperClass.dll,1
	ReqFile,wcncsvc.dll,1
	ReqFile,WcnNetsh.dll,1
	ReqFile,wcnwiz.dll,1
	ReqFile,webcheck.dll,1
end

if,%Arch%,=,x86,then
  SetReqFile,%Install_sys%,%Distlang%,%FallBack%,%target_sys%
Else
  SetReqFile,%Install_wow%,%Distlang%,%FallBack%,%target_wow%
end
ReqFile,msvcrt20.dll
ReqFile,olecli32.dll
ReqFile,olethk32.dll


if,%os%,=,win8,then
	FileCopy,%install_Sys%\drivers\vwifibus.sys,%Target_Win%\inf\vwifibus.sys

	Echo,%tEcho_2%
	RegLoad,%RegSystem%,PE-SYSTEM
	RegLoad,%RegSoftware%,PE-SOFTWARE

	System,FileRedirect,Off
	ShellExecute,Hide,%WindowsDir%\system32\reg.exe, import #$q%ScriptDir%\Network Center\Network Center8_%Arch%.reg#$q
	If,Not,%ExitCode%,=,0,Then,Halt,Error importing [Network Center8_%Arch%.reg]
	System,FileRedirect,On

	ShellExecute,Hide,%Tools%\%HostArch%\SetAcl.exe, -on #$q%Target_Sys%\networklist#$q -ot file -actn ace -ace #$qn:S-1-5-80-3635958274-2059881490-2225992882-984577281-633327304;p:full;s:y#$q
	ShellExecute,Hide,%Tools%\%HostArch%\SetAcl.exe, -on #$qHKLM\PE-SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList#$q -ot reg -actn ace -ace #$qn:S-1-5-80-3635958274-2059881490-2225992882-984577281-633327304;p:full;s:y#$q
	ShellExecute,Hide,%Tools%\%HostArch%\SetAcl.exe, -on #$qHKLM\PE-SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Nla#$q -ot reg -actn ace -ace #$qn:S-1-5-80-3141615172-2057878085-1754447212-2405740020-3916490453;p:full;s:y#$q
	ShellExecute,Hide,%Tools%\%HostArch%\SetAcl.exe, -on #$qHKLM\PE-SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Permissions#$q -ot reg -actn ace -ace #$qn:S-1-5-80-3981856537-581775623-1136376035-2066872258-409572886;p:full;s:y#$q
	ShellExecute,Hide,%Tools%\%HostArch%\SetAcl.exe, -on #$qHKLM\PE-SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Permissions#$q -ot reg -actn ace -ace #$qn:S-1-5-32-556;p:full;s:y#$q

	// Disabled Firewall by default ((Start values 2=Automatic, 3=Manual, 4=Disabled) may be modified in Optimizations.
	RegWrite,HKLM,0x4,PE-SYSTEM\ControlSet001\Services\MpsSvc,Start,4,NoWarn
	RegWrite,HKLM,0x4,PE-SYSTEM\ControlSet001\services\SharedAccess\Parameters\FirewallPolicy\DomainProfile,EnableFirewall,0,NoWarn
	RegWrite,HKLM,0x4,PE-SYSTEM\ControlSet001\services\SharedAccess\Parameters\FirewallPolicy\PublicProfile,EnableFirewall,0,NoWarn
	RegWrite,HKLM,0x4,PE-SYSTEM\ControlSet001\services\SharedAccess\Parameters\FirewallPolicy\StandardProfile,EnableFirewall,0,NoWarn

	RegUnLoad,PE-SOFTWARE
	RegUnLoad,PE-SYSTEM
end

if,%os%%PEMode%,=,win81PE,then
	IniWrite,%Target_sys%\PEinit.ini,init,09,Runwait|hide|x:\windows\system32\drvload.exe|%SystemRoot%\inf\msports.inf >nul
		
	Echo,%tEcho_2%
	RegLoad,%RegSystem%,PE-SYSTEM
	RegLoad,%RegSoftware%,PE-SOFTWARE
	RegLoad,%Install_Sys%\config\system,Ins-SYSTEM
	RegLoad,%Install_Sys%\config\software,Ins-SOFTWARE

	set,%RegExe%,%WindowsDir%\System32\reg.exe
	
	//nla
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-System\ControlSet001\Control\SafeBoot\Network\NlaSvc HKLM\PE-System\ControlSet001\Control\SafeBoot\Network\NlaSvc /s /f"
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-System\ControlSet001\Services\NlaSvc HKLM\PE-System\ControlSet001\Services\NlaSvc /s /f"
	
	//WcmSVC
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{67d07935-283a-4791-8f8d-fa9117f3e6f2} HKLM\PE-SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{67d07935-283a-4791-8f8d-fa9117f3e6f2} /s /f"
	//ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SOFTWARE\Microsoft\wcmsvc HKLM\PE-SOFTWARE\Microsoft\wcmsvc /s /f"
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SOFTWARE\Policies\Microsoft\Windows\WcmSvc HKLM\PE-SOFTWARE\Policies\Microsoft\Windows\WcmSvc /s /f"
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SOFTWARE\Microsoft\Windows\CurrentVersion\SettingSync\WindowsSettingHandlers\Tethering HKLM\PE-SOFTWARE\Microsoft\Windows\CurrentVersion\SettingSync\WindowsSettingHandlers\Tethering /s /f"
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-System\ControlSet001\Services\Wcmsvc HKLM\PE-System\ControlSet001\Services\Wcmsvc /s /f"
	
	//Dot3
	ShellExecute,hide,%Regexe%,"Copy HKLM\Ins-Software\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{b92cf7fd-dc10-4c6b-a72d-1613bf25e597} HKLM\PE-Software\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{b92cf7fd-dc10-4c6b-a72d-1613bf25e597} /s /f"
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-System\ControlSet001\Control\Winlogon\Notifications\Components\Dot3svc HKLM\PE-SYSTEM\ControlSet001\Control\Winlogon\Notifications\Components\Dot3svc /s /f"
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-System\ControlSet001\Services\dot3svc HKLM\PE-SYSTEM\ControlSet001\Services\dot3svc /s /f"

	// WlanSVC
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{9580d7dd-0379-4658-9870-d5be7d52d6de} HKLM\PE-SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{9580d7dd-0379-4658-9870-d5be7d52d6de} /s /f"
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SOFTWARE\Microsoft\WlanSvc HKLM\PE-SOFTWARE\Microsoft\WlanSvc /s /f"
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Control\NetTrace\Scenarios\WLAN HKLM\PE-System\ControlSet001\Control\NetTrace\Scenarios\WLAN /s /f"
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Control\Winlogon\Notifications\Components\Wlansvc HKLM\PE-System\ControlSet001\Control\Winlogon\Notifications\Components\Wlansvc /s /f"
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Services\EventLog\System\Microsoft-Windows-WLAN-AutoConfig HKLM\PE-System\ControlSet001\Services\EventLog\System\Microsoft-Windows-WLAN-AutoConfig /s /f"
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Services\WlanSvc HKLM\PE-System\ControlSet001\Services\WlanSvc /s /f"

	//NativeWifiP
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Control\Network\{4d36e974-e325-11ce-bfc1-08002be10318}\{E475CF9A-60CD-4439-A75F-0079CE0E18A1} HKLM\PE-System\ControlSet001\Control\Network\{4d36e974-e325-11ce-bfc1-08002be10318}\{E475CF9A-60CD-4439-A75F-0079CE0E18A1} /s /f"
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Services\NativeWifiP HKLM\PE-System\ControlSet001\Services\NativeWifiP /s /f"

	//vwifibus
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Services\vwifibus HKLM\PE-System\ControlSet001\Services\vwifibus /s /f"

	//wifi flt
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Services\vwififlt HKLM\PE-System\ControlSet001\Services\vwififlt /s /f"
// ??	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Control\Network\{4d36e974-e325-11ce-bfc1-08002be10318}\{5CBF81BF-5055-47CD-9055-A76B2B4E3698} HKLM\PE-System\ControlSet001\Control\Network\{4d36e974-e325-11ce-bfc1-08002be10318}\{5CBF81BF-5055-47CD-9055-A76B2B4E3698} /s /f"

	if,%os%,=,win10,then
	// Holger: Fix WFPLWFS and both services nativewifip, wlanscv.
	  RegWrite,HKLM,0x1,PE-System\ControlSet001\Control\NetworkSetup2\Filters\{E475CF9A-60CD-4439-A75F-0079CE0E18A1}\Kernel,FilterClass,ms_medium_converter_top
	  RegWrite,HKLM,0x1,PE-System\ControlSet001\Control\NetworkSetup2\Filters\{3BFD7820-D65C-4C1B-9FEA-983A019639EA}\Kernel,FilterClass,ms_medium_converter_top
	  RegWrite,HKLM,0x1,PE-System\ControlSet001\Control\NetworkSetup2\Filters\{B70D6460-3635-4D42-B866-B8AB1A24454C}\Kernel,FilterClass,ms_medium_converter_top

	  RegWrite,HKLM,0x1,PE-System\ControlSet001\Control\SecurityProviders,SecurityProviders,credssp.dll
	end

	//iphlpsvc
	//ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Services\iphlpsvc HKLM\PE-System\ControlSet001\Services\iphlpsvc /s /f"
	
	//WcncSvc
  	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{c100becc-d33a-4a4b-bf23-bbef4663d017} HKLM\PE-SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{c100becc-d33a-4a4b-bf23-bbef4663d017} /s /f"
  	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{c100becf-d33a-4a4b-bf23-bbef4663d017} HKLM\PE-SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{c100becf-d33a-4a4b-bf23-bbef4663d017} /s /f"
  	ShellExecute,hide,%Regexe%,"Copy HKLM\Ins-System\ControlSet001\Services\EapHost HKLM\PE-System\ControlSet001\Services\EapHost /s /f"
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Control\wcncsvc HKLM\PE-System\ControlSet001\Control\wcncsvc /s /f"
  	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Services\wcncsvc HKLM\PE-System\ControlSet001\Services\wcncsvc /s /f"
	
	// Ndisuio
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Services\Ndisuio HKLM\PE-System\ControlSet001\Services\Ndisuio /s /f"

	//NDIS
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{11c5d8ad-756a-42c2-8087-eb1b4a72a846} HKLM\PE-SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{11c5d8ad-756a-42c2-8087-eb1b4a72a846} /s /f"
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Control\NetTrace\Scenarios\NDIS HKLM\PE-System\ControlSet001\Control\NetTrace\Scenarios\NDIS /s /f"
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Services\NDIS HKLM\PE-System\ControlSet001\Services\NDIS /s /f"

	// NDIS Tapi
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Services\NdisTapi HKLM\PE-System\ControlSet001\Services\NdisTapi /s /f"
	
	// NdisWan
  	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Control\Network\{4d36e975-e325-11ce-bfc1-08002be10318}\{5357414E-4449-004E-7CF1-D431BBD4B8EB} HKLM\PE-System\ControlSet001\Control\Network\{4d36e975-e325-11ce-bfc1-08002be10318}\{5357414E-4449-004E-7CF1-D431BBD4B8EB} /s /f"
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Services\NdisWan HKLM\PE-System\ControlSet001\Services\NdisWan /s /f"

	//NdisCap
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{2ed6006e-4729-4609-b423-3ee7bcd678ef} HKLM\PE-SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{2ed6006e-4729-4609-b423-3ee7bcd678ef} /s /f"
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Control\Network\{4d36e974-e325-11ce-bfc1-08002be10318}\{EA24CD6C-D17A-4348-9190-09F0D5BE83DD} HKLM\PE-System\ControlSet001\Control\Network\{4d36e974-e325-11ce-bfc1-08002be10318}\{EA24CD6C-D17A-4348-9190-09F0D5BE83DD} /s /f"
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Control\SafeBoot\Network\ndiscap HKLM\PE-System\ControlSet001\Control\SafeBoot\Network\ndiscap /s /f"
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Services\NdisCap HKLM\PE-System\ControlSet001\Services\NdisCap /s /f"
	
	// Wfplwfs
 	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Control\Network\{4d36e974-e325-11ce-bfc1-08002be10318}\{3BFD7820-D65C-4C1B-9FEA-983A019639EA} HKLM\PE-System\ControlSet001\Control\Network\{4d36e974-e325-11ce-bfc1-08002be10318}\{3BFD7820-D65C-4C1B-9FEA-983A019639EA} /s /f"
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Control\Network\{4d36e974-e325-11ce-bfc1-08002be10318}\{B70D6460-3635-4D42-B866-B8AB1A24454C} HKLM\PE-System\ControlSet001\Control\Network\{4d36e974-e325-11ce-bfc1-08002be10318}\{B70D6460-3635-4D42-B866-B8AB1A24454C} /s /f"
	If,%Arch%,=,x64,then,ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Control\Network\{4d36e974-e325-11ce-bfc1-08002be10318}\{E7C3B2F0-F3C5-48DF-AF2B-10FED6D72E7A} HKLM\PE-System\ControlSet001\Control\Network\{4d36e974-e325-11ce-bfc1-08002be10318}\{E7C3B2F0-F3C5-48DF-AF2B-10FED6D72E7A} /s /f"
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Services\WFPLWFS HKLM\PE-System\ControlSet001\Services\WFPLWFS /s /f"

	// Browser
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Control\SafeBoot\Network\Browser HKLM\PE-System\ControlSet001\Control\SafeBoot\Network\Browser /s /f"
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Services\Browser HKLM\PE-System\ControlSet001\Services\Browser /s /f"
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Services\EventLog\System\Browser HKLM\PE-System\ControlSet001\Services\EventLog\System\Browser /s /f"

	//tcpip
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-Software\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{017ba13c-9a55-4f1f-8200-323055aac810} HKLM\PE-Software\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{017ba13c-9a55-4f1f-8200-323055aac810} /s /f"
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-System\ControlSet001\Services\tcpipreg HKLM\PE-System\ControlSet001\Services\tcpipreg /s /f"

	RegWrite,HKLM,0x4,PE-System\ControlSet001\Services\TCPIPTUNNEL,NdisMajorVersion,6
	RegWrite,HKLM,0x4,PE-System\ControlSet001\Services\TCPIPTUNNEL,NdisMinorVersion,40
	RegWrite,HKLM,0x4,PE-System\ControlSet001\Services\TCPIPTUNNEL,DriverMajorVersion,0
	RegWrite,HKLM,0x4,PE-System\ControlSet001\Services\TCPIPTUNNEL,DriverMinorVersion,0
	
	//tdx
	ShellExecute,hide,%RegExe%,"Copy HKLM\Ins-SYSTEM\ControlSet001\Services\tdx HKLM\PE-System\ControlSet001\Services\tdx /s /f"
	
	RegUnLoad,PE-SYSTEM
	RegUnLoad,PE-SOFTWARE
	RegUnLoad,Ins-SOFTWARE
	RegUnLoad,Ins-SYSTEM
end

//----WINDOWS 8.1
// setnetworklocation.dll
If,%NT%,=,6.3,Then
//	If,%pcheckbox1%,=,True,Then
		If,ExistFile,%target_sys%\setnetworklocation.dll,Then,FileDelete,%target_sys%\setnetworklocation.dll
//	End
End

[Script-Pic]
0=1118,1460,ZLB64
1=eNr7f+P/AwYBLzdPNwZGRgYGRiBk+H+boYWBk42Ng42Vk4Odg4uTk4tXjI+Xh4dXSlhEQExeRlFBXkZOTlndSEtZVV9VTk7bWkff2NTCwkJRy9bRxszXyNzFjpGTi4uXm1eSj0/SVEVOxZQQMDACEpompsYmQNoEyPp/gEGQg8GAwYCZUYmBSZCRWZDx/xEGCaAzGUEuhQM2dlYOZqCMoQADIzMzEwsLCxszRIaRiZmFgVWQTYhd0TFQWMkwsXDixoMiokYLH35QLmoEGcbIwIxiFgMzCysTyBo1QQYmJiYGZk64LCOQxyKoZFjIKiSiqOwYmNgo/P8WAw8zI9BtzIIM9gw7rhycZ270bKHZ0aiuQu0P9wxrcv9WlyfLTfWY96M7f8LPL5lL9Z8Yx0y2qvvd/0h4J3eA19SJ/QavQ3/rS81pTyz41Lh1pjvPq40lpep/erYw2HzbPX+r+JWaqG0vuy9s923WPc6tUbFy0SS2hy+K3K30k67Nnxf76HDm3dMVzxm+eYbfai+MCi4yPfM8wL3j8tPJ/xZqMj9x/HlR84C/kNb2aduNcmwPueyN2qpd3h2T+XGx5QNPty95UcX9hfOjLvYaGoVtYdHUcmB5Luspn9X1IjdBKTPi45wI1ta1yg/n/H21eamsUS6T186Vb7TtjjDZbVlXpnBcPWb700tZ23Vttl69eVque8e5RI7Ca7M/KR7J8+pUSOhbPNfvi9tmt6071rHeup6bn816RHPJWkYXAY4Dtv1vvSu2PNm4+NIVjnOelSc1PpkZP5U5+bf93MIwTuGSc4vyXGZMSmrJ8+QzW/JAwNX05o8vd73bmfe+/WyZbaAcvEAxYs1HdaM/1TlhKYqRzj0PVt+f1VbYXzWTfUftqvw+xRPlYs9PTwh+tCaPO2pqT+8queV7FS9brTXXzr1XUVyk+zFsc/Ndrn9aNis1G2v43Q54yXivOO48oW7LMTmJ7LmyHQp87t8S3yg6Cu2psE/10MiLucb4gmkC+1/rVVOTmnS3RXwMWrLCaO5Mr81zimQ+GJ/gm2JltyYv+kSm9rNPTW78xX4Ll3q0nAr/1Zx59+Nxq6nT/7pNO6a+RrfKWinNuEZ72mvvKKElGk23Jjm1f9+bcvZKmal/kfKGm9G9+llXuILKSyWX5runeZXtuyTrn7pEyrz04dVJrxWPn84z+NyuFex1QH2nqO1B5TZ21SJJWzaGv2eqb1+7f0rVuTc1OnNa73qGJUvW2u6tfC77gnd2u4FpyMpe13Yt5o3bnlTclMv59e6c9a/PL32ffljm7DA792rGK6aDv+pN1y9fU65to6TSPi/Sdvan/g7rPv+aay93K227keuy8brJHd/n7Qva1vzR2XnzfWGqXuWE01rWE5bwpSxpbOJ3Kj4TGtav91qXb+GyCwu2zotTEjF+++y9R8b22NQjpu1pYQHsmv9vAgBkZLiI
