How to create folder in Inno Setup

Евгений Антипов picture Евгений Антипов · Oct 2, 2013 · Viewed 8.3k times · Source

How can i create folder in code section? I use example script of inno download.

[Code]
//HERE I NEED TO CREATE FOLDER "Downloaded"

procedure InitializeWizard();
begin
 itd_init;
 itd_addfile('http://link.net/soft/file.exe',expandconstant('{sd}\Downloaded\file.exe'));
 itd_downloadafter(wpReady);
end;

Answer

George Ogden picture George Ogden · Jul 13, 2020

Why not use the [Dirs] section to create a folder:

Name: {app}\Downloaded