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.
To create a self-extracting installation file:
At a command prompt or in the Run window, run Iexpress.exe.
Select Create a new self-extracting directive file and select the next button.
Select Unzip the file and run the install command and select next .
In the text box, enter the name of your MFC application and select next .
On the confirmation prompt page, select the do not prompt and then select Next .
On the License Agreement page, select do not display the license and then select Next .
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.
On the Setup page, in the setup text box, type the following command line, and then select Next .
Cmd.exe/c "Setup.bat"
On the Display window page, select default and then select Next .
On the finished message page, select No message and then select Next .
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.)
On the Configure Restart page, select do not restart and then select Next .
On the save self-extracting command page, select the save self-extracting instruction (SED) file and select next .
On the Create Package page, select next .
VC + + Dependency library in Project deployment