Requested registry access is not allowed

app.manifest should be like this: <?xml version=”1.0″ encoding=”utf-8″?> <asmv1:assembly manifestVersion=”1.0″ xmlns=”urn:schemas-microsoft-com:asm.v1″ xmlns:asmv1=”urn:schemas-microsoft-com:asm.v1″ xmlns:asmv2=”urn:schemas-microsoft-com:asm.v2″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”> <assemblyIdentity version=”1.0.0.0″ name=”MyApplication.app” /> <trustInfo xmlns=”urn:schemas-microsoft-com:asm.v2″> <security> <requestedPrivileges xmlns=”urn:schemas-microsoft-com:asm.v3″> <requestedExecutionLevel level=”requireAdministrator” uiAccess=”false” /> </requestedPrivileges> </security> </trustInfo> </asmv1:assembly>

Detect whether Office is 32bit or 64bit via the registry

From TechNet article on 64-bit editions of Office 2010: If you have installed Office 2010 including Microsoft Outlook 2010, Outlook sets a registry key named Bitness of type REG_SZ on the computer on which it is installed. The Bitness registry key indicates whether the Outlook 2010 installation is 32-bit or 64-bit. This may be useful … Read more

How to delete a registry value in C#

To delete the value set in your question: string keyName = @”Software\Microsoft\Windows\CurrentVersion\Run”; using (RegistryKey key = Registry.CurrentUser.OpenSubKey(keyName, true)) { if (key == null) { // Key doesn’t exist. Do whatever you want to handle // this case } else { key.DeleteValue(“MyApp”); } } Look at the docs for Registry.CurrentUser, RegistryKey.OpenSubKey and RegistryKey.DeleteValue for more info.

Registry vs. INI file for storing user configurable application settings [closed]

Pros of config file: Easy to do. Don’t need to know any Windows API calls. You just need to know the file I/O interface of your programming language. Portable. If you port your application to another OS, you don’t need to change your settings format. User-editable. The user can edit the config file outside of … Read more

Configure Windows Explorer Folder Options through Powershell

Keith’s answer didn’t work for me out of the box. The only thing that took to the registry value modification was ShowSuperHidden. Both the Hidden (Show hidden files…) and HideFileExt (hide file extension) reverted back to their previous values as soon as I opened the View tab in Folder Settings. Here’s my solution, which I … Read more

Add menu item to Windows context menu only for specific filetype

Identify the file type (ProgID) for .jpg files This can be done by checking the default value of HKEY_CLASSES_ROOT\.jpg. It could be anything based on what you’ve installed, but for the purposes of this example, we’ll call it jpegfile, a common default. Set the context menu item (verb) properties for that file type You can … Read more

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