Jump to content



πρόβλημα στην εγκατάσταση ms Visual Studio 2010


Dr.Paneas

Recommended Posts

Τα ιδια. Ο administrator παιρνει τα @@ μου. Αναγκαστηκα να αλλαξω μεχρι και το ownership του Windows/System32 για να μπορεσω να κανω rename ενα *.dll ...φαντάσου.

2 μέρες έχω δοκιμάσει τα άπαντα.

Τα logs:

I:\Program Files (x86)\Microsoft Visual Studio 10.0\Microsoft Visual Studio 2010 Ultimate - ENU\Logs

Link to comment
Share on other sites

Η λύση: την εγραψα και στο MSDN forums..

How to install Visual Studio 2010 on Windows 7 64bit Ultimate

Many users around the world have encountered many problems and errors trying to install the new version of Visual Studio (including Express edition versions). There are some common errors that anyone should be aware of. I ‘ve been trying about 3 days to install this software with no luck, until now that I figured out some sort of “cheat” in order to make this able to run onto my computer. It doesn’t mind of you are have a hardcore ultra-speed hardware or something like that…it’s all but software conflicts.

One thing is for sure and please note that:

Microsoft Visual Studio installation EPIC FAILS on 64bit machines. Period.

First problem : Cannot install the prerequisites, so the whole installation process fails. If you try to install prerequisites manually you will get: Error 1304 Error writing to file: mfcmifc80.dll . Verify that you have access to that directory. ( image: post-928-1414343538,7027_thumb.png )

To deal with this problem you must use some magic in your /Windows/System32 and /Windows/SysWOW64 . The problem is that the mscoree.dll (x86) and mscoreei.dll (x64) have not been updated to .NET 4.03 version. Check this for yourself and you will find out that the *.dll version is .NET 2 and not .NET 4. So you must manually replace these files with the appropriate ones. The answer was originally give by a member of MSDN forums , called Wolfie and Iyla_Pan ( url: http://social.msdn.microsoft.com/profile/ilya%20pan.%20_/?type=forum&referrer=http://social.msdn.microsoft.com/Forums/en/setupprerelease/thread/150d05c4-4df4-47ec-b7a6-a66f3a55cd08 ).

BTW here are the steps to get rid of the problem:

  1. Make sure you have installed the framework 4.0
  2. Check out the version of mscoree.dll in c:\windows\system32. If it's 2.0.50727.4927, then continue (holy sh*t Microsoft you should kill the programmer who made this stupid bug).
  3. Fiddle with permissions of this dll (Properties>>Security>>Advanced>>Change permissions>>Add>>$$Your user name$$>>OK>>OK>>OK
  4. Rename it to mscoree.dll.old
  5. (If you have windows 7 x64 then do the same in 1-3 ALSO with c:\windows\syswow64\mscoree.dll)
  6. Open the file dotNetFx40_Full_x86_x64.exe with any extractor and extract it to any folder
  7. Open the folder
  8. Find the file netfx_Core.mzz and rename it with netfx_Core.zip and open with extractor
  9. Extract the file _003_mscoree_dll_x86 (and if you have windows 7 x64 ALSO the _003_mscoree_dll_amd64)
  10. X64: Rename _003_mscoree_dll_amd64 to mscoree.dll and copy it to c:\windows\system32
  11. X86: Rename _003_mscoree_dll_x86 to mscoree.dll and copy it to c:\windows\system32
  12. X64: Rename _003_mscoree_dll_x86 to mscoree.dll and copy it to c:\windows\syswow64
  13. No restart needed. Just install the x64 prereqs and next visual studio as it was ment to be.

Please remember that even not Administrator can rename the problematic mscoree.dll and mscoreei.dll files. So you need to change both ownership and permission of those files. This is some kind of misunderstood for the most users out there. After changing the permission, then you can replace the files. The sucky part is that all ownerships are gained access by TrustedInstaller and not by Admin/root.

Ok, now you can happily install the software.

Second problem: The program breaks during loading the splash screen with a message box:

The error is: The type  initializer for '<Module>' threw an exception.

Here you can find the Error Log: http://www.heypasteit.com/clip/Q15

Ok, if you want to solve this mystery you have to follow 0xFDED user member instructions (link: http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/8d0c2be0-8472-41ff-8e0c-b3633a385eb0/ )

  1. Uninstall VS2010, .NET Framework 4 Extended, .NET Framework 4 Client Profile (in that order).
  2. Installed .NET Framework 4 RC
  3. Located the above files in Windows\Microsoft.NET\Framework\v4.0.30128\WPF and Windows\Microsoft.NET\Framework64\v4.0.30128\WPF and saved them to another location.
  4. Reinstalled VS2010 (this will install .NET 4 Framework Extended and Client Profile)
  5. Copied the above files into the corresponding directories of the current .NET 4 install (Windows\Microsoft.NET\Framework\v4.0.30319\WPF and Windows\Microsoft.NET\Framework\v4.0.30319\WPF)
  6. Started VS2010

The hard part is to find the NET framework 4 RC beta release. All the other part it’s just time consuming but an easy task to complete.

The third and final problem you will get is this message :

Exception has been thrown by the target of an invocation" error .

I resolved this problem by installing visual studio 2010 at my laptop Vista 32bit. After you ensure the installation is successfully completed (the error log should now be empty), then copy the folder C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF and replace it with both of /Windows/Framework and /Windows/Framework64 files onto your Windows 7 64bit machine. After that I was able to finally launch the software. It seems that there is a conflict for 64bit versions. What a shame btw…

I hope I helped you guys…

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Δημιουργία...

Important Information

Ο ιστότοπος theLab.gr χρησιμοποιεί cookies για να διασφαλίσει την καλύτερη εμπειρία σας κατά την περιήγηση. Μπορείτε να προσαρμόσετε τις ρυθμίσεις των cookies σας , διαφορετικά θα υποθέσουμε ότι είστε εντάξει για να συνεχίσετε.