How to run The Last Stand: Union City trainer in a virtual machine

This tutorial will show you how to run the trainer by Undeadsewer for The Last Stand: Union City in a virtual machine. A virtual machine is preferred for this task, as Adobe Flash is no longer supported and will be automatically blocked and removed from modern systems. Adobe Flash also contains a number of security vulnerabilities that may pose a risk to a machine connected to the Internet. By running the game in a virtual machine, you can isolate Adobe Flash from the Internet and reduce the security risk.

Note that this tutorial covers how to run the trainer for the game, not the game itself. The Last Stand: Union City can be played on any modern system without the use of a virtual machine. This can be done by downloading the SWF file of the game, along with an Adobe Flash Player Projector. This tutorial will cover how to run the trainer for the game, which allows for additional customization, hacks, and cheats, but is more complicated to set up.

What you will need
You will need all of the following:


 * The SWF file for the game. You can download a copy from the Internet Archive.
 * The files for the trainer. The trainer can be downloaded from MediaFire.
 * You will need to extract the downloaded .rar file in order to use it. Windows and macOS do not have built-in tools for extracting .rar files. This is because the .rar file format is proprietary.
 * For Windows users, use 7-Zip to extract the .rar file.
 * For macOS users, use Keka to extract the .rar file.
 * Once extracted, you should have a folder named "The Last Stand Union City Trainer (FINAL - FIXED)" containing all of the files for the trainer.
 * Adobe Flash ActiveX installer. You can download the installer for the ActiveX version of Flash from the Internet Archive.
 * A virtual machine hypervisor program. You can select from one of the following:
 * VMware Workstation Player (Windows) or VMware Fusion (macOS)—free for non-commercial use.
 * VirtualBox (Windows and macOS)—free and open source.
 * Parallels Desktop (macOS)—one-time payment or subscription fee.
 * This tutorial will use VMware, selected for its performance and its price. You are welcome to use any other hypervisor program of your choice.
 * A Windows installation ISO. This is needed in order to install a copy of Windows into the virtual machine. You can download a Windows 10 ISO file using the Windows 10 download page from Microsoft.
 * If you are visiting the site from a Windows machine, you will be prompted to download and install the Media Creation Tool. Follow this guide from How-To Geek for how to obtain a Windows installation ISO.
 * If you do not want to use the Media Creation Tool, or if you would like to use an older version of Windows, you can use the HeiDoc Windows ISO Download Tool to download an ISO file directly from Microsoft. You can also change your browser agent to fool the Microsoft download website into letting you download the ISO directly.
 * If you are visiting the site from a non-Windows machine, such as a Mac or Linux machine, the download page will allow you to download the ISO directly, without the Media Creation Tool.
 * If you have a Windows installation disc, you can create an ISO file from it and use it in your virtual machine. Follow this guide from How-To Geek for instructions on how to do this.

Creating and using the virtual machine
This tutorial will involve creating a virtual machine for the game and trainer to run in. This allows it to work without the risk of security vulnerabilities being exploited, and without the risk of anti-virus software and software updates uninstalling or interfering with Adobe Flash. This should also allow the game and trainer to run on modern systems that no longer support Adobe Flash.

Introduction to virtual machines
A virtual machine can be described as a computer that runs as a regular program on another computer. The virtual machine will act and behave like a regular computer, with its own virtual hard drive, RAM, and peripherals, but runs in a window on your main computer. This allows you to run multiple operating systems on the same hardware, without having to reboot. Virtual machines are often used to run older operating systems; for software testing; or to run programs made for a different operating system, such as by running Windows in a virtual machine on a Mac.

Virtual machines are created and managed by hypervisors. These are computer programs that provide you with a user interface for controlling and managing the virtual machine. When you want to start up a virtual machine, you first open the hypervisor, and then start the virtual machine through the hypervisor. The hypervisor is like any other computer program on your machine, and will use CPU power and memory as needed to run the virtual machines.

For the purposes of clarity, this tutorial will use the terms host and guest to refer to different machines.


 * The host is your main computer, running your main operating system directly on your hardware. For most people, this will be Windows or macOS.
 * The guest is the operating system installed in a virtual machine, running within the host.

For example, if you have a computer running Windows 10, that is your host machine. You install the virtual machine hypervisor, such as VMware or VirtualBox, onto the host, and then create a virtual machine with Windows 7 installed. Windows 7 is your guest machine, running within your Windows 10 host machine.

This tutorial will use VMware as its hypervisor program, and Windows 10 Version 1909 as its guest operating system. VMware offers two versions of its free hypervisor program: one for Windows, named VMware Workstation Player; and one for macOS, named VMware Fusion.

