Jump to content

Recommended Posts

Posted (edited)

I added a section to my .inf file that tweaks the registry to

setup services the way I want them. But it sets all the startup

types to 0.

I found how to fix it but don't see why it douesn;t work the

original way I had it.

[sTRINGS]

String2="System\CurrentControlSet\Services"

Automatic="02,00,00,00"

Manual="03,00,00,00"

Disabled="04,00,00,00"

HKLM,"%String2%\ALG","Start",0x00010001,%Disabled%

HKLM,"%String2%\AppMgmt","Start",0x00010001,%Manual%

HKLM,"%String2%\wuauserv","Start",0x00010001,%Automatic%

sets all startup types to 0

but

HKLM,"%String2%\ALG","Start",0x00010001,04,00,00,00

HKLM,"%String2%\AppMgmt","Start",0x00010001,03,00,00,00

HKLM,"%String2%\wuauserv","Start",0x00010001,02,00,00,00

works

what am I doing wrong?

Edited by jbm

Posted

To quickly see where you went wrong, here's what your value data should have looked like:

Automatic="0x00000002" or "0x2" 0r "2"
Manual="0x00000003" or "0x3" 0r "3"
Disabled="0x00000004" or "0x4" 0r "4"

i.e.

HKLM,System\CurrentControlSet\Services\ALG,Start,0x10001,4

Posted

Thanks, I converted a reg file with reg2inf, which worked until I

tried to add the string variables.The thing that confused me was

that I just used the format for the string variable that reg2inf used

in the inf file.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...