Jump to content











Photo
- - - - -

How to write Registry keys with grub4dos


  • Please log in to reply
32 replies to this topic

#26 agni

agni

    Frequent Member

  • Tutorial Writer
  • 270 posts
  • Location:Bengaluru (Bangalore)
  •  
    India

Posted 23 December 2013 - 04:23 PM

Why do you want to write registry keys?

 

Can you give an example of  an registry key that you would want to write ?

 

Also would this registry key and value change depending on the computer or is it always a fixed value ?

 

If you just want to write a registry key/value in boot.wim without modifying it, there may be others ways. You dont necessarily have to use Grub4Dos to do that for you.



#27 TrungNT_HUST

TrungNT_HUST

    Member

  • Members
  • 32 posts
  •  
    Vietnam

Posted 23 December 2013 - 05:22 PM

Thank you, can you help me?
 
for example
 
I start from win 7 pe
 
I want it 1 registry key when the boot record
 
key = HKLM \ Software \ BkavPro
name = P2P3
type = REG_SZ
data = enable


#28 steve6375

steve6375

    Platinum Member

  • Developer
  • 7566 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films
  •  
    United Kingdom

Posted 23 December 2013 - 06:42 PM

There is a way of 'injecting' the registry entry on each boot - are you booting from a removable USB flash drive?



#29 TrungNT_HUST

TrungNT_HUST

    Member

  • Members
  • 32 posts
  •  
    Vietnam

Posted 24 December 2013 - 04:25 AM

yes !!! So should my work or use as USB or CD \ DVD



#30 steve6375

steve6375

    Platinum Member

  • Developer
  • 7566 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films
  •  
    United Kingdom

Posted 24 December 2013 - 10:09 AM

If booting from a removable USB flash drive to WinPE v2/3/4, you can place an AutoUnattend.xml file in the root of the USB drive.

When PE boots, it will read the XML file.

Look at Tutorial 43 on my site for the menu and autounattend.xml file  (au.xml)

So using this mechanism, you could script reg or regedit to run and add a regsitry entry to the PE registry when it boots.

However, this may be too late to take effect (it depends what reads the registry entry and when it takes affect).


  • TrungNT_HUST likes this

#31 Sha0

Sha0

    WinVBlock Dev

  • Developer
  • 1682 posts
  • Location:reboot.pro Forums
  • Interests:Booting
  •  
    Canada

Posted 25 December 2013 - 06:24 AM

I don't know of a way to do this from GRUB4DOS without writing a Microsoft Windows Registry driver, but for 2000, XP, Server 2003, an NtBootDD.Sys "driver" could do it. (My WvBootDD could have a feature to do it, using the functions inside NtLdr.)

#32 joakim

joakim

    Silver Member

  • Team Reboot
  • 912 posts
  • Location:Bergen
  •  
    Norway

Posted 25 December 2013 - 03:00 PM

NativeRegMod can write to registry during booting. With some modification it could be recompiled to a driver too I suppose. But if all this makes sense, is not yet clear to me.

#33 TrungNT_HUST

TrungNT_HUST

    Member

  • Members
  • 32 posts
  •  
    Vietnam

Posted 25 December 2013 - 03:05 PM

I use windows 7 pe !
 
I still have the first questions people wish to help.
 
Why do I modify the boot code path but it can not succeed

map -- mem (md) 0x800+4 (99)
write (99) [BkavAuto]\nEnable=installdrv;\n\0

 

 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users