Page 1 of 1

recursiv directory create

Posted: Tue Sep 04, 2007 4:49 am
by Speedy84
Is there a function to create a recursively directory layout like

$DBLOCATION$ = c:\\database\\application\\sql that he would automaticaly create

c:\\database
c:\\database\\application
c:\\database\\application\\sql

the $DBLOCATION$ could be different because of the user input from the form.

Posted: Tue Sep 04, 2007 10:45 am
by Alex_Ronquillo
Just use the "Create Folder" MSI command.

When you write:

Code: Select all

Create Folder C:\\Dir1\\Dir2\\Dir3\\Dir4


If C:\\Dir1 does not exist, it gets created along with all other folders until Dir4 is created inside Dir3.

Posted: Fri Sep 07, 2007 2:02 am
by Speedy84
The create folder function is not working the directory wont be created.

I applied this create folder function inside my setupsql2005 script file.