Page 1 of 1

Create dir function fails

Posted: Tue Aug 28, 2007 4:40 am
by Speedy84
Inside my script file ill create a directorie from my var $DBLOCATION$ when it's creating c:\\database everything works perfectly, but when i would create c:\\database\\testdb the directories are not created.

is there any possibility to create a directory including an subdirectory from a variabele.

Posted: Tue Aug 28, 2007 1:36 pm
by Alex_Ronquillo
With the "Create Folder" MSI command you can create any folder using variables. For example:

Set Variable var1 to dir1
Set Varaible var2 to dir2
Create Folder c:\\$var1$
Create Folder c:\\Program Files\\dir3\\$var2$

This code will create the following folders:
c:\\dir1
c:\\Program Files\\dir3 (if doesn't exist)
c:\\Program Files\\dir3\\dir2