issue with CreateCabDDF.vbs

Topics: Developer Forum
Oct 2, 2008 at 9:07 AM

just wanted to let you know that the following bit of script in CreateCabDDF.vbs is causing problems when you have sub folders inside a feature folder, as the condition will unwantedly evaluate to true for each level below a feature folder.

if (sRelativePath <> "" and InStr(1, sFolder, "FEATURES") > 0) then
        sRelativePath = "FEATURES\" + sRelativePath
end if

I have modified my version to fix this problem:

if (sRelativePath <> "" and InStr(1, sFolder, "FEATURES") > 0 and InStr(1, sRelativePath, "FEATURES\") < 1) then
        sRelativePath = "FEATURES\" + sRelativePath
end if


Jaap Vossers