Create dir function fails

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

Create dir function fails

Post 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.
Alex_Ronquillo
Site Admin
Posts: 364
Joined: Mon Jul 30, 2007 11:51 am
Location: USA
Contact:

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