# Deployment Options

Once the application development has been completed, the project can be deployed and structured so that the application can not be modified.

1. Navigate to Project > Deploy to launch the Deployment dialog.
2. Configure the deployment options as desired, and then click Accept to deploy the application.
3. You can then launch the deployed application by going to the deployment folder and running the Launcher exe file, or by using the shortcut on the desktop.

Note: See Deploying a Cognex Designer Project for information regarding deployment behavior specific to WebHMI.
Tip: Prior to deployment, the user will need a way to exit the application. In one of the Pages, add a Button with the Click Command property set to System.Shutdown, which will tie the Button to the Shutdown() function. Alt-F4 will also cause the application to shutdown.

Control | Description
--- | ---
Project Name | The name of the run time application.
Project Version | Specifies version number of the Run {ProjectName}.exe file.
Deployment Folder | Specifies where the run time application will be stored.
Scale Option | Specifies three display options: None: Uses the Pages resolution. Stretch: Fills the entire screen. Fit: Fills the screen, while preserving aspect ratio. Note: When the Scale Option is set to Stretch or Fit, the Windows taskbar will be hidden. To be able to access the taskbar, enable the Windowed Mode option.
Windowed Mode | Specifies whether or not the deployed application can be minimized. When enabled (the option is disabled, by default), at startup, the deployed application window will have a border, with minimize and close buttons. The application will always be on top of other windows, and the maximize/restore button is disabled, regardless of the Scale Option setting. In addition, the application window cannot be resized; it can only be minimized or closed. Note: When enabled, and the Scale Option is set to Fit or Stretch, the deployed application UI will be set to full screen, and the Windows taskbar will be hidden while the deployed application is selected. For applications designed to have multiple Pages, each Page will show up in the same window. Regardless of whether or not Windowed Mode is enabled, you can use the Microsoft Windows keyboard shortcuts (ALT + TAB) to switch between programs while the application is deployed. However, by enabling Windowed Mode, you can minimize the deployed application.
Overwrite Folders | If checked, any sub-folders in the project directory will be copied into the deployment path. Overwrites the existing RunTime database with the one currently used in the Cognex Designer Integrated Development Environment, as well. If not checked, it will copy over any folders that currently do not exist in the deployment folder. Note: Prior to release 4.0, in the deployment folder, the overwrite option would replace files but not delete files in the folder that weren't replaced. As of release 4.0, the deployment folder is cleared of all files that weren't replaced.