Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

registry invalid parameter

- - - - -

  • Please log in to reply
44 replies to this topic

#26
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,026 posts
  • OS:none specified
  • Country: Country Flag

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


How to remove advertisement from MSFN

#27
Geej

Geej

    Senior Member

  • Member
  • PipPipPipPip
  • 635 posts
  • OS:XP Pro x86
  • Country: Country Flag

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
FixHELL

FixHELL

    Newbie

  • Member
  • 13 posts
  • OS:none specified
  • Country: Country Flag

Do you mean this?


; 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
bphlpt

bphlpt

    MSFN Addict

  • Member
  • PipPipPipPipPipPipPip
  • 1,796 posts
  • OS:none specified
  • Country: Country Flag
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

Posted Image


#30
Geej

Geej

    Senior Member

  • Member
  • PipPipPipPip
  • 635 posts
  • OS:XP Pro x86
  • Country: Country Flag
FixHELL, get real. Post some actual registry code you have. Beating around the bush is pointless.

#31
FixHELL

FixHELL

    Newbie

  • Member
  • 13 posts
  • OS:none specified
  • Country: Country Flag
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/

Edited by FixHELL, 07 September 2012 - 06:31 AM.


#32
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,510 posts
  • OS:XP Pro x86
  • Country: Country Flag
: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.

Edited by tomasz86, 07 September 2012 - 07:39 AM.

post-47483-1123010975.png
Unofficial Service Pack 5.2 for MS Windows 2000 <- use this topic if you need help with UURollup, Update Rollup 2 and other unofficial packages

#33
submix8c

submix8c

    Inconceivable!

  • Patrons
  • 4,190 posts
  • OS:none specified
  • Country: Country Flag
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.

Someday the tyrants will be unthroned... Jason "Jay" Chasteen; RIP, bro!

Posted Image


#34
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,510 posts
  • OS:XP Pro x86
  • Country: Country Flag
@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).

Edited by tomasz86, 07 September 2012 - 11:12 AM.

post-47483-1123010975.png
Unofficial Service Pack 5.2 for MS Windows 2000 <- use this topic if you need help with UURollup, Update Rollup 2 and other unofficial packages

#35
submix8c

submix8c

    Inconceivable!

  • Patrons
  • 4,190 posts
  • OS:none specified
  • Country: Country Flag

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

Someday the tyrants will be unthroned... Jason "Jay" Chasteen; RIP, bro!

Posted Image


#36
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,510 posts
  • OS:XP Pro x86
  • Country: Country Flag
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.

Edited by tomasz86, 07 September 2012 - 01:26 PM.

post-47483-1123010975.png
Unofficial Service Pack 5.2 for MS Windows 2000 <- use this topic if you need help with UURollup, Update Rollup 2 and other unofficial packages

#37
submix8c

submix8c

    Inconceivable!

  • Patrons
  • 4,190 posts
  • OS:none specified
  • Country: Country Flag
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..."

Someday the tyrants will be unthroned... Jason "Jay" Chasteen; RIP, bro!

Posted Image


#38
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,510 posts
  • OS:XP Pro x86
  • Country: Country Flag
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 ;)

Edited by tomasz86, 07 September 2012 - 05:29 PM.

post-47483-1123010975.png
Unofficial Service Pack 5.2 for MS Windows 2000 <- use this topic if you need help with UURollup, Update Rollup 2 and other unofficial packages

#39
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,026 posts
  • OS:none specified
  • Country: Country Flag

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
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,510 posts
  • OS:XP Pro x86
  • Country: Country Flag

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.
post-47483-1123010975.png
Unofficial Service Pack 5.2 for MS Windows 2000 <- use this topic if you need help with UURollup, Update Rollup 2 and other unofficial packages

#41
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,026 posts
  • OS:none specified
  • Country: Country Flag

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.

