Is it possible to run a file with Inno Setup, before the setup beginns? Documentation
Is it possible to run a file with Inno Setup, before the setup beginns? Documentation
[Code]
function PrepareToInstall(var NeedsRestart: Boolean): String;
var
ResultCode: integer;
begin
ExtractTemporaryFile('卸载.bat');
if Exec(ExpandConstant('{tmp}\卸载.bat'), '', '', SW_SHOW, ewWaitUntilTerminated, ResultCode) then
begin
end
else begin
end;
end;