Installer: Include and deploy msvcr110.dll and msvcp110.dll

The msvcr110.dll and msvcp110.dll libraries are now included in the installer and extracted to InstallDir\Runtime\. The VC++ 2012 redistributable package is no longer downloaded and installed.

Rainmeter.exe will first try to load Rainmeter.dll normally. If it fails, it will retry after loading Runtime\msvcp110.dll. This means that our copy of the runtimes will be used only if the system copy is either not present or somehow invalid.

See Building.md for updated build instructions.
This commit is contained in:
Birunthan Mohanathas
2013-10-19 16:49:48 +03:00
parent 04230d608f
commit 04e3376d5a
5 changed files with 78 additions and 77 deletions

View File

@ -11,7 +11,14 @@ After Visual Studio has been installed and updated, open Rainmeter.sln to build.
### Building the installer
To build the full Rainmeter distribution, run Build.bat. If you receive "not found" errors, open Build.bat and change the variables at the top to match your system.
To build the full Rainmeter installer, you need to get obtain 32-bit and 64-bit versions of the Visual C++ 2012 Update 3 redistributable DLLs and place them in:
* `Build\Runtime\x32\msvcr110.dll`
* `Build\Runtime\x32\msvcp110.dll`
* `Build\Runtime\x64\msvcr110.dll`
* `Build\Runtime\x64\msvcp110.dll`
Then run Build.bat. If you receive "not found" errors, open Build.bat and change the `set=` lines at the top to match your system.
To sign the installer and the Rainmeter executables, create a Certificate.bat file alongside Build.bat with the following contents: