Follow the steps below if an error message appears when you try to install iTunes for Windows. The error code is either 1402 or 1406.
Step 1
Thoroughly remove iTunes. Tip: If you have a hard time removing iTunes you may need to download and use the Windows Installer CleanUp Utility from Microsoft.
Step 2
Delete any files in: C

ocuments and Settings<your user name>Local SettingsTemp Tip: You may have to show hidden files and folders to see this folder (under the Tools menu, click Folder Options. Then click the View tab and select Show hidden files and folders)
Step 3
Download and install iTunes for Windows.
If the issue continues...
There is another set of steps that can resolve 1402 and 1406 errors when installing iTunes for Windows that involves manually editing the computer's registry file.
Important: Before starting these steps, make sure you are comfortable with the steps to be taken and the inherent risks involved in making changes to the Windows registry. Making mistakes in Regedit can cause strange behavior and can even prevent Windows from starting. It is strongly recommend making a backup copy of your Registry before making any changes to it.
On the Start menu, click Run.
Type in Regedit and click OK (this takes you to the Registry Editor).
Click the reveal button (+ sign) next to HKEY_LOCAL_MACHINE.
Click the reveal button next to SOFTWARE under HKEY_LOCAL_MACHINE.
Click the reveal button next to Classes.
Click the reveal button next to ".cdda." To save (make a backup) the original contents of the registry, so that you could go back to your original state if necessary:
Select the .cdda key in the left hand list.
On the File menu, click Export.
In the dialog that comes up, make sure the "Selected branch" button is selected for the Export Range.
Save with file with a name and location that is easy to find, for example, call the file "cdda settings" and save it to your desktop.
Find the heading OpenWithList."
Right-click on OpenWithList.
From the pop-up menu, click Permissions.
Click the Add button.
Click the Advanced button.
Click the Find Now button.
The Find Now button should list all of the users.
Select the Everyone user.
Click OK. This closes this dialog.
Click OK in the dialog box now on top. This closes this dialog.
In the Permissions for Everyone section, next to Full Control, select Allow. Click OK.
Repeat steps 8-16 but right-click on OpenWithProgids instead of OpenWithList.
Close Regedit and try the install again.
Restore the Registry
To restore your registry back to the way it was before manually editing it, follow these steps:
Find the file you saved above and double-click it.
You will get a dialog that says "Are you sure you want to add the information in <name of file> to the registry?"
Click "Yes".
This will overwrite the edit and return the registry to it's original state.
Note, that this file is just a backup. It can be deleted at any time when you are finished editing the registry and have installed iTunes successfully.
thanks to apple website!