Troubleshooting the Forefront TMG Installation Error: "A computer restart is required. You must restart this computer before installing Forefront TMG."
Take the backup of the Registry before making following change:
Resolution
1- Navigate to HKLM\SYSTEM\CurrentControlSet\Control\Session Manager.
2- Delete the PendingFileRenameOperations multi-string key.
3- Try to run the setup wizard again.