How to register a legacy typelib (.tlb) on Windows 7?

Well, I guess I can answer my own question (and for anyone else who has the same problem): Apparently, regtlibv12.exe is part of Visual Studio 2010 (contrary to what I read on various Microsoft forums), but it is located in the Windows\Microsoft.NET\Framework\v4.0.30139 folder (not the v2.0.50727 folder). Using that executable I was able to successfully … Read more

Is AppData now the ‘correct’ place to install user-specific apps (which modify their own data)?

Not really. The directory that serves as a common repository for application-specific data for the current roaming user. AppData is, surprisingly, for application data, not for installation (Click Once/Silverlight applications aside). You can, and should still install into Program Files, just don’t expect to write into that folder. You can install software into AppData if … Read more

How can I detect if my process is running UAC-elevated or not?

For those of us working in C#, in the Windows SDK there is a “UACDemo” application as a part of the “Cross Technology Samples”. They find if the current user is an administrator using this method: private bool IsAdministrator { get { WindowsIdentity wi = WindowsIdentity.GetCurrent(); WindowsPrincipal wp = new WindowsPrincipal(wi); return wp.IsInRole(WindowsBuiltInRole.Administrator); } } … Read more

Having problems pinning Eclipse Juno/Luna/Mars shortcut to windows 7 taskbar

I was facing the same issue. I did a couple of things: 1.Added this to the beginning of eclipse.ini -vm C:/Program Files/Java/jre6/bin/server 2.Updated the eclipse definitions – using check for updates from within eclipse. I still didn’t get the pin option (icon showed Java EE) 3.Updated Windows and restarted my system. And voila! It worked! … Read more