Building Standalone Applications
This tutorial guides you through the steps of creating an executable application that can be deployed to a Windows based operating system without needing the LiveCode IDE to function.
Introduction
Using the LiveCode Integrated Development Environment (IDE) to develop and test your applications is a great way to work, but not everyone has LiveCode installed or uses the same platform as you do. You may also want to distribute your work in such a way that other people do not see how you have implemented the functionality - for example if you sell your app. LiveCode allows you to save your application in formats that can be deployed to a range of platforms. This tutorial guides you through the fundamental steps of saving your LiveCode application for deployment to a Windows based operating system.
Application in the IDE

In order to create a standalone LiveCode application you first have to create an application in the LiveCode IDE. In this example, we are using the 3-5-7 game. You can find out how to write this game here: Game 3-5-7 - A Simple Interface.
Standalone Application Settings

Once you have an application you would like to create as a standalone, save its stack but do not close it in the IDE. The application must remain active in LiveCode. Then open the Standalone Application Settings dialog box. You open this by selecting Standalone Application Settings... from the File Menu (1). This dialog box provides an overview of the standalone platforms that are supported and other features you can add and configure for standalone applications.
Select the platform you would like to deploy to. In this case select the Windows icon (2). This opens the Standalone Application Settings for Windows deployment. Make sure that the Build for: Windows box has been selected (3). This also adds a small green tick mark next to the Windows icon. The other Standalone Application Settings can be configured with your preferences that are specific to the application. Here we have added the word "Game" to the Product Name field (4) and added the word "Game" to the beginning of the File Description field (5). Next, dismiss the dialog box. This completes the required configuration for a basic standalone build.
Saving as a Standalone

You build the standalone with the configuration you set up by selecting Save as Standalone Application... from the File Menu. This initiates a sequence of events that are accompanied by dialog boxes. If your application has been modified and the most recent changes are not stored on your hard drive, you are prompted to save the active stack. You are then prompted with a dialog that allows you to select a location into which you can save your standalone application. Once you have accepted this dialog and your standalone has been saved, you should see the message that is displayed on the screen of this step.
The Standalone

You can access the standalone by following the path to the standalone application area you selected as part of building the standalone application. Look for the file with the .exe extension and try to execute it by double clicking on it. This should open and display the application in a way similar to that shown in the image of this step.
Further Reading
This tutorial presents the fundamental steps for creating a standalone application in LiveCode that runs on Windows, but LiveCode supports more platforms, including Linux, Max, iOS and Android. For information on deploying to iOS, have a look at the following lessons: How do I Build an iPhone Application for iOS?.
When I try to save my save my game357 stack as a standalone for my Windows 7 machine, I get the following error:
"There was an error while saving the standalone application
Build failed for Windows: could not open output file"