PDA

View Full Version : Goto, SetOutDir and File /r problem.

Dave Carter
25th April 2001, 10:53
Hi all,

First off, this is a continuation from another thread, but the topic doesn't fit on that one any more as this is a seperate problem, so I hope it's ok me opening a new thread!

In 1.3 I had a problem getting Jump to go over a SetOutDir command if that command was followed by a File /r "<files>" command. I was hoping all the Jump -> Goto changes in 1.4 would have fixed this, but it still seems to be a problem:

Section ""
SetOutPath c:\temp2\ExamTesting1
Goto LabelPastSetOuts
SetOutPath c:\temp2\ExamTesting2
SetOutPath c:\temp2\ExamTesting3
LabelPastSetOuts:
File "C:\temp3\file1.txt"
;File /r "C:\temp3\*.*"
SectionEnd

The code as it stands works fine, with file1.txt being placed in the \ExamTesting1 directory. If I comment out the first File command and uncomment the recursive file command, it goes a bit strange. The files in c:\temp3 are placed in \ExamTesting1 as before. Then the subdirectory in temp3 is created, but for some reason it is created in \ExamTesting3, which should have been jumped over.

At the moment I'm only doing an installer for a single file so I can work around this, but any help or info on this would be great!