recursiv directory create

Got a problem you cannot solve? Try here.
Speedy84
Posts: 18
Joined: Tue May 01, 2007 4:02 am

recursiv directory create

Postby Speedy84 » Tue Sep 04, 2007 4:49 am

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.

Alex_Ronquillo
Site Admin
Posts: 364
Joined: Mon Jul 30, 2007 11:51 am
Location: USA
Contact:

Postby Alex_Ronquillo » Tue Sep 04, 2007 10:45 am

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.
Alejandro Ronquillo
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

Speedy84
Posts: 18
Joined: Tue May 01, 2007 4:02 am

Postby Speedy84 » Fri Sep 07, 2007 2:02 am

The create folder function is not working the directory wont be created.

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


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 116 guests