I bet "Program Files" has a space in it. But the real issue here is that you
should find the path to your app, then navigate from there.
fi = new FolderItem
"fi" will have the path to the directory containing your app. From there, use
fi.Child("docs"). And that's kinda what it looks like you're doing on the Mac.
Also, take the time to find items in the path one at a time, make sure they
exist, etc. This will save you from NilObjectExceptions you'll just have to
track down later when something gets installed wrong.
On May 31, 2012, at 10:26 AM, Albert Wallace wrote:
> When I put a folder on a Windows desktop containing my application and it's
> Libs folder and it's documentation folder (containing an HTMLviewer and
> graphics), created on a Mac, I can access the docs folder with:
> f = GetFolderItem("docs").child("MyApplicationDocs.html")
> But after installing using InnoSetup, I get an IOException when I try to open
> the documentation, although I can verify that all the files are with the .exe
> in it's folder in Program Files.
> I've tried using:
> f =
> with no luck. Not so sure about the quotation marks, but RB wouldn't let me
> compile without them.
> Does anyone understand what I need to do differently?
> Thanks for any help!
Unsubscribe or switch delivery mode:
Search the archives: