+ swprintf(TargetPath,
+ L"\\Device\\Harddisk%lu\\Partition%lu",
+ PartData.DiskNumber,
+ PartData.PartNumber);
+ if (InstallDir[0] != L'\\')
+ wcscat(TargetPath, L"\\");
+ wcscat(TargetPath, InstallDir);
+
+ Status = NtSetValueKey(KeyHandle,
+ &ValueName,
+ 0,
+ REG_SZ,
+ (PVOID)TargetPath,
+ wcslen(TargetPath) * sizeof(WCHAR));
+ NtClose(KeyHandle);
+ if (!NT_SUCCESS(Status))
+ {
+ DPRINT1("NtSetValueKey() failed (Status %lx)\n", Status);
+ }
+
+ /* Create the standard hives */
+ Status = NtInitializeRegistry(TRUE);
+ if (!NT_SUCCESS(Status))
+ {
+ DPRINT1("NtInitializeRegistry() failed (Status %lx)\n", Status);
+ }
+
+
+
+ /* Update registry */