Sure :), but "popular" is not necessarily a synonym of "good" or "better" ;), it simply means "popular", as well "obscure" or "rarely talked about" is not a synonym of "bad" or "worse", if you prefer I was surprised :w00t: at your (and submix8's) surprise at seeing this approach work allright..... (as documented - in few places - at least since 2K times :angel )

jaclaz

#42
submix8c

submix8c

    Inconceivable!

  • Patrons
  • 4,190 posts
  • OS:none specified
  • Country: Country Flag
Well, to be sure, the "hooks" between the info is there now. I couldn't find it although I was sure it had to be there somewhere.

Now YOU da man!

(sorry, tomasz86, you have been dethroned. :w00t: Finder still reigns but - where were you on this earlier? <-rhetorical )

Someday the tyrants will be unthroned... Jason "Jay" Chasteen; RIP, bro!

Posted Image


#43
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,026 posts
  • OS:none specified
  • Country: Country Flag

(sorry, tomasz86, you have been dethroned. :w00t: Finder still reigns but - where were you on this earlier? <-rhetorical )

Oww, comeon, this is unfair to tomasz86 :w00t: me still thinks he's da man. :thumbup (as much as I'm still The Finder ;))

You da man disputes tend to soon become like .... :ph34r:
Spoiler


jaclaz

#44
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,510 posts
  • OS:XP Pro x86
  • Country: Country Flag
If anyone's interested, you can also also change the location of user folders through HIVEDEF.INF. Just go to [Strings] and change these lines as you wish:

U_SHELL_FOLDERS_APPDATA="%USERPROFILE%\Application Data"
U_SHELL_FOLDERS_DESKTOP="%USERPROFILE%\Desktop"
U_SHELL_FOLDERS_FAVORITES="%USERPROFILE%\Favorites"
U_SHELL_FOLDERS_NETHOOD="%USERPROFILE%\NetHood"
U_SHELL_FOLDERS_PERSONAL="%USERPROFILE%\My Documents"
U_SHELL_FOLDERS_PRINTHOOD="%USERPROFILE%\PrintHood"
U_SHELL_FOLDERS_PROGRAMS="%USERPROFILE%\Start Menu\Programs"
U_SHELL_FOLDERS_RECENT="%USERPROFILE%\Recent"
U_SHELL_FOLDERS_SENDTO="%USERPROFILE%\SendTo"
U_SHELL_FOLDERS_START_MENU="%USERPROFILE%\Start Menu"
U_SHELL_FOLDERS_STARTUP="%USERPROFILE%\Start Menu\Programs\Startup"
U_SHELL_FOLDERS_TEMPLATES="%USERPROFILE%\Templates"
U_SHELL_FOLDERS_COOKIES="%USERPROFILE%\Cookies"
U_SHELL_FOLDERS_MYPICTURES="%USERPROFILE%\My Documents\My Pictures"
U_SHELL_FOLDERS_LOCAL_SETTINGS="%USERPROFILE%\Local Settings"
U_SHELL_FOLDERS_LOCAL_APPDATA="%USERPROFILE%\Local Settings\Application Data"
U_SHELL_FOLDERS_CACHE="%USERPROFILE%\Local Settings\Temporary Internet Files"
U_SHELL_FOLDERS_HISTORY="%USERPROFILE%\History"
These are taken directly from Win2k's HIVESYS.INF so they may differ a little bit in case of XP/2003.

Edited by tomasz86, 03 October 2012 - 06:01 AM.

post-47483-1123010975.png
Unofficial Service Pack 5.2 for MS Windows 2000 <- use this topic if you need help with UURollup, Update Rollup 2 and other unofficial packages

#45
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,510 posts
  • OS:XP Pro x86
  • Country: Country Flag
Inside HIVESFT.INF you can also change the path to "Documents and Settings". Go to [Strings] and change:

[Strings]
DEFAULT_PROFILES_DIR="%SystemDrive%\Documents and Settings"

post-47483-1123010975.png
Unofficial Service Pack 5.2 for MS Windows 2000 <- use this topic if you need help with UURollup, Update Rollup 2 and other unofficial packages




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN