Page 1 of 1

Create Folder

Posted: Mon Jan 07, 2008 7:32 pm
by Robert
Hi,

I am having problems creating a folder. I am using the code below to
read the registry key in and create a subfolder called Backup. I am unable to to create the folder. I must be missing something. I am not sure what though. I just us the Message Box to make sure I am displaying the correct data, and the string looks fine to me.

Anyhelp would be appreciated.

Also I am not able to copy file either, I am not sure if the problem is related.

Read Registry Key HKLM\\SOFTWARE\\Corp\\Databases\\User into Data
MessageBox: Test, $Data$
Extract File Folder: Data
MessageBox: Test, $Data$
Set Variable DataBP to $Data$Backup
MessageBox: Test, $DataBP$
Create Folder $DataBP$

Thanks,

Robert

Posted: Wed Jan 09, 2008 2:38 pm
by Alex_Ronquillo
Do you have an "Apply Install" command after the "Create Folder" command? Any "Create Folder" command will take effect until it founds an "Apply Install" command.

Posted: Fri Jan 11, 2008 2:11 pm
by Robert
Thanks,

I will try that.

Robert

Posted: Tue Jan 15, 2008 9:31 am
by jimo
Robert,
If you need the folder available before you run Apply install, try creating a batch file like this;

Code: Select all

 Does Folder Exist $DataBP$ (get result into variable BACKUPFOLDER)
 if Variable BACKUPFOLDER not Equals TRUE
       Write into Text File $SUPPORTDIR$\\temp.bat from Value md $DataBP$ (at end of file)
       Run Program $SUPPORTDIR$\\temp.bat  (WAIT)
     end

Posted: Thu Jan 17, 2008 2:41 pm
by Robert
Thanks for the reply about the batch file.

I will try that, as I need to do this after the appy install.

Thanks.