DUA RegSetValue Problem

M

Mario Dambauer

Hi all, I have a little problem to create and set REG_DWORD values:

I have created a key, works fine:
REGCREATEKEY,,HKEY_LOCAL_MACHINE,,SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Hotfix\KB823980,DAREG_OPTION_NON_VOLATILE,KEY_ALL_ACCESS

I can create REG_SZ strings:
REGSETVALUE,,HKEY_LOCAL_MACHINE,,SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Hotfix\KB823980,,Comments,DAREG_SZ,,Windows XP Hotfix -
KB823980

But when I want to create a REG_DWORD value like this:
REGSETVALUE,,HKEY_LOCAL_MACHINE,,SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Hotfix\KB823980,,Installed,DAREG_DWORD,,1

I get this error message from DUSC:
Errror Invalid value specified


Can anyone help me?
Thanks in advance!

Mario
 
M

Mario Dambauer

OK I found out, that when I use 4 instead the constant (DAREG_DWORD) the
value is created.

But now there is another problem.

I have copied the update to my terminal. All Keys are created, all values
are created, but the falues are NOT set!!!

I haven't found a problem, so I used the samples from the msdn and there
there it is the same!
All Keys are created, all values are created, but the falues are NOT set!!!

sample from msdn:
REGCREATEKEY,, HKEY_LOCAL_MACHINE ,, SYSTEM\CurrentControlSet\SampleKey ,
DAREG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS
REGSETVALUE,,HKEY_LOCAL_MACHINE,,SYSTEM\CurrentControlSet\SampleKey,,SampleV
alue,DAREG_SZ,,Hello World


HELP!
 

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