Categories
Microsoft Windows Installer, Application Compatibility and Deployments

Problems with Orphaned Registry Keys in Visual Studio 2010 Installation

I was talking to one of my friend Ninaada, who was facing a strange issue while installing Visual Studio 2010. It sounded a little wierd for me, as he said that, most of the applications in the Visual Studio Suite did not respond after the upgrade. Do have a look at this and let us know your suggestions in the comment box!

He explains,

“Visual Studio 2010 has been released recently and I downloaded the iso image of the Ultimate edition DVD from my MSDN account. Eager to try it, I installed it by removing the Release Candidate of the same, which I had installed earlier. The RC was removed without any issues whatsoever. But after installing VS 2010, strangely, Visual Studio 2008 Pro started showing weird problems. At first, the designer view for ASP.Net project stopped working, it would just stop responding. I could not click anywhere in the window & had to close the IDE using the Task Manager.

Since I was not much into ASP.Net, and design view was working fine in VS 2010. This error was due to the fact that some .dll file required for rendering was replaced by VS 2010 installer with a newer version of the same dll & which was not compatible with VS 2008. Since it was fine in VS 2010, I did not bother much about it.

But situation started worsening after a few days. I had installed XNA Game studio which is an add-on to VS 2008 to create games in C#. VS 2008 not only stopped opening/creating the XNA projects, but also started to fail to open any C# project! I searched over the Internet to see whether anybody else had encountered the same problem. I did not get any such cases, and hence I decided to re-install both VS 2008 & VS 2010. I first removed VS 2010 and started removing the other components it had installed with it. I could remove almost all of them except for one or two. I had to remove the remaining components using the MS Installer Clean-up Utility which is available for download here. It appeared that I had successfully removed VS 2010. Then I re-installed VS 2008 which went well without any issue.

Then came the bigger problem. I tried Installing VS 2010 back again, which used to fail repeatedly. It was trying to install VC++ 10.0 Runtime without any success. VC++ Runtime is a prerequisite for installing VS 2010. I tried installing it separately by downloading from the MS website, which would actually install, but would not be detected as installed by VS 2010 Installer, which tried to install it again & would fail. Then I looked into the installation log of VS 2010 which was in my “Temp” folder located in C:\Users\Username\AppData\Local\Temp\ . There, I found that the installer was returning error code 1603, which meant “fatal error during installation”. I digged further and I got error code 1402, which meant that a particular Registry Key was not accessible to the installer. The error message in the log file read something like Error 1402. Could not open key:  UNKNOWN\Components\06A0D925C8932A8379FE28AFAF97A860\B45568A682984E035AC37D33679831D4. Verify that you have sufficient access to that key, or contact your support personnel.

So, I came to know that the installer has some problems accessing a particular key in the registry. I searched in the net & got a link on how to solve such type of registry inaccessible problems. As you can see, that particular Registry key had been “Orphaned”.

Issues with Orphaned Registry Keys in Visual Studio 2010

What happened here was that when VS 2010 was uninstalled, the uninstaller instead of removing those registry keys, had actually, Orphaned them. In the sense, that those Keys don’t belong to any particular user, & hence when the setup tries to create the key, it encounters another key with the same name & cannot modify the existing one since it doesn’t have any owner, rendering it inaccessible to any user/process. As indicated in this earlier link, I changed the permissions for that key & thought Installation would be successful this time. But, this time, another key problem came up! Again I changed the permissions.

Again a problem! After doing this exercise for many times, I got fed-up & used a software called Registry Mechanic to clean the registry. It found 1000+ issues in the registry, of which most of them where this orphan registry keys. It removed all of them & finally, I could Install VS 2010! And as of now, XNA projects are successfully opening in VS 2008, but the design view issue still persists, which is enough for me as of now.”

What are your thoughts on this issue?

Categories
Events Microsoft Windows Installer, Application Compatibility and Deployments

Webinar: Best Practices for Building Installation in Visual Studio 2010

Long-time Visual Studio developers understand that the Visual Studio Installer (VSI) tool is not ideal for most installation projects. It may look OK at first glance, but you soon realize VSI has many deficiencies, including:

  1. Visual Studio 2010 LogoCan’t manage components and features
  2. Can’t customize dialog boxes
  3. Can’t validate MSIs for Microsoft® Logo Guidelines
  4. Limited support for custom actions
  5. Can’t create updates and patches

