registry

Accessing Windows Registry [duplicate]

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-21 11:13:28
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: read/write to Windows Registry using Java I need to access Windows registry from Java.. Also I need to copy some registry entries and may have to enter new registry variables using Java.. some one help me please... 回答1: I'd recommend the Java Native Access (JNA) library. It's a pretty nice wrapper around JNI. According to this mailing list post, they've already got a contributed wrapper around the native Windows

List all the softwares installed on Network Computers by IP address

旧时模样 提交于 2019-12-21 06:18:24
问题 How to get list of the softwares installed on Network Computers. I am able to get the list of software installed for my local machine but not getting any idea of how I can extract the details of installed software on the computers within the network. I have server name or IP address of the network computer as the only input. Please guide me and help me to achieve this. Below is the code which I had implemented untill now which is getting details of installed softwares from local machine:

How do I register a custom application as a Web Browser in Windows (8.1)?

两盒软妹~` 提交于 2019-12-21 05:55:14
问题 I'm trying to register my own app so it appears in the list for selecting a a default browser in Windows using info I've found around the internet. The code all runs with no problem, and seems to create the correct registry keys, but my app doesn't show up in the Browser Selection options in Windows 8.1. I haven't set the UserChoice values shown in some code samples online, as that looks like it'd actually set the default browser (there's only one value), and I'm not trying to do that, only

Could not write value to key \SOFTWARE is displayed for SSMS Install in a Windows 7 machine with an Administrator account

坚强是说给别人听的谎言 提交于 2019-12-21 05:38:51
问题 I have the following error when installing SQL Server 2014: Could not write value to key \SOFTWARE. Verify that you have sufficient access to that key, or contact your support personnel. It happens when it tries to install the SSMS and my machine has Windows 7 running. I have done the following things in order to make it work: • Run the set up as an admin • Reinstall the machine I found this on a Microsoft link and doesn’t work either • Click Start, click Run, type control userpasswords, and

VB6 Application on Windows 7 Cannot Access Mapped Drives

馋奶兔 提交于 2019-12-21 04:11:26
问题 I have a VB6 application which links to several POS terminals from a Windows 7 32-bit machine. The POS terminals are mapped to the Windows 7 machine and I can access the POS terminals from the Windows 7 machine from Explorer or via the cmdline/shell. The application has been updated to ADO 2.8 and all other controls and components I no longer had source code for have been re-written. After a few annoying hiccups, I got the application to recompile on the Windows 7 computer without errors. Now

Launching Visual Studio from WebMatrix 2 opens wrong version

你说的曾经没有我的故事 提交于 2019-12-21 03:47:26
问题 I'm using Microsoft WebMatrix 2 to work on a simple ASP.NET WebPages site. When you are in the Files view, there is a Visual Studio Launch button that should open up the site Solution in Visual Studio 2012 . On my machine I also have Visual Studio 2010 installed and that is the version that gets opened when I click on the button. How can I make sure that Visual Studio 2012 is opened? I'm working on Windows 8 but I am pretty sure this applies to Windows 7 and XP as well. I suspect I may have

How to add to and remove from system's environment variable “PATH”?

随声附和 提交于 2019-12-21 01:08:14
问题 How do I permanently add the path to system's environment variable "PATH"? I want to only add the path if it does not already exist. Also I want to remove all paths that contain a folder name such as \myprogram whether it be: C:\path\to\myprogram\dist; or D:\another\path\to\myprogram\dist; 回答1: import _winreg as reg import win32gui import win32con # read the value key = reg.OpenKey(reg.HKEY_CURRENT_USER, 'Environment', 0, reg.KEY_ALL_ACCESS) # use this if you need to modify the system

Access to the registry key 'Global' is denied

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-20 11:56:41
问题 While giving permissions to the 'defaultAppPool' user I am getting the message 'There is no such global user or group: DefaultAppPool.' Can anyone help me here! However, using command 'net localgroup "Performance Monitor Users" DefaultAppPool /add' I am able to resolve the error but i am facing this problem in Windows Server 2003/IIS 6.0. Here, I am always prompted as 'There is no such global user or group: DefaultAppPool.' I have also added the 'Network Service' but no avail. 回答1: You have

Updating HKEY_CURRENT_USER hive from a service

半世苍凉 提交于 2019-12-20 07:27:23
问题 I am writing a network provider (Windows 7) to capture the domain name and username and I have to keep this in HKEY_CURRENT_USER\Software\MyApp\Profile Since the network provider is running as a service the data is stored in HKEY_USER\.Default\Software\MyApp\Profile After successful login if I try to read from my application it genuinely tries to read the data from that user's HKEY_CURRENT_USER which will not have anything. How is this being managed in general? How shall I store the data into

What is 32 & 64 bit c++ code?

雨燕双飞 提交于 2019-12-20 07:22:36
问题 I'm trying to get a value from a registry key, and the final program has to work on both 32 & 64 bit machines. The code so far is: HKEY hKey; LONG Result1; LONG result2; Result1 = RegOpenKeyEx(HKEY_CLASSES_ROOT,L"Word.Application\\CurVer",0,KEY_READ,&hKey); cout << Result1; cout << "\n"; TCHAR value[255]; DWORD BufferSize = 255; result2 = RegGetValue(hKey, L"Word.Application\\CurVer", L"", RRF_RT_ANY, NULL, (PVOID)&value, &BufferSize); cout << result2; I'm getting the error '2' back from