I have designed an application that requires no install and can be used by non-administrators. I would rather not lose this functionality but when I use the .exe on other computers than the one I programmed it on I get an error that a missing MSVCP100.dll is preventing the file from executing.
What am I doing wrong here? How do I include the file in my release build?
Thanks!
Step 1: Uninstall the exiting Microsoft Visual C++. a) Press Windows key + x key and select Apps and Features. b) Select the Microsoft Visual C++ 2010 and uninstall it. Step 2: Download the latest Microsoft Visual C++ and install it.
When you go into an app that displays the message: C: \ Windows \ system32 \ MSVCR100. dll Either is not designed to run on Windows or it contains an error. Try installing the software again using the original installation media or contact your system administrator or the software vendor for support.
Copy the msvcr100. dll file from the \System32\ folder and paste it into the \SysWOW64\ folder. This works if you already have the DLL file in the 32-bit folder (System32) but are having troubles with 64-bit programs accessing it. The full paths of these folders are C:\Windows\System32 and C:\Windows\SysWOW64\.
Configure your project to statically link to the C/C++ runtime instead of linking to the runtime DLL:
Select Multi-threaded (/MT) (or Multi-threaded Debug (/MTd) for your debug build).
As an alternative, you should be able to get xcopy deployment of the C/C++ runtime DLL using the technique documented on http://msdn.microsoft.com/en-us/library/ms235291.aspx under the heading "Deploying Visual C++ library DLLs as private assemblies". I haven't tried that technique, as it's generally simpler to just statically link if you need xcopy installation of a native C++ program.
http://msdn.microsoft.com/en-us/library/ms235299.aspx
Distributing apps that have been compiled with Visual C++ requires distributing the C++ runtime .dlls that your app uses. In your case, I assume you want to just distribute a folder, so follow the directions (appropriately modified for your app) here:
http://msdn.microsoft.com/en-us/library/dd293565.aspx
Or just copy msvcp100.dll into your application's directory alongside the .exe and you'll be good to go.
32-bit msvcp100.dll
is in C:\Windows\SysWOW64\
64-bit msvcp100.dll
is in C:\Windows\System32\
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With