From: James Britt Date: 2005-06-24T00:47:33+09:00 Subject: Re: Packaging dillema Erik Veenstra wrote: > James wrote: >>My solution was to create the exe, and bundle it in a zip >>file with sample scripts and a default config file. The >>installation was basically to unzip the bundle to create the >>application directory structure and default files, then just >>run the main app exe. > > > Or create a user directory full of templates, simply by > unzipping an embbeded ZIP file. Or use Tar2RubyScript to create > an RBA which includes the application and the templates > directory (but not the shared objects!...) and copy this > template directory to user space the first the application is > started. Ah, quite good. This would alleviate a problem I had when I first handed the zipped ile/exe set over to someone for a test drive. The app ran but could not find the bundled test scripts. I then realized that the code was running on WinXP, which offers the dubious feature of treating zip files as actual folders. My test user just ran the exe straight from the zip; the program could not find the needed files because they were never correctly extracted. Having the exe progam do the extraction would prevent this sort of thing. James -- http://www.ruby-doc.org - The Ruby Documentation Site http://www.rubyxml.com - News, Articles, and Listings for Ruby & XML http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://www.jamesbritt.com - Playing with Better Toys