registry

Launch an application using HTML

守給你的承諾、 提交于 2020-01-23 21:13:14
问题 I know that <a href = 'ymsgr:sendim?contactID'>Send me a message</a> will launch Yahoo Messenger. can I create something like this to launch MSWord or my own application? 回答1: Here is an explanation of what you're describing: https://stackoverflow.com/a/16586294/4500419 And here you can find the URI specifications for Microsoft Office: https://msdn.microsoft.com/en-us/library/office/dn906146.aspx#sectionSection4 So, something like ms-word:ofv|u|http://yoursite.com/document.docx Would open

winreg.OpenKey throws filenotfound error for existing registry keys

扶醉桌前 提交于 2020-01-22 07:38:22
问题 I am facing difficulties in reading a registry key created by my software. However with the same code, I am able to read other keys. installdir = winreg.OpenKey( winreg.HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\MediaPlayer\\Player\\Extensions\\Types" ) #this works perfect #installdir1 = winreg.OpenKey( winreg.HKEY_LOCAL_MACHINE, "SOFTWARE\\MySoftware\\MyEvent\\IS" ) #this gives Filenotfound error # list values owned by this registry key try: i = 0 while 1: name, value, type = winreg.EnumValue

winreg.OpenKey throws filenotfound error for existing registry keys

依然范特西╮ 提交于 2020-01-22 07:38:06
问题 I am facing difficulties in reading a registry key created by my software. However with the same code, I am able to read other keys. installdir = winreg.OpenKey( winreg.HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\MediaPlayer\\Player\\Extensions\\Types" ) #this works perfect #installdir1 = winreg.OpenKey( winreg.HKEY_LOCAL_MACHINE, "SOFTWARE\\MySoftware\\MyEvent\\IS" ) #this gives Filenotfound error # list values owned by this registry key try: i = 0 while 1: name, value, type = winreg.EnumValue

write registry to hkey_current_user instead of hkey_users

谁说胖子不能爱 提交于 2020-01-21 07:37:04
问题 I tried to write a registry subkey and its corresponding value to registry like this: Microsoft.Win32.RegistryKey mykey; mykey = Microsoft.Win32.Registry.CurrentUser.CreateSubKey("Software\\Microsoft\\Windows\\Muhil Software"); mykey.SetValue("Muhil", "TEST"); mykey.close(); As you can see, I used CurrentUser to write the value to HKEY_CURRENT_USER , there is nothing in HKEY_CURRENT_USER . Then I checked the subkey in HKEY_USERS and find out that the key was written there. 回答1: Your installer

Right-click “Open” with arguments

不问归期 提交于 2020-01-19 17:41:07
问题 I would like to add an entry to the Windows right-click menu that only appears when I right click on a .exe or .msi file. If the entry is selected, the exe file will be executed (like Open) but with a fixed text string as its argument. I guess this should be possible with a registry key - any ideas how to do this? 回答1: For an .exe file, you can do the following in the registry: Under HKEY_Classes_Root , find key .exe Read the (Default) value (this is usually exefile ) Under HKEY_Classes_Root

Right-click “Open” with arguments

给你一囗甜甜゛ 提交于 2020-01-19 17:41:02
问题 I would like to add an entry to the Windows right-click menu that only appears when I right click on a .exe or .msi file. If the entry is selected, the exe file will be executed (like Open) but with a fixed text string as its argument. I guess this should be possible with a registry key - any ideas how to do this? 回答1: For an .exe file, you can do the following in the registry: Under HKEY_Classes_Root , find key .exe Read the (Default) value (this is usually exefile ) Under HKEY_Classes_Root

reg query remote computer not working

自古美人都是妖i 提交于 2020-01-17 05:24:27
问题 I have the following problem. At work I'm working on a domain and i'm writing a batch script that, among other things, queries remotely windows registry from other machines in the domain. There, things work ok. That is, a query like: reg query \\MACHINE1\HKLM\SYSTEM works just fine. However while doing some testing at home I just can't access windows registry in computer A from computer B. The same command in my small 2 PC network result in: ERROR: Cannot find network path Or something

check registry for DirectX End-User Runtime

瘦欲@ 提交于 2020-01-16 03:55:09
问题 I am creating an installer which checks the registry for softwares/ components that are not installed and installs them if needed. The problem I am having is that the software I need to run launches correctly if I install the latest DirectX End-User Runtime from the DirectX End-User Runtime web installer on a fresh copy of Windows(http://www.microsoft.com/en-au/download/details.aspx?id=35). The error I get if not installed is "The program can't start because d3dx9_43.dll is missing from your

How I can move some registry resources from one tenant to another in WSO2 products?

南笙酒味 提交于 2020-01-16 01:06:30
问题 I want to move some registry stuff stored inside one tenant to another tenant in ESB 4.5.0. So I decided to used the WSO2 Registry Browser in WSO2 Developer Studio 2.1.0, but I don´t see how I can do this. I can access to every resources and I try to export/import without success. 回答1: If you want to move the registry resources from one tenant to another, the recommended approach is using the registry check-in client. Currently this is shipped only with G-Reg, but you can use this feature by

Component creation fails under UAC admin, works without UAC elevation

天涯浪子 提交于 2020-01-15 11:42:51
问题 I have a .NET COM dll with a custom registration procedure so it gets registered under HKEY_CURRENT_USER\Software\Classes as opposite to HKEY_LOCAL_MACHINE . So there are the following keys (current user is the admin on the Windows 7 PC): HKEY_CURRENT_USER\Software\Classes\My.ProgId\CLSID HKEY_CURRENT_USER\Software\Classes\CLSID\{XYZZYZYZYZ-YZYZY-ZYZYZY} etc If I build a simple C++ client: hr = CLSIDFromProgID(OLESTR("My.ProgId"), &clsid); and run it without UAC elevation (Windows 7) , it