It's just a comment / suggestion. You add and remove Cryptographic Services using a combination of SC.EXE, NET.EXE and update.inf:
[Product.Add.Reg] HKLM,"SYSTEM\CurrentControlSet\Services\CryptSvc", "Description", 0,"Provides three management services: Catalog Database Service, which confirms the signatures of Windows files; Protected Root Service, which adds and removes Trusted Root Certification Authority certificates from this computer; and Key Service, which helps enroll this computer for certificates. If this service is stopped, these management services will not function properly. If this service is disabled, any services that explicitly depend on it will fail to start." HKLM,"SYSTEM\CurrentControlSet\Services\CryptSvc\Parameters" HKLM,"SYSTEM\CurrentControlSet\Services\CryptSvc\Parameters", "ServiceDll", 0x00020000, "%SystemRoot%\SystemXP\cryptsvc.dll" HKLM,"SYSTEM\CurrentControlSet\Services\CryptSvc\Parameters", "ServiceMain", 0, "CryptServiceMain" HKLM,"SYSTEM\CurrentControlSet\Services\CryptSvc\Security" HKLM,"SYSTEM\CurrentControlSet\Services\CryptSvc\Security", "Security",0x01, 00,00,0e,00,01 HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Svchost","CryptWp",0x00010000,"CryptSvc" [ProcessesToRun] "sc create CryptSvc binpath= ""%systemroot%\system32\svchost.exe -k CryptWp"" type= share start= auto displayname= ""Cryptographic Services"" depend= RpcSs" [ProcessesToRunBeforeUninstall] "net stop CryptSvc" "sc delete CryptSvc"
All of this can be done through update.inf without using any other tools. This is an alternative way:
[Save.Reg.For.Uninstall] HKLM,"SYSTEM\CurrentControlSet\Services\CryptSvc" HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Svchost","CryptWp" [Product.Add.Reg] HKLM,"SYSTEM\CurrentControlSet\Services\CryptSvc","Description",,"Provides key management services for this computer." HKLM,"SYSTEM\CurrentControlSet\Services\CryptSvc","Type",0x10001,0x20 HKLM,"SYSTEM\CurrentControlSet\Services\CryptSvc","Start",0x10001,0x2 HKLM,"SYSTEM\CurrentControlSet\Services\CryptSvc","ErrorControl",0x10001,0x1 HKLM,"SYSTEM\CurrentControlSet\Services\CryptSvc","ImagePath",0x20000,"system32\svchost.exe -k CryptWp" HKLM,"SYSTEM\CurrentControlSet\Services\CryptSvc","DisplayName",,"Cryptographic Services" HKLM,"SYSTEM\CurrentControlSet\Services\CryptSvc","DependOnService",0x10000,"RpcSs" HKLM,"SYSTEM\CurrentControlSet\Services\CryptSvc","ObjectName",,"LocalSystem" HKLM,"SYSTEM\CurrentControlSet\Services\CryptSvc\Parameters","ServiceDll",0x20000,"%%SystemRoot%%\SystemXP\cryptsvc.dll" HKLM,"SYSTEM\CurrentControlSet\Services\CryptSvc\Parameters","ServiceMain",,"CryptServiceMain" HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Svchost","CryptWp",0x10000,"CryptSvc"
The key point is that in "ImagePath" you don't need to specify a full path as it automatically assumes that the path is inside %systemroot% so "system32\svchost.exe -k CryptWp" is enough.



Help


Back to top