Creating a new virtual machine
To create a new virtual machine, follow the instructions for your host operating system.

Creating a new virtual machine on Windows

 * 1) Open VMware Workstation Player.
 * The welcome screen opens.
 * 1) Select Create a New Virtual Machine, or press - on your keyboard.
 * The "New Virtual Machine Wizard" appears.
 * 1) Select Installer disc image file (iso), then select Browse.
 * 2) Select the Windows installation ISO file from your computer.
 * VMware should attempt to detect the operating system inside the ISO file and selects the appropriate configuration for you.
 * 1) Select Next.
 * The "Easy Install Information" window appears.
 * 1) Under "Version of Windows to install", select the appropriate edition of Windows to install, if applicable.
 * For Windows 10, select Windows 10 Home or Windows 10 Pro.
 * For Windows 8.1, select Windows 8.1 Home or Windows 8.1 Pro.
 * For Windows 7, select Home Premium, Professional, or Ultimate.
 * If you are not sure about which edition to use, select Home or Home Premium.
 * 1) Optionally, enter a name and password, which will be used in the guest system.
 * 2) Select Next.
 * If you receive a prompt warning you about not entering a Windows product key, select Yes to continue.
 * The "Name the Virtual Machine" window appears.
 * 1) Under "Virtual machine name", enter a name you would like to give to your virtual machine.
 * 2) Optionally, under "Location", specify a location on your host system where you would like to store the virtual machine's files in.
 * 3) Select Next.
 * The "Specify Disk Capacity" window appears.
 * 1) Beside "Maximum disk size", specify the amount of storage space you would like to provide the virtual machine with.
 * The amount of storage you should provide depends on the guest operating system's minimum requirements, and what you plan on using the virtual machine for. You should have sufficient storage space on your host system to accommodate the guest system. For example, if you give 60 GB of storage to the guest, your host should have more than 60 GB of free storage space.
 * 1) Select Next.
 * The "Ready to Create Virtual Machine" window appears.
 * 1) Select Customize Hardware.
 * The "Hardware" window appears.
 * 1) In the sidebar, select Network Adapter.
 * 2) Under "Device status", deselect Connected at power on.
 * This will keep the virtual machine disconnected from the Internet. This is important when installing an older version of Windows that is no longer supported. On a Windows 10 guest, this will also prevent Windows from attempting to download bloatware.
 * 1) Select Close.
 * 2) Select Finish.
 * 1) Select Finish.

VMware Workstation Player will now begin creating your virtual machine, and will install Windows and VMware Tools automatically. VMware will automatically start the virtual machine when the virtual hardware has been created.

Creating a new virtual machine on macOS

 * 1) Open VMware Fusion.
 * 2) In the menu bar, select File > New, or press - on your keyboard.
 * The installation window appears.
 * 1) Drag and drop the Windows installation ISO from your computer into the window.
 * 2) Select Continue.
 * The "Easy Install" window appears.
 * 1) Optionally, enter a name and password, which will be used in the guest system.
 * 2) Under Choose your Windows version, select the appropriate edition of Windows to install, if applicable.
 * For Windows 10, select Windows 10 Home or Windows 10 Pro.
 * For Windows 8.1, select Windows 8.1 Home or Windows 8.1 Pro.
 * For Windows 7, select Home Premium, Professional, or Ultimate.
 * If you are not sure about which edition to use, select Home or Home Premium.
 * 1) Select Continue.
 * If you receive a prompt warning you about not entering a Windows product key, select Continue Without Key.
 * The "Integration" window appears.
 * 1) Select More Isolated.
 * This will prevent the guest machine from automatically accessing your host's files. This is better for security reasons.
 * 1) Select Continue.
 * The "Finish" window appears.
 * 1) Select Customize Settings.
 * 2) Select a folder on your host system where you would like to store the virtual machine's files in.
 * 3) Select Save.
 * The virtual machine settings window appears.
 * 1) Under "Removable Devices", select Network Adapter.
 * 2) Deselect Connect Network Adapter.
 * This will keep the virtual machine disconnected from the Internet. This is important when installing an older version of Windows that is no longer supported. On a Windows 10 guest, this will also prevent Windows from attempting to download bloatware.
 * 1) Close the virtual machine settings window.
 * 2) Select the Play icon to start the virtual machine.
 * 1) Select the Play icon to start the virtual machine.

VMware Fusion will now install Windows and VMware Tools automatically in the virtual machine.

