registry

Is there an Application URL Protocol for MS Word?

血红的双手。 提交于 2019-12-18 14:53:43
问题 I'm working on a javascript front end site to run in the browser [Chrome], and I'd like to launch Word on the clients PC with their selected macros that have already been setup in Word for them on their pc. My questions is does Office [and Word] create an Application URL Protocol [MSDN how to article] for itself when installing it? For example, iTunes does this, with the url 'itmss://itunes.apple.com/us/app/123213213?mt=8' which, if the user has installed iTunes, will prompt them to open it.

How do I check whether a user is allowed to read / write a particular registry key?

这一生的挚爱 提交于 2019-12-18 14:52:44
问题 Does anybody know how I can programmatically check (using C#) whether my program will be able to read / write a particular registry key (specifically: "SOFTWARE\Microsoft\Windows\CurrentVersion\Run")? I am asking because my program has the option to enable or disable the 'run at startup' behaviour. I want to disable this option if the current user is not allowed to make changes to the registry. Is this key always allowed to be written by the current user, or is there the possibility that it

Accessing 64 bit registry from 32 bit application

眉间皱痕 提交于 2019-12-18 14:15:10
问题 I need to open a registry entry "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{26A24AE4-039D-4CA4-87B4-2F86416024FF}" in c++. It contains the java 64 bit application. The full path of that registry entry is "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{26A24AE4-039D-4CA4-87B4-2F86416024FF}" . We can view this path through regedit. I use returnStatus = RegOpenKeyEx(HKEY_LOCAL_MACHINE, TEXT("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\

Detours alternative for Registry interception

被刻印的时光 ゝ 提交于 2019-12-18 12:36:34
问题 I'm looking for a way to intercept and redirect reads to a certain registry keys. Naturally, Detours can do it. But I need it for a commercial application and MS $10K license fee is a bit too steep. Are there any alternatives ? 回答1: Madshi's madCodeHook is what you're looking for. 回答2: The EasyHook Library might be what you are looking for. It is licensed under LGPL and its description sounds quite nice. I have never actually used it myself because Detours was always enough for my private

Detours alternative for Registry interception

痞子三分冷 提交于 2019-12-18 12:36:07
问题 I'm looking for a way to intercept and redirect reads to a certain registry keys. Naturally, Detours can do it. But I need it for a commercial application and MS $10K license fee is a bit too steep. Are there any alternatives ? 回答1: Madshi's madCodeHook is what you're looking for. 回答2: The EasyHook Library might be what you are looking for. It is licensed under LGPL and its description sounds quite nice. I have never actually used it myself because Detours was always enough for my private

Check if registry key exists using VBScript

倖福魔咒の 提交于 2019-12-18 12:22:19
问题 I thought this would be easy, but apparently nobody does it... I'm trying to see if a registry key exists. I don't care if there are any values inside of it such as (Default). This is what I've been trying. Set objRegistry = GetObject("winmgmts:\\.\root\default:StdRegProv") objRegistry.GetStringValue &H80000003,".DEFAULT\Network","",regValue If IsEmpty(regValue) Then Wscript.Echo "The registry key does not exist." Else Wscript.Echo "The registry key exists." End If I only want to know if HKEY

Windows shell add item to context menu when click on blank part of folder

三世轮回 提交于 2019-12-18 10:35:25
问题 Sorry if this has been asked before, I've been looking around and it's hard to find what I want. I know how to add a context menu item to a folder like so: [HKEY_CLASSES_ROOT\Folder\shell\console2] @="Open Console2 Here" [HKEY_CLASSES_ROOT\Folder\shell\console2\command] @="C:\\Program Files\\Console\\console.exe -d \"\"%1\"\"" but, that only works for right clicking on a folder. I want it so that you can be inside the folder, and click a blank part of that folder and get the context menu item

C# adding context menu item to windows explorer for all file types

守給你的承諾、 提交于 2019-12-18 07:09:12
问题 I'm currently writing an application where I need to modify the context menu of windows explorer so that I can call a method within the application to be used on all files/folders that are seen in windows explorer. As there are already quite a few posts on stackoverflow (and also tutorials) on how to add the context menu for specific file types I know already that that is done usually by assigning the application to the right parts of the registry entry for those file types. As I don't want

Detect whether MS Office installed is 32bit or 64bit by using registry

本小妞迷上赌 提交于 2019-12-18 06:59:17
问题 I want to install vsto addin based on the excel version (32 bit or 64 bit). I am planning to bundle both 32bit and 64 bit msis and install one by determining the excel version. I am able to find this link to detect whether 2010 office is 32 bit or 64 bit by using registry. Detect whether Office is 32bit or 64bit via the registry But i want to check for excel 2007 and 2013 whether they are 32 bit or 64 bit. Is it possible to detect them via registry. 回答1: First, look for the installed version

Process.Start a file without Extension

喜夏-厌秋 提交于 2019-12-18 05:54:33
问题 We already know how System.Diagnostics.Process.Start("C:\filename.png") works, but what if the file name doesn't end with an extension? How can I run a filename without an extension, using the default program that is associated with, for example, a .png extension? Something like: openFile("C:\filename","PNG") 回答1: You can of course patch together the FileName and the Extension and hope for the best. Or test whether a file Extension has a predefined Opener, an entry in the Registry that