I cannot use Exec
function in my Inno Setup script.
I tried execute an example like:
var Code: Integer;
begin
Exec('reg.exe', 'import C:\Support\*.reg', '', SW_HIDE, ewWaitUntilTerminated, Code)
end;
But no success, I have an error:
period '.' expected.
How can I execute my code (reg file)?