How the WinPE configuration modifies

Source: Internet
Author: User

In fact this step is mainly refers to the modification of the PE registry, you can directly modify the PE registry, you can modify the configuration file.

1, modify the internal registry method:

Extract the internal registry files using the previous method of modifying Pecmd.ini:

Wxpesystem32config*.*

Wxpesystem32setupreg.hi_ (

This is the CAB compression package, which unlocks it to Setupreg.hiv.

Regedit/sreg file name

Run Registry Editor REGEDIT.EXE, mouse click HKEY_LOCAL_MACHINE, then Point "file"-"Load Hive", hit the extracted registry file (need to change which on which to load), open, prompted to mount the name of a random input to a name such as "WinPE ", after the expansion of HKEY_LOCAL_MACHINE there is a WinPE, and then the same as the normal registry operation, and then click on the Mouse" WinPE "project, and then" file "-" Uninstall Configuration Unit ", the file is changed.

Replaces the original with the changed registry file.

2, modify the configuration file method:

For ordinary registry entries that do not depend on the external directory structure, you can use the general method to write the modified item as a REG file (you can export it directly from the XP system and then repair it on its basis). There is a regdoc.cmd in the external program directory, this file is peaches to register the external Program Document Association (is to change the registry), you can open it in Notepad, join a line:

It is automatically imported when the PE loads an external configuration.

This is the simplest way to change the registry. However, if the item to be repaired depends on the directory structure of the external program (for example, to add a UltraEdit32 to the right-click menu), the above method cannot be used, because the absolute path of the external program is indeterminate (different machine characters cannot be determined).

This situation needs to be done with the original Reg command (as peaches in regdoc.cmd), the syntax of the command is rather abstruse and the registry key is represented differently than the reg file. At the command prompt through/? parameter can get its usage (oh in Chinese), a reminder/? parameters are used in multiple layers, such as reg/? Get a description of the basic parameters, such as using regadd/? You can get the use of add this parameter ...

With the basis of this command, let's look at how to solve the problem of indeterminate path.

In Regdoc.cmd, there is an environment variable%tp% that represents the path where regdoc.cmd this file resides. We can go through%tp%. Represents its upper-level directory,%tp% .... Represents its upper two-tier directory. You can use this method to index all paths within an external program directory, regardless of the absolute path of the external program directory itself.

(There is also a way to add the Pecmd regi command line in Winpe.ini, which is better than the system's reg command, and can also use%curdir% environment variables to index all the paths in the external program directory)

The advantage of direct modification is to start the PE is required to set, do not rely on external configuration files, PE loading speed is also relatively fast, but trouble. Modifying a configuration file is simpler, but relying on the configuration file loading process (which will not take effect until those statements are loaded) requires additional time to load at startup, which is equivalent to patching the system to modify the default settings.

In general, it is not recommended to directly modify the PE registry, trouble, repackaging also takes time. However, some closely related to the system key must be directly modified to be effective, such as screen resolution, although the outside can also be modified, but the login is not loaded before it is invalid, then in the process of the login screen will be due to switch resolution and flicker.

The premise of modifying the registry yourself is to know what key values in the registry you want to change. Can search the Internet, now on the Internet, many of these resources are, really can not find the words may also be used Regmon such as registry monitoring software to locate.

For example, change the notepad of the automatic line, and do not know the corresponding key value where. You can turn on Regmon and then change the line-wrapping option in Notepad to see the Regmon's monitoring results to locate the key value. Because the system itself is constantly changing the registry, the display in the Regmon will be many, but by constantly changing the settings in Notepad, eventually can be found, the process requires patience and careful.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.