I'm trying to use a batch script and a .REG file to set up some custom services. Most of the keys are being set up properly, but I need to set the DependOnService key for some of the services, which is normally a multi-string. Is it possible to set this key from a .REG file, or will manual entry be required?
|
REG_MULTI_SZ data in .REG files must be encoded in hexadecimal. If the content never changes you can create a dummy item in your registry with the data, export it, and adjust that to your needs. If it does change, it will probably be far easier to use the
The seperator switch is optional. If not used, the strings to be written should be seperated by the escape sequence for the null character (
To seperate the data with commas instead, you would run:
For more information, consult Microsoft's documentation of the |
|||
|
|