尝试在安装之前使用卸载字符串(并使用Execin 运行该软件)来卸载软件InitializeSetup,它不会等待卸载完成,而是继续执行Inno Setup中的下一步安装。
我正在使用以下代码和试图在Installshield产品中卸载的软件:
Exec(
ExpandConstant('{pf}\InstallShield Installation Information\{{XXX8X88X-XX8X-88X8-X8XX-88X888X88888}\setup.exe'),
'-s -runfromtemp -l0x0004 -removeonly -remove', '',
SW_SHOW, ewWaitUntilTerminated, ReturnCode)
Run Code Online (Sandbox Code Playgroud)