Installing Adobe Flash
Once the virtual machine has been created and VMware Tools has been installed, the ActiveX version of Adobe Flash needs to be installed in the guest.


 * 1) Select the installer file (named "flashplayer32_0r0_363_winax.exe"), then drag it into the guest operating system.
 * The installer will appear on the guest in the folder that you dragged it into, such as the desktop.
 * 1) In the guest system, open the installer file.
 * If User Account Control appears, select Yes to continue installation.
 * 1) Follow the on-screen prompts to continue with installation.

Installing the game and the trainer
To install the trainer, do the following:


 * 1) Select the "The Last Stand Union City Trainer (FINAL - FIXED)" folder on your host.
 * If you do not have this folder, see the What you will need section on how to download and extract the .rar file the trainer comes in.
 * 1) Drag the folder into the guest operating system.
 * The folder will appear on the guest in the folder that you dragged it into, such as the desktop.

To install the game, do the following:


 * 1) Select the "the-last-stand-union-12009.swf" file on your host.
 * 2) Drag the file into the guest operating system.
 * The file will appear on the guest in the folder that you dragged it into, such as the desktop.

Running the game and the trainer
To play the game in the trainer, do the following:


 * 1) In the guest system, navigate to the "The Last Stand Union City Trainer (FINAL - FIXED)" folder.
 * 2) Select The Last Stand Union City Trainer (FINAL).exe.
 * The "DevComponents DotNetBar Component" window appears.
 * 1) Select OK.
 * You do not need to purchase or register the component to use it.
 * 1) In the top-left corner, select Game, then select Open TLS:UC From PC.
 * 2) Navigate to the "the-last-stand-union-12009.swf" file on your guest.
 * 3) Select Open.

The trainer should load the .swf file, and you will be able to start playing.

VMware Tools does not automatically install
VMware Tools may sometimes fail to install on your virtual machine. This may be caused when VMware is unable to access the virtual CD/DVD drive, and thus cannot insert the installation files for VMware Tools. The option to install VMware Tools will be greyed out, and features such as drag and drop will not work.

For Windows hosts, do the following:


 * 1) Shut down the virtual machine, if it is running.
 * 2) Open VMware Workstation Player, but do not start up any virtual machines yet.
 * 3) Right-click on the virtual machine you are trying to install VMware Tools into, then select Settings.
 * 4) Select the CD/DVD drive from the sidebar, then select Remove.
 * 5) Select the Floppy drive, if present, then select Remove.
 * 6) Select Add, then add a new CD/DVD Drive.
 * 7) Start the virtual machine.
 * If prompted about starting a virtual machine with an empty CD/DVD drive, select Yes.
 * 1) Start the virtual machine.
 * 2) Select the Player menu in the top-left, then select Manage > Install VMware Tools.
 * 3) In the guest operating system, open This PC (Windows 8, 8.1, and 10), Computer (Windows Vista and 7), or My Computer (Windows XP and earlier).
 * 4) Select the VMware Tools installation medium from the virtual DVD Drive.
 * 5) When prompted, select the Typical installation.
 * VMware Tools will be installed.
 * 1) When prompted, restart the guest.

For macOS hosts, do the following:


 * 1) Shut down the virtual machine, if it is running.
 * 2) Open VMware Fusion, but do not start up any virtual machines yet.
 * 3) In the menu bar, select Windows > Virtual Machine Library, or press -- on your keyboard.
 * 4) Right-click on the virtual machine you are trying to install VMware Tools into, then select Settings.
 * 5) Under "Removable Devices", select CD/DVD.
 * 6) Select Advanced Options.
 * 7) Select Remove CD/DVD Drive, then select Remove when prompted.
 * 8) Select Add Device, then select CD/DVD Drive.
 * 9) Start the virtual machine.
 * 10) In the menu bar, select Virtual Machine > Install VMware Tools.
 * 11) In the guest operating system, open This PC (Windows 8, 8.1, and 10), Computer (Windows Vista and 7), or My Computer (Windows XP and earlier).
 * 12) Select the VMware Tools installation medium from the virtual DVD Drive.
 * 13) When prompted, select the Typical installation.
 * VMware Tools will be installed.
 * 1) When prompted, restart the guest.

Sending Ctrl-Alt-Del to the virtual machine
If you are using a Windows host, you may find that pressing -- causes Windows Security to appear on your host and your guest. This is because Windows is configured to intercept that keystroke, even if other applications, such as virtual machine hypervisors, are intercepting keyboard and mouse input, so pressing the key combination will bring up the Windows Security screen on both the host and the guest.

To send Ctrl-Alt-Del to the virtual machine without sending it to the host, select the Send Ctrl+Alt+Del to virtual machine button in the toolbar, located to the right of the Pause button, or use the following key combination: --.

If you are using a macOS host, select Virtual Machine > Send Ctrl-Alt-Del, or use the following key combination: ---.