View Single Post
Old 30th September 2011, 10:24   #5
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,366
it appears i could find the problem in my script, so i wanted to resolve it in case someone runs into similar problems.

the problem appeared (occasionally, only on windows vista or later) when setting the outdir when the path existed already
code:
SetOutPath "$MyTempDir\fonts"

a simple IfFileExists fixed the issue, but i changed the code to this
code:
IfFileExists "$MyTempDir\fonts\*.*" +2
CreateDirectory "$MyTempDir\fonts"


in the following a couple of files were copied, so i didn't really need SetOutPath and changed it to CreateDirectory. for reasons unknown, it was IfFileExists that made the difference!
Yathosho is offline   Reply With Quote