Inno Setup: Exec can't read string?
问题 I'm trying to put together a simple Inno Setup installer which looks for the previous version and removes it before proceeding. Everything is working fine until I get the following code: if Exec(UninstallString, '/SILENT', '', SW_SHOW, ewWaitUntilTerminated, ResultCode) then begin MsgBox('Previous version found and uninstalled successfully.', mbInformation, MB_OK); end else begin MsgBox('Please uninstall the previous version of this mod before continuing.', mbInformation, MB_OK); Result :=