MSFN Forum: registry invalid parameter - MSFN Forum

Jump to content


  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

registry invalid parameter Rate Topic: -----

#21 User is offline   FixHELL 

  • Newbie
  • Group: Members
  • Posts: 13
  • Joined: 02-September 12
  • OS:none specified
  • Country: Country Flag

Posted 06 September 2012 - 12:16 PM

View Posttomasz86, on 06 September 2012 - 10:28 AM, said:

View PostFixHELL, on 06 September 2012 - 09:33 AM, said:

View Posttomasz86, on 06 September 2012 - 06:47 AM, said:

:ph34r:

There is no HKU during Windows setup. What you add to HKCU will become HKU.


Hey it helped, may you explain codes, which shows with "x" ?


What do you mean?

If you give me one example of a registry setting which you want to add then I'll show you how to modify the hivedef.inf.



Every line has a "x" with some "zero" at end of that line.
Did you get my talk? I thought it is saying for REZ_SZ, REG_DWORD and REZ_BINARY, But somewhere it's different. How i know this. Have any link for that i asked or you may explain. I can't ask all my modification. I want to do myself.

This post has been edited by FixHELL: 06 September 2012 - 12:21 PM



#22 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,456
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 06 September 2012 - 12:32 PM

View PostFixHELL, on 06 September 2012 - 12:16 PM, said:

Did you get my talk?

