Quantcast
Channel: How to run a file before setup with Inno Setup - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Answer by Jan Derk for How to run a file before setup with Inno Setup

$
0
0

Yes it is. In the [code] section run the file in the InitializeSetup() function. This example launches notepad before the setup runs.

function InitializeSetup(): boolean;var  ResultCode: integer;begin  // Launch Notepad and wait for it to terminate  if Exec(ExpandConstant('{win}\notepad.exe'), '', '', SW_SHOW,     ewWaitUntilTerminated, ResultCode) then  begin    // handle success if necessary; ResultCode contains the exit code  end  else begin    // handle failure if necessary; ResultCode contains the error code  end;  // Proceed Setup  Result := True;end;

Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>