Collect two solutions from the Internet:
Confirm InstallationProgramIn the Chinese directory or temp directory, there is a Chinese path. If not, extract it first.
Method 1: If the Windows 7 system is used, the administrator should run cmd.exe and run the installation program with the command.
Method 2: Run postgresql-8.3.10-1-windows.exe -- install_runtimes 0 under cmd as Administrator
Method 3:
1. Go to the directory "C: \ WINDOWS \ inf"
2. Find the "wsh. inf" file in the INF directory.
For files without wsh. inf, you can download the http://www.infdump.com/download-inf-files.php/inffiles/W/WSH.INF/download.html here
Or download wsh. inf from here
3. Right-click the "wsh. inf" file and choose "Install"
After wsh. inf is installed, PostgreSQL can be successfully installed.
If not, we recommend that you restart the system and install the system again. (This is the case I encountered)
next, the fatal problem is that the "Install" option does not exist in the context menu of the INF file. On the menu bar, choose tools> Folder Options> file type> registered file type
Find INF, and select advanced ", click
"Install" or "Install" under "edit file type", and click "set as default ". If the "Install" option is not available, for example, my system only has the "open" option, it is created and named
install with the content: C: \ windows \ system32 \ rundll32.exe setupapi, installhinfsection
defaultinstall 132% 1.
the content here is found from another normal machine, and I found that there is another system that does not exist, so I also added: print, the corresponding content is: c: \ windows \ system32 \ notepad. EXE/P % 1.