External files floating loose

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
hairydalek
Posts: 57
Joined: Sat Feb 01, 2014 8:57 pm

External files floating loose

Post by hairydalek » Fri Jan 22, 2016 4:11 pm

Hi, got a question about Windows deployment and externals.

My current LC project references a tool, which, for MacOS is a script file and a folder of essential files. For Windiws, it's actually a little easier as I don't need that tool with the LC app.

What I have noticed is that Mac apps are bundles, and the files I've specified are contained in the bundle. Move therapy, and everything is moved. That's good. It reduces the likelihood of the user breaking it. In Windows, I notice that the specified files are put in a folder next to the .exe file. If the user moves the .exe, the included files will be left behind, breaking the application in the process.

Is there a way to select files to be embedded in the .exe somewhere? Or am I missing something vital that will make LC output an application bundle for Windows?

This isn't a major problem for me at the moment, but this could be an issue later if I can get another project off the ground.

AndyP
Posts: 485
Joined: Wed Aug 27, 2008 12:57 pm
Location: Seeheim, Germany (ex UK)
Contact:

Re: External files floating loose

Post by AndyP » Sat Jan 23, 2016 3:43 pm

Probably the way to go is to put the contents of your essential files into custom properties. You can then on start up check to see if these files exist in for example the users documents folder and if not, write them out from the custom property.

See this post for an example.

http://runtime-revolution.278305.n4.nab ... 56337.html
Andy Piddock

http://2108.co.uk/tinyide/ - Mini LC IDE alternative

http://2108.co.uk/script-editor-themer/ - Script Editor colour theming

http://livecodeshare.runrev.com/stack/897/LiveCode-Multi-Search - Search across 8 LC resources

AndyP
Posts: 485
Joined: Wed Aug 27, 2008 12:57 pm
Location: Seeheim, Germany (ex UK)
Contact:

Re: External files floating loose

Post by AndyP » Sun Jan 24, 2016 7:48 pm

I've just added an example stack to help with this to the User Sample stacks

Save and Deploy files to and from Custom Properties

This stack is a response to questions asked about embedding files in a LiveCode application.

It demonstrates saving the contents of a file(s) into a Custom Property (CP) that can later be deployed to the users system.

Deployment locations account for the users OS Win,Mac,Linux

http://livecodeshare.runrev.com/stack/7 ... roperties-
Andy Piddock

http://2108.co.uk/tinyide/ - Mini LC IDE alternative

http://2108.co.uk/script-editor-themer/ - Script Editor colour theming

http://livecodeshare.runrev.com/stack/897/LiveCode-Multi-Search - Search across 8 LC resources

JohnHubbert
Posts: 6
Joined: Mon Jan 19, 2015 10:15 pm

Re: External files floating loose

Post by JohnHubbert » Thu Jan 28, 2016 8:24 am

Thank's Andy.

Great example stacks.

John

Post Reply

Return to “Windows”