Jump to content











Photo
- - - - -

[Win7PE_SE] Registry tweaks


  • Please log in to reply
11 replies to this topic

#1 biatche

biatche

    Member

  • Members
  • 86 posts
  •  
    Malaysia

Posted 05 December 2011 - 08:31 AM

I have registry tweaks such as below, how can I get them to trigger? Unlike regular windows, I can run the tweaks, restart, and done. Would the only way be to actually load the registry hive (how?) in the mounted wim and make modifications there?

[HKEY_CURRENT_USER\Control Panel\Desktop]

"MenuShowDelay"="10"


#2 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 05 December 2011 - 10:21 AM

Add this code into a suited script of your build:

RegHiveLoad,WB-Default,%RegUser%

RegWrite,HKLM,0x1,"WB-DefaultControl PanelDesktop",MenuShowDelay,200

RegHiveUnLoad,WB-Default


Then it is already in the PE when it boots up.

Peter

#3 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 05 December 2011 - 10:24 AM

Does Winbuilder use a different unit of measure (Latin Time ;))? :w00t:

[HKEY_CURRENT_USERControl PanelDesktop]
"MenuShowDelay"="10"



RegHiveLoad,WB-Default,%RegUser%
RegWrite,HKLM,0x1,"WB-DefaultControl PanelDesktop",MenuShowDelay,200
RegHiveUnLoad,WB-Default


:rofl:
:cheers:
Wonko

#4 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 05 December 2011 - 10:29 AM

:innocent:

Peter

#5 sbaeder

sbaeder

    Gold Member

  • .script developer
  • 1338 posts
  • Location:usa - massachusettes
  •  
    United States

Posted 05 December 2011 - 04:42 PM

I have registry tweaks such as below, how can I get them to trigger? Unlike regular windows, I can run the tweaks, restart, and done. Would the only way be to actually load the registry hive (how?) in the mounted wim and make modifications there?

If not apparent from the above - YES! You make the change in the registry that will end up inside the WIM being booted. (could also be done manually, but this is cleaner!)

#6 biatche

biatche

    Member

  • Members
  • 86 posts
  •  
    Malaysia

Posted 05 December 2011 - 06:52 PM

In terms of command /syntax, what's actually the difference between these two? Commands used appear very different. %RegUser% writes a couple of files in the root dir of my winbuilder folder.

(copied the code from another thread)
Hive_Load,HKCU

Reg_add,0x1,%reg%SoftwareMicrosoftWindowsCurrentVersionRunOnce,Startup,"bbxiw7pe$_netcmdstartup.cmd"

Hive_UnLoad,HKCU

RegHiveLoad,WB-Default,%RegUser%

RegWrite,HKLM,0x1,"WB-DefaultControl PanelDesktop",MenuShowDelay,10

RegHiveUnLoad,WB-Default


#7 biatche

biatche

    Member

  • Members
  • 86 posts
  •  
    Malaysia

Posted 05 December 2011 - 06:56 PM

Actually I just did some digging, so it looks like 'custom' specified variables in common_api.script.

#8 pokemon1

pokemon1

    Member

  • Members
  • 87 posts
  •  
    United Kingdom

Posted 05 December 2011 - 07:15 PM

@biatche
You can use the 'RegCPE' a tool available within Win7PE SE > Utils. This can convert .reg files (your tweaks) into .script format that should normally goes under [Process] section in any winbuilder script.

Edited by pokemon1, 05 December 2011 - 07:16 PM.


#9 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 05 December 2011 - 07:20 PM

You can also use the established and project-independent tool Reg2WBS, which you can find in the Download portal of this forum.
And in this tool you can decide whether you use something like %RegUser% or the actual file system path.

Peter

#10 biatche

biatche

    Member

  • Members
  • 86 posts
  •  
    Malaysia

Posted 05 December 2011 - 07:23 PM

Is this acceptable?

Reg_add,0x3,"%reg%Control PanelDesktop",UserPreferencesMask,"be,3e,07,80,12,00,00,00"

or should it be

Reg_add,0x3,"%reg%Control PanelDesktop",UserPreferencesMask,"be#$c3e#$c07#$c80#$c12#$c00#$c00#$c00"


from:
"UserPreferencesMask"=hex:be,3e,07,80,12,00,00,00


#11 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 05 December 2011 - 07:33 PM

Have a look at the help http://code.google.c...r/wiki/regwrite
  • 0x3 - Binary data - adds data in binary format. Each byte is specified by groups of two digits splitting each value with commas
"Correct" is as Reg2WBS delivers:

RegWrite,HKLM,0x3,"WB-DefaultControl PanelDesktop",UserPreferencesMask,be,3e,07,80,12,00,00,00

Currently the other alternities are understood correctly, too.

Peter

#12 biatche

biatche

    Member

  • Members
  • 86 posts
  •  
    Malaysia

Posted 05 December 2011 - 07:50 PM

Yeah you folks replied really fast (while i was typing out my post haha), and they appear to be what I need -- regCPE (which I'm currently testing) and Reg2WBS (haven't tried).

Thanks great people.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users