[Main] Title=DCOM Launch (XPSP2 only) Selected=True Locked=false Description=RpcSS needs to launch DComLaunch Service first - SP2 only - ported from BartPE Author=Holger Kotsch Version=003 Date=2007-04-27 Level=4 Updates=http://www.holger.boot-land.net/updates [Variables] %HiveKey%=TMP_HIVE_KEY %ProjectInfo%=%ProjectDir%\ProjectInfo.ini %OS%= %SP%= [Process] Echo,"Check for OS..." IniRead,"%ProjectInfo%","OS","Type","%OS%" If,%OS%,NotEqual,XP,Exit,"Not XP -> Exit" Echo,"Found XP." Echo,"Check for ServicePack version..." IniRead,"%ProjectInfo%","OS","ServicePack","%SP%" If,%SP%,NotEqual,SP2,Exit,"Not SP2 -> Exit" Echo,"Found SP2." Echo,"Create DcomLaunch service..." If,NotExistFile,"%TargetDir%\i386\system32\msv1_0.dll",Expand,"%SourceDir%\i386\msv1_0.dl_","%TargetDir%\i386\system32" RegHiveLoad,"%HiveKey%","%TargetDir%\i386\system32\setupreg.hiv" RegWrite,"HKLM",0x7,"%HiveKey%\ControlSet001\Services\RpcSs","DependOnService","DcomLaunch","" RegWrite,"HKLM",0x4,"%HiveKey%\ControlSet001\Enum\Root\LEGACY_DCOMLAUNCH","NextInstance",0x1 RegWrite,"HKLM",0x1,"%HiveKey%\ControlSet001\Enum\Root\LEGACY_DCOMLAUNCH\0000","Class","LegacyDriver" RegWrite,"HKLM",0x1,"%HiveKey%\ControlSet001\Enum\Root\LEGACY_DCOMLAUNCH\0000","ClassGUID","{8ECC055D-047F-11D1-A537-0000F8753ED1}" RegWrite,"HKLM",0x4,"%HiveKey%\ControlSet001\Enum\Root\LEGACY_DCOMLAUNCH\0000","ConfigFlags",0x0 RegWrite,"HKLM",0x1,"%HiveKey%\ControlSet001\Enum\Root\LEGACY_DCOMLAUNCH\0000","DeviceDesc","DCOM Services" RegWrite,"HKLM",0x4,"%HiveKey%\ControlSet001\Enum\Root\LEGACY_DCOMLAUNCH\0000","Legacy",0x1 RegWrite,"HKLM",0x1,"%HiveKey%\ControlSet001\Enum\Root\LEGACY_DCOMLAUNCH\0000","Service","DcomLaunch" RegWrite,"HKLM",0x1,"%HiveKey%\ControlSet001\Enum\Root\LEGACY_DCOMLAUNCH\0000\Control","ActiveService","DcomLaunch" RegWrite,"HKLM",0x1,"%HiveKey%\ControlSet001\Services\DcomLaunch","Description","DCOM Services" RegWrite,"HKLM",0x1,"%HiveKey%\ControlSet001\Services\DcomLaunch","DisplayName","DCOM Services" RegWrite,"HKLM",0x4,"%HiveKey%\ControlSet001\Services\DcomLaunch","ErrorControl",0x1 RegWrite,"HKLM",0x1,"%HiveKey%\ControlSet001\Services\DcomLaunch","Group","Event Log" RegWrite,"HKLM",0x2,"%HiveKey%\ControlSet001\Services\DcomLaunch","ImagePath","svchost -k DcomLaunch" RegWrite,"HKLM",0x1,"%HiveKey%\ControlSet001\Services\DcomLaunch","ObjectName","LocalSystem" RegWrite,"HKLM",0x4,"%HiveKey%\ControlSet001\Services\DcomLaunch","Start",0x2 RegWrite,"HKLM",0x4,"%HiveKey%\ControlSet001\Services\DcomLaunch","Type",0x20 RegWrite,"HKLM",0x3,"%HiveKey%\ControlSet001\Services\DcomLaunch","FailureActions",\ 00,00,00,00,00,00,00,00,00,00,00,00,01,00,00,00,00,00,00,00,02,00,00,00,60,\ ea,00,00 RegWrite,"HKLM",0x1,"%HiveKey%\ControlSet001\Services\DcomLaunch\Enum","0","Root\LEGACY_DCOMLAUNCH\0000" RegWrite,"HKLM",0x4,"%HiveKey%\ControlSet001\Services\DcomLaunch\Enum","Count",0x1 RegWrite,"HKLM",0x4,"%HiveKey%\ControlSet001\Services\DcomLaunch\Enum","NextInstance",0x1 RegWrite,"HKLM",0x2,"%HiveKey%\ControlSet001\Services\DcomLaunch\Parameters","ServiceDll","rpcss.dll" RegHiveUnLoad,"%HiveKey%"