B
Ben-Zion Joselson
I intend to setup Windows 2000 Professional, slipstreamed
with SP4, on my standalone workstation, using a custom
bootable CD.
Before setup I will change the boot order among the
existing SCSI drives, and I want to preset the Registry
key HKLM\SYSTEM\MountedDevices during the new setup so as
to set all drive letters to my own liking.
One way is to modify the drive letters in the
MountedDevices key taken from my existing W2K that already
has all drives/partitions signatures.
I propose to use hivesys.inf file for presetting the new
MountedDevices key, using the modified present key as
a "template", and I may also use hivesft.inf and
hivedef.inf for some other Registry keys modifications.
[This is similar in principle to MS article 243996 that
uses hivesft.inf file to Enable Verbose Logging in Windows
2000 GUI-Mode Setup, by presetting the
\CurrentVersion\Setup key.]
However, by comparing the contents of my present Registry
with the existing hive*.inf files in C:\I386, I have
noticed that these hive*.inf files use more than one flag
for each type of value data in the Registry:
For REG_SZ the flags used are 0x00000000, 0x00000002, and
sometimes no flag, or just 0.
For REG_DWORD the flags used are 0x00010001, 0x00010003.
For REG_MULTI_SZ the flag is 0x00010000.
For REG_BINARY the flags used are 0x00030003 and 1
(rarely).
For REG_EXPAND_SZ the flags used are 0x00020000 and
0x00020002.
For REG_NONE the flag is 0x00020001.
Even 'value not set' is represented by two flags:
0x00000010 and 0x00000012.
So my question is: Which of the two or more possible flags
I should invoke to set each given REG data type in the
hive*.inf files that I am going to modify?
Are they fully equivalent and I am free to choose between,
say, 0x00010001 and 0x00010003 for REG_DWORD? And so on.
Please advise.
with SP4, on my standalone workstation, using a custom
bootable CD.
Before setup I will change the boot order among the
existing SCSI drives, and I want to preset the Registry
key HKLM\SYSTEM\MountedDevices during the new setup so as
to set all drive letters to my own liking.
One way is to modify the drive letters in the
MountedDevices key taken from my existing W2K that already
has all drives/partitions signatures.
I propose to use hivesys.inf file for presetting the new
MountedDevices key, using the modified present key as
a "template", and I may also use hivesft.inf and
hivedef.inf for some other Registry keys modifications.
[This is similar in principle to MS article 243996 that
uses hivesft.inf file to Enable Verbose Logging in Windows
2000 GUI-Mode Setup, by presetting the
\CurrentVersion\Setup key.]
However, by comparing the contents of my present Registry
with the existing hive*.inf files in C:\I386, I have
noticed that these hive*.inf files use more than one flag
for each type of value data in the Registry:
For REG_SZ the flags used are 0x00000000, 0x00000002, and
sometimes no flag, or just 0.
For REG_DWORD the flags used are 0x00010001, 0x00010003.
For REG_MULTI_SZ the flag is 0x00010000.
For REG_BINARY the flags used are 0x00030003 and 1
(rarely).
For REG_EXPAND_SZ the flags used are 0x00020000 and
0x00020002.
For REG_NONE the flag is 0x00020001.
Even 'value not set' is represented by two flags:
0x00000010 and 0x00000012.
So my question is: Which of the two or more possible flags
I should invoke to set each given REG data type in the
hive*.inf files that I am going to modify?
Are they fully equivalent and I am free to choose between,
say, 0x00010001 and 0x00010003 for REG_DWORD? And so on.
Please advise.