cannot add a value in registry entry, pls help

Q

QuincyXiang

Hi,

I just want to add a value to the registry entry via regedit /s, but
always failed and no error msg shown.

my reg file - aa.reg:
=====================================
REGEDIT4

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\RMIregistry\Parameters]

"Application"="C:\Program Files\Java\jre1.5.0_06\bin\rmiregistry.exe"
======================================

and I fire regedit /s aa.reg, then I checked the registry, it didn't
work, no entry was added.
For testing, I changed my reg file as below:
=====================================
REGEDIT4

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\RMIregistry\Parameters]

"Application"="C:\Program Files\Java\jre1.5.0_06\bin\rmiregistry.exe"
"Description"="for the use of RMI server registry"
======================================

and run again, this time I found the value "Detecription" is added but
not the "Application", why?
Is the format wrong?
any help is appreciate.
 
D

Dave Patrick

Change it to;

"Application"="C:\\Program Files\\Java\\jre1.5.0_06\\bin\\rmiregistry.exe"

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

| Hi,
|
| I just want to add a value to the registry entry via regedit /s, but
| always failed and no error msg shown.
|
| my reg file - aa.reg:
| =====================================
| REGEDIT4
|
|
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\RMIregistry\Parameters]
|
| "Application"="C:\Program Files\Java\jre1.5.0_06\bin\rmiregistry.exe"
| ======================================
|
| and I fire regedit /s aa.reg, then I checked the registry, it didn't
| work, no entry was added.
| For testing, I changed my reg file as below:
| =====================================
| REGEDIT4
|
|
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\RMIregistry\Parameters]
|
| "Application"="C:\Program Files\Java\jre1.5.0_06\bin\rmiregistry.exe"
| "Description"="for the use of RMI server registry"
| ======================================
|
| and run again, this time I found the value "Detecription" is added but
| not the "Application", why?
| Is the format wrong?
| any help is appreciate.
|
 
Q

QuincyXiang

I got another question: can I add a key to the registry via regedit /s?
boz now I can only add or modify value

my reg file:
=====================================
REGEDIT4

"[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MyRMIreg\Parameters]"
"Application"="C:\\Program Files\\Java\\jdk15004\\bin\\rmiregistry.exe"

======================================

There the key Parameters doesn't exist yet, I run this script and the
registry just add a value of "Application" under the entry MyRMIreg,
but what I want is to create a key "Parameters" under the entry
MyRMIreg and then add a value of "Application", any help?

Quincy
 
Q

QuincyXiang

Resolved already, it's due to the quota mark :(


I got another question: can I add a key to the registry via regedit /s?
boz now I can only add or modify value

my reg file:
=====================================
REGEDIT4

"[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MyRMIreg\Parameters]"
"Application"="C:\\Program Files\\Java\\jdk15004\\bin\\rmiregistry.exe"

======================================

There the key Parameters doesn't exist yet, I run this script and the
registry just add a value of "Application" under the entry MyRMIreg,
but what I want is to create a key "Parameters" under the entry
MyRMIreg and then add a value of "Application", any help?

Quincy


Dave said:
You're welcome.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

| Yes, it works.
| Thanks a million, Dave.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top