Bitcoin Forum

Bitcoin => Electrum => Topic started by: masulum on July 13, 2020, 02:54:50 AM



Title: How To Solved VCRUNTIME140.DLL Error When Installing Electrum (WINDOWS)
Post by: masulum on July 13, 2020, 02:54:50 AM


How To Solved VCRUNTIME140.DLL Error When Installing Electrum (WINDOWS)




Today, my electrum 3.3.8 error when I try to open it. So, I decided to download the newest Electrum 4.0.2, unfortunately, when I tried to install this version, I got this error


Case:
1. For the first time, I try to restart my PC, and install electrum, but still not working to fix this error.

2. For the second way, I try to install Microsoft Visual C++ 2019 x64 Redistributable (because I found a member on Microsoft forum give suggestion to reinstall C++ (not-electrum case) so I try it,

1. Download Visual C++ Redistributable here: https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads
2. Install it
3. When finish, restart your PC
4. Install Electrum
5. Restart your PC when complete
7. Run your electrum

But, unfortunately, my installation still errors using this way. Maybe one of you success with this way, you can share your experience

So, I try to search for another options and found this way

1. Update/repair Microsoft Visual C++ to the newest version (if you have the latest version, you can skip this and continue to next step)
2. Download VCRUNTIME140.DLL from this site https://www.dll-files.com/vcruntime140.dll.html
3. Find VCRUNTME140.DLL on your system "C:\Program Files (x86)\" for 32 bit or "C:\Program Files\" for 64 bit
4. Replace the current version with file from the download
5. Restart, PC
6. Reinstall Electrum

Here are my results


Since I'm using VCRUNTIME140.DLL from 3rd party, you must be careful, DWYOR/DYOR before download and install, for now, this is the best way that I know. If another member has another way, please share it here.

Another way, you can move from installed version electrum to portable version

Electrum official site: https://electrum.org/#download
Download electrum 4.0.2 portable version: https://download.electrum.org/4.0.2/electrum-4.0.2-portable.exe

Thank you


Title: Re: How To Solved VCRUNTIME140.DLL Error When Installing Electrum (WINDOWS)
Post by: joniboini on July 13, 2020, 03:49:34 AM
What's your previous version of vcruntime140.dll? What's the new one that works? Have you tried installing all vcredist exe from 2015 to the latest? Did you install the x86, x64, or both versions before manually downloading the dll?


Title: Re: How To Solved VCRUNTIME140.DLL Error When Installing Electrum (WINDOWS)
Post by: masulum on July 13, 2020, 04:17:31 AM
I don't know the previous version of vcruntime140.dll I have, because I'm not checking it. For the version I downloaded is version 14.26.28619.0, for VC_redist which has x86 and x64 versions of the default system (and my electrum also has no problems before. This problem I experienced today) and in this case, I only reinstall the x64 version (because my pc is based on x64).


Title: Re: How To Solved VCRUNTIME140.DLL Error When Installing Electrum (WINDOWS)
Post by: pooya87 on July 13, 2020, 05:32:37 AM
don't do this my friend. Windows is already as insecure as it is without using workarounds to download one of its basic dlls from a third party website. always try using another OS that is open source such as Ubuntu (or any Linux for that matter) if you want security. and if stuck with windows at least update it from their official website instead of going to third party sites.
at the very least you must verify the dll you downloaded by checking its SHA256 hash (don't trust the SHA1 provided, it is weak) and the certificate it has to belong to Microsoft.


Title: Re: How To Solved VCRUNTIME140.DLL Error When Installing Electrum (WINDOWS)
Post by: masulum on July 13, 2020, 08:34:49 AM
at the very least you must verify the dll you downloaded by checking its SHA256 hash (don't trust the SHA1 provided, it is weak) and the certificate it has to belong to Microsoft.

Thanks for the input, I really want to use Linux, but because there is an office system that can only be installed on Windows. So, I can't switch OSes at this time. Regarding updates from non-3rd parties, I admit it was too risky for this decision. However, Since i try to install VC_redist only, but doesn't work, and I did not find a vcruntime140.dll file that I could except to download from the 3rd party. So I do this.

Just to remind the reader of this thread, please DYOR,



Title: Re: How To Solved VCRUNTIME140.DLL Error When Installing Electrum (WINDOWS)
Post by: pooya87 on July 13, 2020, 10:03:40 AM
Thanks for the input, I really want to use Linux, but because there is an office system that can only be installed on Windows. So, I can't switch OSes at this time. Regarding updates from non-3rd parties, I admit it was too risky for this decision.

it is a bit weird that you can change system files that should be protected by administrator account lol. but since you can do that, you should be able to boot from CD or USB too. and you can run Linux without installation from a DVD (select try without installation). or you could even install it on your USB disk and boot the whole OS from that with or without persistence. read this: https://www.howtogeek.com/howto/14912/create-a-persistent-bootable-ubuntu-usb-flash-drive/


Title: Re: How To Solved VCRUNTIME140.DLL Error When Installing Electrum (WINDOWS)
Post by: masulum on July 13, 2020, 10:16:04 PM
I have Linux bootable USB already, but since with non-persistence disk, whole of installed file are lose, i install this linux using rufus, i don't know if it fully OS or just trial OS. I will try to learn it again


Title: Re: How To Solved VCRUNTIME140.DLL Error When Installing Electrum (WINDOWS)
Post by: pooya87 on July 14, 2020, 03:13:17 AM
I have Linux bootable USB already, but since with non-persistence disk, whole of installed file are lose, i install this linux using rufus, i don't know if it fully OS or just trial OS. I will try to learn it again

i never liked rufus myself, instead i use another application called Universal-USB-Installer. it is a lot easier to use in my opinion and it has the option to add persistence which i highlighted in screenshot below with an arrow
https://i.imgur.com/CphdGdh.jpg

you should also be able to do it inside Linux itself without needing these types of application. boot from DVD then create the live USB disk there.


Title: Re: How To Solved VCRUNTIME140.DLL Error When Installing Electrum (WINDOWS)
Post by: masulum on July 14, 2020, 05:21:01 AM
Well, after I try to use the newest Rufus, I can separate disk space, Unfortunately I can't see electrum even I got information if electrum success to install. Since linux very new for me, i need time to learn about this.


Updates: Finally, i know how to open electrum on linux.
My mistake is, after run a command
Code:
 sudo apt-get install python3-setuptools python3-pip
python3 -m pip install --user Electrum-4.0.2.tar.gz

and got information success to install, i try to run electrum with command
Code:
./run_electrum
directly and see "no such directory" warning. So, i try to find electrum compressed folder and extract it, then open terminal from extracted directory and run ./run_electrum command inside it, and now its working. LOL ::)

https://i.postimg.cc/3N015DnG/92736506-1594707316-0-35494754.png

Thank you pooya87, now I don't need electrum on my Windows anymore. And, because of this case and your support, i can learn something new ;)


Title: Re: How To Solved VCRUNTIME140.DLL Error When Installing Electrum (WINDOWS)
Post by: HCP on July 14, 2020, 10:30:50 PM
Sounds like a simple file permission issue... likely related to C:\ being somewhat protected by the system or possibly antivirus/antimalware programs getting jumpy about .dlls being placed on the system drive...

Did you initially run the installer with admin privileges? ???


Title: Re: How To Solved VCRUNTIME140.DLL Error When Installing Electrum (WINDOWS)
Post by: masulum on July 15, 2020, 01:50:47 AM
@HCP I do not know whether because of malware or corrupt because of antivirus. What i know, when I scan with Malwarebytes, no malware is found in my PC. For installation, Yes I use the install administrator privileges feature. When i trying to install in 3.x.x version its no problem before.

https://i.postimg.cc/HLP5Lpm1/92736506-1594777311-0-61454846.png


Title: Re: How To Solved VCRUNTIME140.DLL Error When Installing Electrum (WINDOWS)
Post by: pooya87 on July 15, 2020, 03:17:34 AM
Thank you pooya87, now I don't need electrum on my Windows anymore. And, because of this case and your support, i can learn something new ;)

glad to hear it. just make sure to create a physical backup of your seed phrase on a piece of paper and store it someplace safe so that if you lost the USB disk or it was damaged or something like that you don't lose your funds.
you should also look into how you could add more encryption on top of this, a login password, changing root password, encrypting user folders,...


Title: Re: How To Solved VCRUNTIME140.DLL Error When Installing Electrum (WINDOWS)
Post by: NotATether on July 16, 2020, 06:58:49 PM
Don't replace DLL files by copying them into Program Files and overwriting another file there, it might stop another program that uses it from working.

I don't know the previous version of vcruntime140.dll I have, because I'm not checking it. For the version I downloaded is version 14.26.28619.0, for VC_redist which has x86 and x64 versions of the default system (and my electrum also has no problems before. This problem I experienced today) and in this case, I only reinstall the x64 version (because my pc is based on x64).

You must install the x86 version of Visual C++ redistributable because Electrum for windows is 32-bit software. VCRUNTIME140.DLL refers to Visual C++ 2015 so you need to install the Microsoft Visual C++ Runtime 2015 Redistributable (x86) library from Microsoft's site (https://www.microsoft.com/en-us/download/details.aspx?id=52685).