Archive: Setting REG_MULTI for DependOnService


Setting REG_MULTI for DependOnService
Hello,

I am struggling to find a way to set a DependOnService value in the registry. This must be of type REG_MULTI.

I saw a post that show you how to read such values but how to write it?

Thanks,
THierry


You'll have to modify the code in the Users Manual.


Thanks but could you be more specific please?

In appendix C there is a section that covers RG_MULTI reading:
C.7 How to Read REG_MULTI_SZ Values

I am looking at writing a service dependency but I am not a registry expert.

From what I read, the key type must be RG_MULTI. This is where I am stuck.

Thanks,
Thierry


I could not find a answer with NSIS, so I tried another way:

I discovered a nice utility: reg.exe. It's part of the Windows 2000 resource Kit CD.

Here is how I used it. First I included (with File) the reg.exe in the installer package and then I call it:

StrCpy $0 "$INSTDIR\install\reg.exe add HKLM\${MY_SERVICE_KEY} /v DependOnService /t REG_MULTI_SZ /d otherService"

Exec $0