Error While Installing Programs After Restoring Windows Vista from Windows Complete PC Backup and Restore Image
The following error message maybe displayed on your screen when you try to install certain programs after you have restored your Windows Vista PC by using a Windows Complete PC Backup and Restore Image.
The Directory Name is Invalid.
This error is generated when the restoration process fails to restore the Temp (%temp%) folder to your PC. By default, the path to this folder on your Windows Vista system is C:\Windows\Temp.
You can repair this problem by recreating the Temp folder on your system and then assigning it the required rights. You can do this by performing the steps listed below:
- Open Start menu, select All Programs, and then select Accessories.
- Right-click on the Command Prompt shortcut and then select the Run as Administrator option.
- If prompted, provide the password for the administrative user and then select Continue.
- At the command prompt, type md %windir%\temp and press Enter.
- Leaving the Command Prompt window open, open the Start menu, in the Start Search box, type %/windir% and then in the Program List, select the Windows option.
- Locate the Temp, right-click on it, and select Properties.
- On the Security tab, select Advanced, and the select Edit.
- If prompted, provide the password for the administrative user and then select Continue.
- Clear the Include inheritable permissions from this object's parent check box, select Remove, and the select OK.
- Select Yes when two warning messages are displayed on the screen.
- Select OK to close the Advanced Security Settings dialog box and the select OK to close the folder properties dialog box.
- Go back to the Command Prompt window, type in the command given below-you must type the command in a single line, inclusive of all quotation marks-to grant the required permissions to the Temp folder and then press Enter.
icacls %windir%\temp /grant "BUILTIN\Users:(CI)(S,WD,AD,X)" "BUILTIN\Administrators:(F)" "BUILTIN\Administrators:(OI)(CI)(IO)(F)" "NT AUTHORITY\SYSTEM:(F)" "NT AUTHORITY\SYSTEM:(OI)(CI)(IO)(F)" "CREATOR OWNER:(OI)(CI)(IO)(F)"
|