问题
最近使用Qt自带的installer-framework来安装软件,发现选择上次的安装目录,并不会直接覆盖,而会报"Qt the directory you selected already exists and contains a installation.choose a different"的错误.
官方文档
看了下官方的文档,发现它们也是这样介绍的:https://doc.qt.io/qtinstallerframework/ifw-use-cases-install.html.
解决方案
后来去stackoverflow中碰碰运气,竟然找到了前人的解决方法:https://stackoverflow.com/questions/46455360/workaround-for-qt-installer-framework-not-overwriting-existing-installation
不得不佩服,stackoverflow是个极客聚集之地.