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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)