Skip to content

Latest commit

 

History

History
60 lines (49 loc) · 2.13 KB

walkthrough-deploying-a-visual-cpp-application-to-an-application-local-folder.md

File metadata and controls

60 lines (49 loc) · 2.13 KB
title Deploy a Visual C++ Application to an App-local Folder | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-ide
ms.tgt_pltfrm
ms.topic article
dev_langs
C++
helpviewer_keywords
deploying Visual C++ applications
ms.assetid 47a81c47-9dbe-47c6-96cc-fbb2fda5e6ad
caps.latest.revision 7
author corob-msft
ms.author corob
manager ghogen
translation.priority.ht
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
ru-ru
zh-cn
zh-tw
translation.priority.mt
cs-cz
pl-pl
pt-br
tr-tr

Walkthrough: Deploying a Visual C++ Application to an Application-local Folder

Describes how to deploy a Visual C++ application by copying files to its folder.

Prerequisites

  • A computer that has Visual Studio installed.

  • Another computer that does not have the Visual C++ libraries.

To deploy an application to an application-local folder

  1. Create and build an MFC application by following the steps in Walkthrough: Deploying a Visual C++ Application By Using a Setup Project.

  2. Copy the appropriate MFC and C Run-Time (CRT) library files—for example, for an x86 platform and Unicode support, copy mfc100u.dll and msvcr100.dll from \Program Files\Microsoft Visual Studio 10.0\VC\redist\x86\—and then paste them in the \Release\ folder of your MFC project. For more information about other files that you might have to copy, see Determining Which DLLs to Redistribute.

  3. Run the MFC application on a second computer that does not have the Visual C++ libraries.

    1. Copy the contents of the \Release\ folder and paste them in the application folder on the second computer.

    2. Run the application on the second computer.

    The application runs successfully because the Visual C++ libraries are available in the application-local folder.

See Also

Deployment Examples