How to create folder in Inno Setup

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;

Upvotes: 5

Views: 13289

Answers (1)

George Ogden
George Ogden

Reputation: 815

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

Name: {app}\Downloaded

Upvotes: 5

Related Questions