1. Is network started: yes
-> but not with penetcfg, because I only have WAIK as source (network is working)
2. I changed my script to use the new way to handle reg-values (also have added the CLSID).
-> even can't start npf - I get the same error mentioned above (System error 4 - System can not open the file).
I see the driver under System Explorer -> System -> Driver.
Here is my modified script:
[main]
Title=WinPcap 4.0.2
Description=
Selected=True
Level=5
Version=1
Author=Hawk
Date=2008-08-02
Contact=
[variables]
%ProgramFolder%=WinPcap
%ProgramEXE%=
%ProgramTitle%=WinPcap
%StartMenuAppGroup%=
%DownloadURL%=http://www.winpcap.org/install/bin/WinPcap_4_0_2.exe
%Filename%=WinPcap_4_0_2.exe
%ArchiveSubDir%=
[Process]
Echo,Processing %ProgramTitle%...
# download
Run,%ScriptFile%,Download,%DownloadURL%,%Filename%
# extract
Run,%ScriptFile%,Extract,%Filename%
DirDelete,%ScriptDir%\%ProgramFolder%\$R0
DirDelete,%ScriptDir%\%ProgramFolder%\$PLUGINSDIR
DirDelete,%ScriptDir%\%ProgramFolder%\$TEMP
DirCopy,%ScriptDir%\%ProgramFolder%\$SYSDIR\*,%ScriptDir%\%ProgramFolder%
DirDelete,%ScriptDir%\%ProgramFolder%\$SYSDIR
# registry-settings
Run,%ScriptFile%,RegistrySettings
# copy
#CopyProgram,"%ScriptDir%\%ProgramFolder%"
DirCopy,%ScriptDir%\%ProgramFolder%\*,%TargetDir%\Windows\System32
AddAutoRun,"NetGroup Packet Filter Driver","x:\windows\system32\net.exe","start #$qNPF#$q",3
# cleanup
DirDelete,"%ScriptDir%\%ProgramFolder%"
[Download]
If,ExistFile,"%ScriptDir%\#2",If,%pCheckBox1%,Equal,True,FileDelete,"%ScriptDir%\#2"
WebGetIfNotExist,"#1","%ScriptDir%\#2"
[Extract]
If,#2,Equal,"",Set,%OutputFolder%,"%ProgramFolder%"
If,#2,NotEqual,"",Set,%OutputFolder%,"#2"
ShellExecute,Hide,"%Tools%\7z.exe","x -y -o#$q%ScriptDir%\%OutputFolder%#$q #$q%ScriptDir%\#1#$q"
If,%ArchiveSubDir%,NotEqual,"",If,ExistDir,"%ScriptDir%\%OutputFolder%\%ArchiveSubDir%",DirMove,"%ScriptDir%\%OutputFolder%\%ArchiveSubDir%\*","%ScriptDir%\%OutputFolder%"
If,%ArchiveSubDir%,NotEqual,"",If,ExistDir,"%ScriptDir%\%OutputFolder%\%ArchiveSubDir%",DirDelete,"%ScriptDir%\%OutputFolder%\%ArchiveSubDir%"
[RegistrySettings]
Echo,"Loading registry hive: [software]"
Hive_Load,HKU
Echo,"Writing new values on registry hive.."
reg_add,0x2,"%reg%\WinPcap","","%SystemDrive%\Programs\WinPcap"
reg_add,0x0,"%reg%\Classes\AppID\{D413C502-3FAA-11D0-B254-444553540000}"
reg_add,0x1,"%reg%\Classes\CLSID\{944AD531-B09D-11CE-B59C-00AA006CB37D}","","PSFactoryBuffer"
reg_add,0x2,"%reg%\Classes\CLSID\{944AD531-B09D-11CE-B59C-00AA006CB37D}\InProcServer32","","PsNPPAgn.dll"
reg_add,0x1,"%reg%\Classes\CLSID\{944AD531-B09D-11CE-B59C-00AA006CB37D}\InProcServer32","ThreadingModel","Both"
reg_add,0x1,"%reg%\Classes\CLSID\{D413C502-3FAA-11D0-B254-444553540000}","","NPPAgent"
reg_add,0x1,"%reg%\Classes\CLSID\{D413C502-3FAA-11D0-B254-444553540000}","AppID","{D413C502-3FAA-11D0-B254-444553540000}"
reg_add,0x2,"%reg%\Classes\CLSID\{D413C502-3FAA-11D0-B254-444553540000}\LocalServer32","","%SystemRoot%\system32\NPP\NPPAgent.exe"
reg_add,0x1,"%reg%\Classes\CLSID\{D413C502-3FAA-11D0-B254-444553540000}\LocalServer32","ThreadingModel","Apartment"
reg_add,0x1,"%reg%\Classes\Interface\{394540A0-6FCF-11D0-ACE0-0000F80114D3}","","IRemoteDelaydC"
reg_add,0x1,"%reg%\Classes\Interface\{394540A0-6FCF-11D0-ACE0-0000F80114D3}\NumMethods","","16"
reg_add,0x1,"%reg%\Classes\Interface\{394540A0-6FCF-11D0-ACE0-0000F80114D3}\ProxyStubClsid32","","{944AD531-B09D-11CE-B59C-00AA006CB37D}"
reg_add,0x1,"%reg%\Classes\Interface\{8947C648-3833-11D1-8682-00C04FBFE171}","","IRemoteCallBack"
reg_add,0x1,"%reg%\Classes\Interface\{8947C648-3833-11D1-8682-00C04FBFE171}\NumMethods","","4"
reg_add,0x1,"%reg%\Classes\Interface\{8947C648-3833-11D1-8682-00C04FBFE171}\ProxyStubClsid32","","{944AD531-B09D-11CE-B59C-00AA006CB37D}"
reg_add,0x1,"%reg%\Classes\Interface\{944AD531-B09D-11CE-B59C-00AA006CB37D}","","IRemoteStats"
reg_add,0x1,"%reg%\Classes\Interface\{944AD531-B09D-11CE-B59C-00AA006CB37D}\NumMethods","","16"
reg_add,0x1,"%reg%\Classes\Interface\{944AD531-B09D-11CE-B59C-00AA006CB37D}\ProxyStubClsid32","","{944AD531-B09D-11CE-B59C-00AA006CB37D}"
reg_add,0x1,"%reg%\Classes\Interface\{944AD532-B09D-11CE-B59C-00AA006CB37D}","","IRemoteFinder"
reg_add,0x1,"%reg%\Classes\Interface\{944AD532-B09D-11CE-B59C-00AA006CB37D}\NumMethods","","4"
reg_add,0x1,"%reg%\Classes\Interface\{944AD532-B09D-11CE-B59C-00AA006CB37D}\ProxyStubClsid32","","{944AD531-B09D-11CE-B59C-00AA006CB37D}"
reg_add,0x1,"%reg%\Classes\Interface\{E99A04AB-AB95-11D0-BE96-00A0C94989DE}","","IRemoteESP"
reg_add,0x1,"%reg%\Classes\Interface\{E99A04AB-AB95-11D0-BE96-00A0C94989DE}\NumMethods","","13"
reg_add,0x1,"%reg%\Classes\Interface\{E99A04AB-AB95-11D0-BE96-00A0C94989DE}\ProxyStubClsid32","","{944AD531-B09D-11CE-B59C-00AA006CB37D}"
Hive_Unload,HKU
Echo,"Loading registry hive: [setupreg.hiv]"
Hive_Load,HKLM
Echo,"Writing new values on registry hive.."
reg_add,0x1,"%reg%\ControlSet001\Services\NPF","DisplayName","NetGroup Packet Filter Driver"
reg_add,0x4,"%reg%\ControlSet001\Services\NPF","ErrorControl","1"
reg_add,0x2,"%reg%\ControlSet001\Services\NPF","ImagePath","System32\drivers\npf.sys"
reg_add,0x4,"%reg%\ControlSet001\Services\NPF","Start","2"
reg_add,0x4,"%reg%\ControlSet001\Services\NPF","Type","1"
reg_add,0x3,"%reg%\ControlSet001\Services\NPF\Security","Security","01","00","14","80","90","00",\
"00","00","9c","00","00",\
"00","14","00","00","00","30","00","00","00","02","00","1c","00","01","00","00","00","02","80","14","00",\
"ff","01","0f","00","01","01","00","00","00","00","00","01","00","00","00","00","02","00","60","00","04","00",\
"00","00","00","00","14","00","fd","01","02","00","01","01","00","00","00","00","00","05","12","00","00",\
"00","00","00","18","00","ff","01","0f","00","01","02","00","00","00","00","00","05","20","00","00","00","20",\
"02","00","00","00","00","14","00","8d","01","02","00","01","01","00","00","00","00","00","05","0b","00","00",\
"00","00","00","18","00","fd","01","02","00","01","02","00","00","00","00","00","05","20","00","00","00","23",\
"02","00","00","01","01","00","00","00","00","00","05","12","00","00","00","01","01","00","00","00","00","00",\
"05","12","00","00","00"
Hive_Unload,HKLM
[Interface]
pCheckBox1="force download",1,3,0,0,200,18,False