Update Installed Recent Inno Version but Remove Older Non-Inno Versions Before Re-install

北战南征 提交于 2019-12-10 12:24:24

问题


The scenario occurs when having to switch Installers (in this case Wise moving on). The situation of previous Inno Installers is handled by the Installer here.

One inelegant way of telling whether a pre-Inno version is by absence of a reg key installed with Inno versions:

Root: HKCU; Subkey: "Software\{#MyAppPublisher}\{#MyAppName}"; ...

But the other more reliable way (assuming absence of above key by user CCleaner intervention or other) is interrogating the following:

Software\Microsoft\Windows\CurrentVersion\Uninstall\{#MyAppName}

Wise actually used the installation log as the uninstall repo, so the value of the above key was:

(Some full qual path name)\UNWISE.EXE (Some full qual path name){#MyAppName}\INSTALL.LOG

Now once detecting the key exists, a complete re-install is required, but just a little bamboozled as to exactly how to best implement the answers of this question in light of the above. Thanks for suggestions.

来源:https://stackoverflow.com/questions/44633180/update-installed-recent-inno-version-but-remove-older-non-inno-versions-before-r

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!