[Main]
Title=Support for running *.cpl files
Author=Max_Real Qnx, NightMan,Markus Debus
Level=3
Version=12
Description=
Locked=false
Date=12.10.2007
Selected=True
Download_Level=1

[Process]
ReadEnv
#IniRead,%VistaInfo%,"VistaInfo","SourceType","%SourceType%"
If,"%SourceType%",NotEqual,"VistaCD",Exit,"Requires Windows Vista installfiles or DVD..."
Echo,Processing Control Panel Item For VPE...
Require_File,"control.exe"
Require_File,"Query.dll"
Require_File,"query.exe"
Require_File,"quser.exe"
RegHiveLoad,WB-Software,%RegSoftware%
RegWrite,HKLM,0x1,"WB-Software\Classes\.cpl","","cplfile"
RegWrite,HKLM,0x1,"WB-Software\Classes\.cpl","Generic","system"
RegWrite,HKLM,0x1,"WB-Software\Classes\.cpl\PersistentHandler","","{098f2470-bae0-11cd-b579-08002b30bfeb}"
RegWrite,HKLM,0x1,"WB-Software\Classes\cplfile","","Control Panel Item"
RegWrite,HKLM,0x1,"WB-Software\Classes\cplfile","FriendlyTypeName","@shell32.dll,-10155"
RegWrite,HKLM,0x1,"WB-Software\Classes\cplfile\shell\cplopen","","Open with Control Panel"
RegWrite,HKLM,0x1,"WB-Software\Classes\cplfile\shell\cplopen","MUIVerb","@shell32.dll,-10208"
RegWrite,HKLM,0x2,"WB-Software\Classes\cplfile\shell\cplopen\command","","%SystemRoot%\System32\control.exe #$p1"
RegWrite,HKLM,0x2,"WB-Software\Classes\cplfile\shell\runas\command","","%SystemRoot%\System32\rundll32.exe shell32.dll,Control_RunDLLAsUser #$p1"
RegWrite,HKLM,0x1,"WB-Software\Classes\CLSID\{098f2470-bae0-11cd-b579-08002b30bfeb}","","Null persistent handler"
RegWrite,HKLM,0x1,"WB-Software\Classes\CLSID\{098f2470-bae0-11cd-b579-08002b30bfeb}\PersistentAddinsRegistered\{89BCB740-6119-101A-BCB7-00DD010655AF}","","{c3278e90-bea7-11cd-b579-08002b30bfeb}"
RegWrite,HKLM,0x1,"WB-Software\Classes\CLSID\{c3278e90-bea7-11cd-b579-08002b30bfeb}","","Null filter"
RegWrite,HKLM,0x2,"WB-Software\Classes\CLSID\{c3278e90-bea7-11cd-b579-08002b30bfeb}\InprocServer32","","%systemroot%\system32\query.dll"
RegWrite,HKLM,0x1,"WB-Software\Classes\CLSID\{c3278e90-bea7-11cd-b579-08002b30bfeb}\InprocServer32","ThreadingModel","Both"
RegHiveUnLoad,WB-Software

