安裝一個軟件到 Windows 2008 R2上提示The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
網上找了一下,利用sxstrace.exe的功能。
進入命令行,打開strace.exe的調試模式:
sxstrace trace -logfile:C:/trace.bin
然後再打開應用程序,這時候在C盤根目錄的trace.bin已經生成了,於是退出sxstrace.exe,再運行以下命令:
sxstrace parse -logfile:C:/trace.bin -outfile:C:/trace.log
因爲sxstrace trace出來的文件是二進制的,所以用上述命令將其轉換成txt的。
打開這個文件、發現Microsoft.VC90.CRT.dll 這個reference沒有找到,這個是屬於 Visual C++ 2008 Redistributable 的一個動態鏈接庫,下載一個,剛開始下載了一個X86的不行,後來又下了個X64的可以了。