About: A previous program installation has created a pending file on the installation computer. Solution: SQL Server was installed before and then deleted. Now when I reinstall, I get the error "A previous program installation has created pending file operations on the installation computer. The computer must be restarted before running the installation program." Unable to proceed.
The steps are:
1) Completely delete sql server in Add/Remove Programs.
2) Delete the sql server directory that has not been deleted.
3) Open the registry editor, find the PendingFileRenameOperations item in HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession Manager, and delete it. This will clear the installation pending items.
4) Delete the keys related to sql server in the registry.
In fact, it is estimated that you only need to do step 3 to get it done, so that you can clear the installation pending projects. I did 1, 2, 4 first, and finally did 3 to get it done. So I guess 3 is the most critical.