Watch this Webinar from Flexera software to learn best practices for building reliable Windows Installer (MSI) installations inside the Visual Studio 2010 interface. Long-time Visual Studio developers understand that the Visual Studio Installer (VSI) tool is not ideal for most installation projects.

This Webinar explains how the world’s top software companies build reliable MSI installations inside Visual Studio 2010 using InstallShield. If you use Visual Studio 2010 to develop applications – and especially if you work in a large enterprise-level development environment – this Webinar is for you.

Learn best practices for building reliable Windows Installer (MSI) installations inside the Visual Studio® 2010 interface.

  • Webinar: Best Practices for Building Installations in Visual Studio 2010
  • Presenter: Robert Dickau, Flexera Software
  • Date: Available now for viewing

View this webinar now : Click here

PS: You will need to enter your contact information, looks more for product marketting purpose!

You would also be interested in reading –

Categories
General Microsoft

Want to develop Office Business Applications (OBA)? – Training Kit Available

Microsoft Office 2010 Beta is a broadly extensible platform for building information worker productivity solutions and developing for Office with Visual Studio 2010 Beta 2 makes this easy. The Office 2010 Developer Training Kit content is designed to help developers get started building solutions, from add-ins to full featured Office Business Applications (OBAs), using Visual Studio 2010 with Office 2010 and SharePoint 2010 as the core platform.

Check the Office Learning Center on Channel 9 page or click here

image004This training kit is an offline complement to the Office Learning Center and provides links to the videos but the hands-on labs (HOLs), source code and presentations will be conveniently available on the local machine. This is the same content that we developed for the Metro early adoption program, which we are now making broadly available to Office developers everywhere! So, whether an ISV developing a product on top Office, an enterprise developer looking for ways to enable process efficiencies through Office customization and SharePoint integration, or a developer that wants to just build cool add-ins for Office, encourage them to download the training kit and get started. The possibilities and scenarios that are now available with Office 2010 and Office coupled with SharePoint 2010 are very exciting.

Each of the HOLs in the training kit have a number of exercises to incrementally present the concepts and help the developer build their skills. The labs included in the training kit are:

  • Getting Started with Office 2010 Development
  • Office 2010 UI Customizations
  • Client Workflow
  • Security and Deployment
  • Open XML
  • InfoPath and Forms Services
  • Business Connectivity Services
  • Office 2010 Service Applications
  • Developing BI Applications

Check the Office Learning Center on Channel 9 page or click here

Categories
General Microsoft

Visual Studio 2010 & .NET Framework 4 Training Kit Available for Download

image002This week, Microsoft released the October preview of the Visual Studio 2010 & .NET Framework 4 Training Kit. The content in this training kit has been tested with Beta 2 and is ready for you to use.

Download: Visual Studio 2010 and .NET Framework 4 Training Kit – Here!!!

Training Course on Channel 9

Today, Channel 9 launches an online learning center that will play host to developer focused training courses created by developers for developers.  Channel 9 has always been about giving direct access to the engineers and future technologies from Microsoft.  These videos and labs, with links to extensive training kits, allow developers to get started on hands-on-learning about emerging technologies at your own pace.  
 
image004Explore Visual Studio 2010 Beta 2 with a new training course on Channel 9

The developer evangelists who bring you the 10-4 Show are providing videos and labs for you to get familiar with .NET Framework 4 and Visual Studio 2010. This exclusive opportunity lets developers access free courseware online in a self-paced learning experience.

The online training course allows developers to search for and browse the content without downloading the full training kit.

Browse: Visual Studio 2010 and .NET Framework 4 Training Course – Here!!!

How to Download and Install Visual Studio 2010 Beta 2

image006Visual Studio 2010 Beta 2 is here! In this episode of 10-4, Brian Keller takes us through downloading and installing Visual Studio 2010 Ultimate Beta 2 and Visual Studio 2010 Team Foundation Server Beta 2. This time-compressed video will take you through all of the key things you need to know to get up and running quickly with beta 2.

Watch: Brian’s 10-4 Episode on Channel9 – Here!!!