VC + + Dependency library in Project deployment

Source: Internet
Author: User

Deployment in Visual C + +

1, recommended practice, the use of the corresponding Vcredist.exe. Vcredist.exe installs the run-time library under the System folder.
But this method has a small problem, in some versions of Windows, if there is no patch kb2999226 installed,
Vcredist.exe will fail to install.

2. Redistributable merge module (. msm file). Have not been used.

3, local deployment. The runtime DLLs that are about to be relied on are put together with the EXE. DLLs that need to be included:
A, the DLL corresponding to the VS version of the Vc\redist directory.
B, Windows kits\version\redist the required DLLs below.
In the above directory of version=10, there is a ucrt,*140.dll that relies on the API opening library. You can put these 41
The library is placed in the directory where the EXE resides. You can refer to applications such as Postman,vscode,wegame.

In the deployment example below the link above, there is one walkthrough: Deploying a Visual C + + application using the Visual C + + redistributable package.
It introduces a Windows-built self-extracting installation file tool, Iexpress.exe.

  1. To create a self-extracting installation file:

    1. At a command prompt or in the Run window, run Iexpress.exe.

    2. Select Create a new self-extracting directive file and select the next button.

    3. Select Unzip the file and run the install command and select next .

    4. In the text box, enter the name of your MFC application and select next .

    5. On the confirmation prompt page, select the do not prompt and then select Next .

    6. On the License Agreement page, select do not display the license and then select Next .

    7. On the packaged Files page, add the following file and then select Next .

      • Your MFC application (. exe file).

      • Vcredist_x86.exe. This file is located in \ Program Files \ Microsoft SDKs \ windows \ v7.0a \ Bootstrapper \ program package \ vcredist_x86 \.

      • The Setup.bat file that you created in the previous step.

    8. On the Setup page, in the setup text box, type the following command line, and then select Next .

      Cmd.exe/c "Setup.bat"

    9. On the Display window page, select default and then select Next .

    10. On the finished message page, select No message and then select Next .

    11. In the package name and Options page, enter a name for your self-extracting installation file, select the use long file name in the package to store File tab, and then select Next . The end of the file name must be Setup.exe (for example, end.)

    12. On the Configure Restart page, select do not restart and then select Next .

    13. On the save self-extracting command page, select the save self-extracting instruction (SED) file and select next .

    14. On the Create Package page, select next .

VC + + Dependency library in Project deployment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.