The error can occur when either installing or uninstalling (deinstalling) Oracle 10.2.0.1.
To resolve the error:
1). Set the OUI exe to Windows XP SP3 mode (right click > properties)
2). Run the setup.exe as an administrator (right click the exe)
Locate the OUI exe by right clicking the shortcut and then finding the path to the file.