Personally I cannot :(.

Are you talking of SID's? :unsure:
http://en.wikipedia....rity_Identifier

If you don't try to state, with the most detail you can WHAT you are trying to achieve, it will be improbable that you will get any proper answer, additionally, you may make the people now willing to try and help you upset, and thus loose any support from them :ph34r: .

Standard Litany:
http://homepage.ntlw...ard-litany.html

Risk of slipping on a chocolate covered banana:
http://homepage.ntlw...red-banana.html

jaclaz

#23 User is offline   tomasz86 

  • http://www.windows2000.tk
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,220
  • Joined: 27-November 10
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 06 September 2012 - 12:38 PM

View PostFixHELL, on 06 September 2012 - 12:16 PM, said:

Every line has a "x" with some "zero" at end of that line.
Did you get my talk? I thought it is saying for REZ_SZ, REG_DWORD and REZ_BINARY, But somewhere it's different. How i know this. Have any link for that i asked or you may explain. I can't ask all my modification. I want to do myself.

I also don't really understand what you're talking about :no:

That's why I asked for one example. Once it's clear how to add it to the hivedef.inf then it should be easy for you to do the same with the rest of the modifications.

This post has been edited by tomasz86: 06 September 2012 - 12:39 PM


#24 User is offline   FixHELL 

  • Newbie
  • Group: Members
  • Posts: 13
  • Joined: 02-September 12
  • OS:none specified
  • Country: Country Flag

Posted 06 September 2012 - 01:21 PM

i mean, here some examples

HKCU,"Control Panel\Accessibility\HighContrast","Flags",0x00000002,"126"

HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\SmallIcons","SmallIcons",0x00010003,0

HKCU,"Control Panel\Appearance\Schemes","%BRICK%",0x00030001,

You can every line has a x command with some zero.


Like

1st line has: 0x00000002
2nd line has: 0x00010003
3rd line has: 0x00030001

so, can you explain me now?

#25 User is offline   tomasz86 

  • http://www.windows2000.tk
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,220
  • Joined: 27-November 10
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 06 September 2012 - 01:28 PM

Do you mean this?

Gosh said:

; Registry Data Types
; types with NCLOB don't overwrite existing values
;
; REG_SZ = 0x00000000 (or 0)
; REG_BINARY = 0x00000001 (or 1)
; Reg_SZ_NOCLOBBER = 0x00000002 (or 2)
; REG_BINARY_NOCLOBBER = 0x00000003 (or 3)
; REG_MULTI_SZ_APPEND = 0x0001000A
; REG_MULTI_SZ = 0x00010000
; REG_DWORD = 0x00010001
; REG_MULTI_SZ_NOCLOBBER = 0x00010002
; REG_DWORD_NOCLOBBER = 0x00010003
; REG_MULTI_SZ_DELVAL = 0x00010006
; REG_ADDREG_APPEND = 0x00010008
; REG_EXPAND_SZ = 0x00020000
; REG_EXPAND_SZ_NOCLOBBER = 0x00020002

http://gosh.msfn.org/infs.htm

#26 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,456
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 06 September 2012 - 01:37 PM

View PostFixHELL, on 06 September 2012 - 01:21 PM, said:

You can every line has a x command with some zero.

More generally, those are HEX values.
The common notation used is to pre-fix a hex number with 0x.
0x1=1
...
0xA=10
....
0xF=15
....
0x00000002=2 (in "fixed format" hex)
0x00010003=65539
0x00030001=196609

http://pubs.logicale...icle.asp?ID=361

As tomasz86 :thumbup just posted, some of these hex values correspond to a data type .

jaclaz

#27 User is offline   Geej 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 634
  • Joined: 01-January 08
  • OS:XP Pro x86
  • Country: Country Flag

Posted 06 September 2012 - 06:13 PM

View PostFixHELL, on 02 September 2012 - 09:11 AM, said:

SO NOW, HOW TO SET "COMMAND LINE" WHICH CAN PERFORM THAT JOB ON MY EVERY USER?

what command i need set instead of "S-1XXXXXXXXXXXXXXXX" ?? will someone help?

Alternatively, you can look into cmdlines.txt. This is a more documented approach. Also you can google more solution if you run into problems. Editing hivedef.inf requires user to put in inf syntax which not many user knows.

cmdlines.txt msdn
Scroll to Cmdlines.txt section. Read the last sentence.

Basically you need to put in winnt.sif
[Unattended]
OemPreinstall=Yes

I did it this way:
A 'cmdlines.txt' in SOURCEXP\$OEM$ folder <- create manually this folder
A ForLoopT12.cmd in SOURCEXP\$OEM$ folder <- create manually this file
Many reg files in SOURCEXP\$OEM$ folder <- export all your reg tweaks to this location

In 'cmdlines.txt, content as
[Commands]
"ForLoopT12.cmd"

Content of ForLoopT12.cmd
for %%e in ("*.reg") do regedit.exe /S "%%e"


#28 User is offline   FixHELL 

  • Newbie
  • Group: Members
  • Posts: 13
  • Joined: 02-September 12
  • OS:none specified
  • Country: Country Flag

Posted 07 September 2012 - 01:06 AM

View Posttomasz86, on 06 September 2012 - 01:28 PM, said:

Do you mean this?

Gosh said:

; Registry Data Types
; types with NCLOB don't overwrite existing values
;
; REG_SZ = 0x00000000 (or 0)
; REG_BINARY = 0x00000001 (or 1)
; Reg_SZ_NOCLOBBER = 0x00000002 (or 2)
; REG_BINARY_NOCLOBBER = 0x00000003 (or 3)
; REG_MULTI_SZ_APPEND = 0x0001000A
; REG_MULTI_SZ = 0x00010000
; REG_DWORD = 0x00010001
; REG_MULTI_SZ_NOCLOBBER = 0x00010002
; REG_DWORD_NOCLOBBER = 0x00010003
; REG_MULTI_SZ_DELVAL = 0x00010006
; REG_ADDREG_APPEND = 0x00010008
; REG_EXPAND_SZ = 0x00020000
; REG_EXPAND_SZ_NOCLOBBER = 0x00020002

http://gosh.msfn.org/infs.htm


Not worked somewhere.
Ok let me know, how i change "Control Panel" view to "Thumbnails" using this "hivedef.inf"

#29 User is offline   bphlpt 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,082
  • Joined: 12-May 07

Posted 07 September 2012 - 03:33 AM

What does that have to do with what you quoted? You are not making any sense at all that I can tell.

Can you give several examples of what you want? Maybe one of them will make sense.

I assume your first language is not English. Can you get a friend who does speak English to help you explain yourself better? Or will you tell us what languages you speak? Maybe someone here also speaks that language and can help translate.

Cheers and Regards

#30 User is offline   Geej 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 634
  • Joined: 01-January 08
  • OS:XP Pro x86
  • Country: Country Flag

Posted 07 September 2012 - 04:55 AM

FixHELL, get real. Post some actual registry code you have. Beating around the bush is pointless.

#31 User is offline   FixHELL 

  • Newbie
  • Group: Members
  • Posts: 13
  • Joined: 02-September 12
  • OS:none specified
  • Country: Country Flag

Posted 07 September 2012 - 06:28 AM

Really! I'm giggling, you could not get my talk. Since i'm replying with my cell hence i can't state the actual registry, but you can use regshot!
If i flashback at mind, i got i need to modify "Vid" and "Mode" please check with "Regshot".
Anyway whether you still did not comprehend, so this moment, will you reply how to use "HKU\S-1XXXXXXX\Software\Microsoft" registry at RunOnce?

And also help me out here:

http://www.msfn.org/...e-and-sys-file/

This post has been edited by FixHELL: 07 September 2012 - 06:31 AM


#32 User is offline   tomasz86 

  • http://www.windows2000.tk
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,220
  • Joined: 27-November 10
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 07 September 2012 - 06:58 AM

:wacko: :wacko: :wacko:

I think that instead of giggling you could at least try to be a little more polite, otherwise soon there will be no-one willing to help you. It's your problem so it's you to provide us with detailed information, not the other way round :ph34r:

This one registry entry is responsible for thumbnails view of the Control Panel in Windows XP:

[HKEY_USERS\S-1-5-21-823518204-839522115-1202660629-500\Software\Microsoft\Windows\ShellNoRoam\Bags\34\Shell]
"Vid"="{8BEBB290-52D0-11D0-B7F4-00C04FD706EC}"


This should work in hivedef.inf:

[AddReg]
HKCU,"Software\Microsoft\Windows\ShellNoRoam\Bags\34\Shell","Vid",,"{8BEBB290-52D0-11D0-B7F4-00C04FD706EC}"


You may find Reg2Inf useful when converting the desired registry entries.

This post has been edited by tomasz86: 07 September 2012 - 07:39 AM


#33 User is offline   submix8c 

  • Inconceivable!
  • Group: Patrons
  • Posts: 3,247
  • Joined: 14-September 05
  • OS:none specified
  • Country: Country Flag

Posted 07 September 2012 - 09:58 AM

Please note that the OP wants this for ALL users (AFAICT) during "Unattended" Install. The Registry Entries the OP has listed is for CURRENT User and the OP wants it for ALL Users and WILL NOT WORK one-by-one UNTIL each user is actually DEFINED.

That's why I suggested that the change be made to DEFAULT so that WHEN any given User (including the INITIAL Administrator, if kept via nLite, which the OP did NOT say they were using) the changes would be "picked up" at Logon (when the User Profile/Folder) is created.

Now... in the HIVEDEF file - how would it be done (entries) for DEFAULT user based on the Reg entries given?
(I really don't know myself - I linked to modding a Basic "Default" NTUSER.DAT and possibly "replacing" it during install).

The MISUNDERSTANDING the OP has is that HKU is the HIVE needing changed - NOT SO! It's the INDIVIDUAL one(s) BENEATH it which ONLY "HKCU" (under the s-Value for the Given Logon - DO NOT CHANGE THAT ONE) and OR "DEFAULT" (which is NOT what one can ACTUALLY mod - the "HKU\.DEFAULT" one - ref HKU\s-Value=HKCU). It's GOT to be nodded in the NTUSER.DAT of the "Documents and Settings\Default).

HTH the confusion.

#34 User is offline   tomasz86 

  • http://www.windows2000.tk
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,220
  • Joined: 27-November 10
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 07 September 2012 - 10:20 AM

@submix8c

I don't think that there exists any detailed documentation on this but basing on my testing I can say that there exist no real users when the hive files are applied. What is applied to HKCU becomes HKLM and HKU too. That's why adding the HKCU entries to the hivedef.inf should be enough because they will be applied to HKCU/HKLM/HKU. The NTUSER.DAT will be created later and should contain all the changes :)

I'll test it again today using the hivedef.inf to check if everything works as expected.

Edit: Tested. Works.

I added this to hivedef.inf:

[AddReg]
HKCU,"Control Panel\Desktop\WindowMetrics","MinWidth",0x00000002,"-255"

It should change the size of taskbar icons so that only icons (no text) is displayed. This is the result after on a fresh installation:

Spoiler

The entry is present in both HKCU & HKU (no HKLM because "Control Panel" is not present there at all).

This post has been edited by tomasz86: 07 September 2012 - 11:12 AM


#35 User is offline   submix8c 

  • Inconceivable!
  • Group: Patrons
  • Posts: 3,247
  • Joined: 14-September 05
  • OS:none specified
  • Country: Country Flag

Posted 07 September 2012 - 01:07 PM

View Posttomasz86, on 07 September 2012 - 10:20 AM, said:

The entry is present in both HKCU & HKU (no HKLM because "Control Panel" is not present there at all).
I am... SOOO confused! You mean that appears DIRECTLY UNDER "HKU"???

My Running System:
HKCU = HKEY_CURRENT_USER <- Me (Current User)
HKU = HKEY_USERS <- Top-Level - Sub-"Folders" only
HKU\.DEFAULT <- Contents (?) of "Documents And Settings\DEFAULT\NTUSER.DAT" - The Defaults for any New User
HKU\S-1-5-18 <- Local System
HKU\S-1-5-19 <- NT Authority Local Service
HKU\S-1-5-19_CLASSES <- (empty)
HKU\S-1-5-20 <- NT Authority Network Service
HKU\S-1-5-20_CLASSES <- (empty)
HKU\S-1-5-21(etc) <- Me (Current User - Administrator Account)
HKU\S-1-5-21(etc)_CLASSES <-Me (Current User - Administrator Account)

http://support.microsoft.com/kb/243330

#36 User is offline   tomasz86 

  • http://www.windows2000.tk
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,220
  • Joined: 27-November 10
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 07 September 2012 - 01:22 PM

I should have been more clear. Sorry :blushing:

This is exactly where the entry appears:

HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics
"MinWidth"="-255"

HKEY_USERS\.DEFAULT\Control Panel\Desktop\WindowMetrics
"MinWidth"="-255"

HKEY_USERS\S-1-5-21-1957994488-507921405-1343024091-500\Control Panel\Desktop\WindowMetrics
"MinWidth"="-255"

The last one being the Administrator account (there are no other accounts in the system).

Moreover, it's also present in NTUSER.DAT. After loading it to HKU\CUSTOM (see #3):

HKEY_USERS\CUSTOM\Control Panel\Desktop\WindowMetrics
"MinWidth"="-255"

All of this means that all changes added to hivedef.inf become default values for all system accounts created later. For me this is WAY simpler than playing with cmdlines or using other "documented" methods :lol: Just add the modifications to hivedef.inf and you're done.

This post has been edited by tomasz86: 07 September 2012 - 01:26 PM


#37 User is offline   submix8c 

  • Inconceivable!
  • Group: Patrons
  • Posts: 3,247
  • Joined: 14-September 05
  • OS:none specified
  • Country: Country Flag

Posted 07 September 2012 - 02:03 PM

EGG-ZACTLY what I was hoping you'd say!

"Current User" (HKCU) in the context of the HIVEDEF apparently means "DEFAULT" at "build" time!

Don't know about anyone else, but I'd say "Case Closed". OP needs tonly o add appropriate entries.

THANK you tomasz86 for the "testing"! :thumbup Useful! :w00t:

"You da man!"
"No, YOU da man!"
"No, YOU..."

#38 User is offline   tomasz86 

  • http://www.windows2000.tk
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,220
  • Joined: 27-November 10
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 07 September 2012 - 05:24 PM

No problem :) I also wasn't 100% sure about this but now I am. I wish I had known it earlier :lol: I'll try to use this method to set the folder view to details, custom resolution, Start Menu small icons and some other things. After more testing I'll post a reply here so keep an eye on this topic ;)

