Executable creation within standalone

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
MasterchiefJB
Posts: 76
Joined: Sat Nov 07, 2009 7:43 pm

Executable creation within standalone

Post by MasterchiefJB » Sat Aug 28, 2010 6:37 pm

Hi again,

this time a simple question:
Is it possible to create a stack which is able to create an executable that executes a predefined script?

Would look like this: Write stack - > Build standalone -> Execute Standalone -> Create new executable

Just wanted to know wheter it´s possible or not.

Cheers!

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Executable creation within standalone

Post by FourthWorld » Sat Aug 28, 2010 8:29 pm

Standalones can't build standalones.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Executable creation within standalone

Post by mwieder » Sun Aug 29, 2010 2:19 am

On the other hand, you *can* store a stack as a custom property, then the standalone can extract that stack and execute it. But I don't know that you gain anything that way over using a substack.

What is it you're trying to accomplish? There's undoubtedly a way to get there.

MasterchiefJB
Posts: 76
Joined: Sat Nov 07, 2009 7:43 pm

Re: Executable creation within standalone

Post by MasterchiefJB » Sat Sep 04, 2010 9:23 am

Actually I wanted to know wheter it´s possibly to write an Installet. You give it the files and the tool will generate an .msi or .exe file to extract the files.

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Executable creation within standalone

Post by Klaus » Sat Sep 04, 2010 12:50 pm

Hi Chief,

you can store a complete binary file (like "MyApp.exe") ina custom property and "spit it out" when necessary.
"Suck in":

Code: Select all

set the my_executable of stack "installer" to url("binfile:" & path_to_your_exe)
"Spit out"

Code: Select all

put the my_executable of stack "installer" into url("binfile:" & path_to_your_exe)
Mac executable need to be ZIPped first, since they are folders actually.


Best

Klaus

Post Reply