Wrapping executables in a TclApp application

Posted by kevinw on 2006-07-10 13:44
OS: All / Any | Product: Tcl Dev Kit | tags: binary bundle executable tclapp wrap
Question: 

I've bundled a binary executable inside my TclApp application. My script can see it, but the OS claims it isn't there when I try to run it. How do I fix it?

Answer: 

When a TclApp application is created, it creates a virtual filesystem using the Tcl vfs module and puts what it needs in that virtual filesystem. While your application can see inside the VFS, the operating system can't -- hence the error.

The best solution is to extract the executable to a location in the regular filesystem and run it from there. The operating system will be able to see it, and it will work as expected.

sowm18 | Wed, 2008-06-11 06:53

Hi all,

How to extract the executable to a location in the regular filesystem form the VFS and run it from there? The operating system will be able to see it, and it will work as expected.

do we need modifications in the main script?

Thanks in Advance

Regards,
BS