David Kleinertz
David Kleinertz

Reputation: 51

Inno Setup - Create directory in code section

I want to create directories in between the setup of the wizard. Is it possible to create those directories in the code section?

Upvotes: 2

Views: 1812

Answers (1)

Andrew Truckle
Andrew Truckle

Reputation: 19087

For the benefit of those trying to find the documentation mentioned in the comment.

CreateDir
Prototype:
function CreateDir(const Dir: string): Boolean;

Description:
Creates a new directory. The return value is True if a new directory was successfully created, or False if an error occurred.


ForceDirectories
Prototype:
function ForceDirectories(Dir: string): Boolean;

Description:
Creates all the directories along the specified directory path all at once. If the first directories in the path do exist, but the latter ones don't, ForceDirectories creates just the ones that don't exist. Returns True if successful, False otherwise.


Click here for the Inno Setup help documentation.

Upvotes: 3

Related Questions