Windows 7 clean installation using upgrade disc 0xC004F061
When I received my Windows 7 upgrade media for a new HP laptop I wanted to perform a clean install of the OS. During the installation process, I was able to perform a clean install using the Custom (advanced) option when prompted for the 'type of installation' to proceed with.

Selecting the Custom (advanced) option allowed me to remove existing partitions and install Windows 7 as I would have expected to out of the box, instead of having to perform a Vista to Windows 7 upgrade. After successful installation of the OS I installed the remaining drivers and then tried to activate. During the activation process I was prompted with an error.
The following failure occurred while trying to use the product key:
Code:
0xC004F061Description:
The Software Licensing Service determined that this specified product key can only be used for upgrading, not for clean installations.
To activate Windows 7 after I used the upgrade disc to perform a clean installation I changed one registry key:
HKLM\Software\Microsoft\Windows\CurrentVersion\Setup\OOBE
Value: MediaBootInstall= 1 changed to 0
After modifying the registry key I was able to activate successfully.
Download the regkey change - HERE








You forget about one step after changing registry value :
"at the Command Prompt, type the following:
slmgr /rearm"
Source:
http://randomwindowstips.wordpress.com/2009/12/05/windows-7-clean-install-upgrade-license-key-error-code-0xc004f061/