11

I'm on win2k3 machine. I wrote a .reg file as below:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\KalleService\Parameters]
"Application"="C:\Projects\KalleService\Bin\KalleService.exe"

When double click the .reg file/say merge, it says registry modified successfully. But it has just created the Parameters key and has not created Application string value.

What could be the problem?

2 Answers 2

14
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\KalleService\Parameters]
"Application"="C:\\Projects\\KalleService\\Bin\\KalleService.exe"

try double slashes(\\) instead of single slash (\) in the string value.

Sign up to request clarification or add additional context in comments.

3 Comments

Thanx. Meanwhile, I too discoverd the same thing.
@Sarfraz @="C:\\Users\\.....test.ps1" "%1" does not work (data field is empty), any idea why?
@JinSnow You need to escape not only backslash character but also inner " too! Like this: @="\"C:\\Users\\...text.ps1\" \"%1\""
0

try this:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\KalleService\Parameters]
@=" "
"Application"="\"C:\\Projects\\KalleService\\Bin\\KalleService.exe\""

or if this doesn't work make a key manually with a value and export it (a .reg file will be created)

open that file in notepad , modify that file with your values and then again save it. and then run it. Second way is not efficient but it will get your work done later if you do this

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.