Jump to content

how to add HKCU by inf file


ordan

Recommended Posts

Hello,

please can some help me with creation of inf file?! I need insert HKCU to registry of boot.wim by WAIK command peimg.

This code works but only for HKLM not for HKCU. Does have anybody idea hot correct it?!

Thank you much

[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4D36E97d-E325-11CE-BFC1-08002BE10318}
Provider=%MSCUST%
DriverVer=03/29/2009,6.0.0.0

[Manufacturer]
%MSCUST%=MSCUST

[MSCUST]
%PLUGINNAME%=OC_Inst,DUMMY\Autorun

[SourceDisksNames]
1=%DISK_DESC%

[SourceDisksFiles]
emerge.exe=1

[DestinationDirs]
RootOrdner1.Copy=16422,"EmergeDesktop"

[OC_inst]
CopyFiles=RootOrdner1.Copy

[RootOrdner1.Copy]
emerge.exe

[OC_inst.HW]
AddReg=AddRegSection,AddRegSectionHKCU

[AddRegSectionHKCU]
HKCU,"Emerge Desktop",,0x00010000
HKCU,"Emerge Desktop\emergeCommand",,0x00010000
HKCU,"Emerge Desktop\emergeCommand\History",,0x00010000
HKCU,"Emerge Desktop\emergeCommand\Settings","X",0x00010001,00,00,00,00


[AddRegSection]
HKLM,"Software\Emerge Desktop",,0x00010000
HKLM,"Software\Emerge Desktop\emergeCommand",,0x00010000
HKLM,"Software\Emerge Desktop\emergeCommand\History",,0x00010000

[Strings]
PLUGINNAME = "emergeDesktop plugin"
MSCUST="Microsoft"
DESCRIPTION="emergeDesktop Shell Installation"
DISK_DESC="Current Directory"

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...