PC Review


Reply
Thread Tools Rate Thread

DUA RegSetValue Problem

 
 
Mario Dambauer
Guest
Posts: n/a
 
      12th Aug 2003
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


 
Reply With Quote
 
 
 
 
Mario Dambauer
Guest
Posts: n/a
 
      12th Aug 2003
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!



"Mario Dambauer" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Mario Dambauer
Guest
Posts: n/a
 
      26th Aug 2003
No I havent, I post it again and hope for a response...

mario


"Peter" <@> wrote in message news:(E-Mail Removed)...
> Hi
>
> I have the exact same issue, can't get it to set the Value
>
> Have you found a solution or does somebody else know?
>
> Thx
> /Peter
>
> "Mario Dambauer" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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!
> >
> >
> >
> > "Mario Dambauer" <(E-Mail Removed)> wrote in message
> > news:%(E-Mail Removed)...
> > > 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
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem after problem after problem - winXP wont start! =?Utf-8?B?TWF2aXJpY2s=?= Windows XP Help 2 23rd Apr 2006 02:55 PM
[DUA] REGSETVALUE DWORD Meinhard Windows XP Embedded 4 19th May 2004 07:28 PM
Microsoft Access Object Library Version Problem (Form VBA Code Problem) Don Microsoft Access Form Coding 2 8th Mar 2004 01:00 PM
hibernation problem! problem!, Power Option problem! Farzad Hayati Microsoft Windows 2000 Hardware 2 5th Feb 2004 10:22 PM
hibernation problem! problem!, Power Option problem! Farzad Hayati Microsoft Windows 2000 Advanced Server 2 5th Feb 2004 10:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:39 PM.