registry

Powershell script cannot get applications list data from windows 7 machine.

Hi Everyone, Recently, I made a script to list all the installed applications in local & remote machine & give the output in a structured manner in a excelsheet. It looks like this: $a = Read-Host "Enter machine name" | Out-File -filepath C:\machine.txt $computerName = Get-Content C:\machine.txt $a = New-Object -comobject Excel.Appli...

What are the main reasons against the Windows Registry?

If i want to develop a registry-like System for Linux, which Windows Registry design failures should i avoid? Which features would be absolutely necessary? What are the main concerns (security, ease-of-configuration, ...)? I think the Windows Registry was not a bad idea, just the implementation didn't fullfill the promises. A common pla...

How to get Version of the software?

Hi All, I am working on getting the version of the Software which is installed on the Computer. I have implemented the logic for reading the Uninstall hive of registry, but i have observed that some of the software are not having version entries in the Uninstall hive of the registry. But i want to show the version of those softwares als...

search the registry with Java

Hello, I've never worked with the registry before and it seems a bit intimidating, as I know very little about it . I need to asses if any Blackberry emulators are installed, and get their location if found. I searched manually from regedit and found entries under HKEY_LOCAL_MACHINE -> SOFTWARE -> Research In Motion -> BlackBerry Device...

Do Windows 7 Logo Client requirements allow an application to read/write in registry (HKLM)?

I read the windows 7 Client Requirements and they don't seem to prohibit from writing in registry (Local Machine key). I have a C# .exe application which reads/writes values in HKLM/Software/Company/Etc (It includes a manifest file and runs as standard-user). When I deploy my application I have to tell the installer to create the key H...

ERROR_MORE_DATA --- PVOID and C# --- Unmanaged types.

How can I get the value from the following DLL? offreg.dll. In my below code, I have successfully opened the hive, the key and now I am trying to get the value of the key and I keep running into the ERROR_MORE_DATA (234) error. Here is the C++ .dll: DWORD ORAPI ORGetValue ( __in ORHKEY Handle, __in_opt PCWSTR lpSubKey, ...

how to create registry key through java program?

I want to create registry key through java program to add the jar file in the start up. RegistryKey r=new RegistryKey(RootKey.HKEY_CURRENT_USER,"Software/Microsoft/Windows/CurrentVersion/Run"); r.createSubkey("sample"); But i got the error: Exception in thread "main" java.lang.UnsatisfiedLinkError: ca.beq.util.win32.registry....

Resource leakage in RegNotifyChangeKeyValue

The MSDN mentions: Each time a process calls RegNotifyChangeKeyValue with the same set of parameters, it establishes another wait operation, creating a resource leak. Therefore, check that you are not calling RegNotifyChangeKeyValue with the same parameters until the previous wait operation has completed. http://msdn.microsoft.com/en-u...

Need to pass the registry path along with launch parameter ...

I have a situation that demands, passing the registry path as a parameter for application launch, say I have IE as default launcher for http types HKEY_CLASSES_ROOT\http\shell\open\command\ Default = iexplore %1 Any shell launch of a URL would invoke iexplore <<"URL String">>. My requirement is additionally pass the registry path as p...

[Batch]: Remove language from regional settings in Windows

Would it be possible to somehow, probably in the registry, remove a language from your accounts regional settings on Windows XP using batch scripting? If someone could point me to the correct registry key i could then just export it modified and import it with Batch. ...

Duplicate entries in uninstall registry key when compiling list of installed software

I'm trying to compile a list of installed software on a workstation. After some research I settled on using the information from the following registry key to compile the list. HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall It has been a good source and it also lists items that are not listed using Win32_Produ...

How to expand REG_EXPAND_SZ in Windows Mobile?

I saw ExpandEnvironmentStrings is used here for Desktop. How do I do it in Windows Mobile? The data type looks valid in Windows Mobile ...

Registry ReadString method is not working in Windows 7 in Delphi 7

The following code sample used to return me windows id before, but now it doesn't work, and returns empty string, dunno why. function GetWindowsID: string; var Registry: TRegistry; str:string; begin Registry := TRegistry.Create(KEY_WRITE); try Registry.Lazywrite := false; Registry.RootKey := HKEY_LOCAL_...

Associate File Extension with Application

I've written a program that edits a specific filetype , and I want to give the user the option to set my application as the default editor for this filetype (since I don't want an installer) on startup. I've tried to write a re-useable method that associates a file for me (preferably on any OS, although I'm running Vista) by adding a ke...

RegQueryValueEx function fails On Windows7

Hi All, I have a dll made in cpp which tries to read/write some Registry Keys. This code runs perfectly fine in Windows XP (32 bit environment) but it fails in Windows 7(64 bit environment). The registry keys which this application accesses is the shared registry keys. These keys are not part of 32 bit registry cache(wow32 bit) or 64...

Set registry to control working dir when associating file-type with application

I'm using Inno for an installer, and I want to associate a file type with my app: Root: HKCR; Subkey: ".rpl"; ValueType: string; ValueName: ""; ValueData: "MyReplay"; Flags: uninsdeletevalue; Root: HKCR; Subkey: "MyReplay"; ValueType: string; ValueName: ""; ValueData: "Replay File"; Flags: uninsdeletekey; Root: HKCR; Subkey: "MyReplay\D...

How to determine if a registry key is redirected by WOW64?

Is it possible to determine whether or not a given registry key is redirected? My problem is that I want to enumerate registry keys in both the 32-bit and 64-bit registry views in a generic manner from a 32-bit application. I could simply open each key twice, first with KEY_WOW64_64KEY and then with KEY_WOW64_32KEY. However, if the ke...

Buffer Overflow errors when reading ConfigDelay and Manufacturer info from registry

This is a strange driver error which doesn't make a lot of sense to me. I am running an application developed in C# .NET which our company develops. I was monitoring the application using process monitor and noticed that it accesses the registry a lot. The output on Process Monitor looks like this, Operation Result Path...

How are options added to Windows explorer context menus using C or C++?

For instance, when I right-click in an explorer window I see a popup with the following: Open Open with Copy Paste Winrar <-- How can I add a choice like this? ...

Zend_Registry - Do you need getInstance() ?

Hey I'm wondering when accessing Zend_Registry in an application if you need to include getInstance() and if so, why? for example Zend_Registry::getInstance()->get('db'); vs. Zend_Registry::get('db'); they both seem to work with the later being less verbose. I vaguely understand that Zend_Registry is a singleton, which I t...