Computer Hope

Microsoft => Microsoft Windows => Windows Vista and 7 => Topic started by: Gray1989 on April 06, 2012, 01:12:11 AM

Title: Automatic format and reinstallation
Post by: Gray1989 on April 06, 2012, 01:12:11 AM
I am working on creating software to work with Windows PE in order to automate the processes that somebody would normally have to do when formatting a drive and reinstalling Windows. I am starting this project to be compatible with both Windows 7 and 8, but it is expected to also be compatible with Vista.

I programmed an algorithm with the help of somebody else a while back that converts/decodes the Product Key associated with the current running installation of Windows from the "DigitalProductId" registry value inside the Windows Registry. I was just looking around at the registry and filesystem and realized that drivers could be backed up actually quite easily.

First, open the registry. Enumerate through "HKLM\System\ControlSet001\Enum" and subkeys; Any value that exists as "HKLM\System\ControlSet001\Enum\**\**\Service" Gets referenced through "HKLM\System\ControlSet001\services\[Service Value]", then that key's values "DriverPackageId" and "Displayname" can be used in the program that wants to backup the driver files. The correct driver files would be in the location as follows: "%windir%\System32\DriverStore\FileRepository\[DriverPackageId]". Activation files are also easy to backup and restore.

Utilizing WinPE and this method correctly, one should be able to create a disc to automatically format/reinstall windows on a computer with all of the product key, drivers, activation already taken care of. Can any other experts on this subject offer any insight on this?
Title: Re: Automatic format and reinstallation
Post by: Geek-9pm on April 06, 2012, 05:12:47 PM
Twp things of concern.
1. It has already been done and is licensed by Microsoft.
2. If thins is a way to evade the conditions n of  the EULA, the forum will not help you.  :)
Title: Re: Automatic format and reinstallation
Post by: patio on April 06, 2012, 11:15:16 PM
Not sure what you want to accomplish here...no matter what OS.
If you are looking to do unattended installs there are some very good examples of it out there...
Let us know.
Title: Re: Automatic format and reinstallation
Post by: Gray1989 on April 07, 2012, 01:11:46 AM
I have no intentions on violating any EULA, if i was i wouldn't go to a public forum for help.

All i want is possibly more information to make the driver backup method more complete. i don't even expect an answer back with any information because all of it is really technical. but what i really want is to collaborate with people with any useable knowledge with windows pe or backing up drivers. also i am willing to share source code with those interested.
Title: Re: Automatic format and reinstallation
Post by: Gray1989 on April 07, 2012, 01:16:42 AM
Also, not sure but i think my ip may be blocked i had to post from my cell