This post has been edited by tomasz86: 07 September 2012 - 05:29 PM


#39 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,456
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 08 September 2012 - 05:37 AM

View Posttomasz86, on 07 September 2012 - 05:24 PM, said:

No problem :) I also wasn't 100% sure about this but now I am. I wish I had known it earlier :lol: I'll try to use this method to set the folder view to details, custom resolution, Start Menu small icons and some other things. After more testing I'll post a reply here so keep an eye on this topic ;)

With all due respect to everyone involved :), I wouldn't call this exactly "news" :ph34r:
http://www.windowsit...g-windows-2000-
http://www.msfn.org/...ugh-hivedefinf/

Or am I missing something? :unsure:


jaclaz

#40 User is offline   tomasz86 

  • http://www.windows2000.tk
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,220
  • Joined: 27-November 10
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 08 September 2012 - 06:51 AM

View Postjaclaz, on 08 September 2012 - 05:37 AM, said:

With all due respect to everyone involved :), I wouldn't call this exactly "news" :ph34r:
http://www.windowsit...g-windows-2000-
http://www.msfn.org/...ugh-hivedefinf/

Or am I missing something? :unsure:

Right but I haven't really seen this method mentioned in many places :P Most people seem to try using cmdlines or other "common" methods. Even if the hive files are mentioned, they usually talk about hivesys/hivesft but not that much about hivedef.

Share this topic:


  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy