01-08-2008 03:39 AM
02-17-2008 05:45 PM
09-15-2011 07:31 PM
Jonathan,
I am looking also for regadd, and I cannot seem to find it anywhere in the sample programs.
Rick
09-16-2011 04:44 PM
The regadd example was removed in CVI 8.1. The example is not supported in newer version of CVI. We did not create a replacement example for it because the new functions for modifying registry keys are pretty straight forward. They can be found int he Programmer's Toolbox under Windows Registry.
Are you having trouble with these functions?
09-19-2011 11:54 AM
Jonathan,
I have successfully used some of the functions, so example project(s) will not be necessary for me.
However, On windows 7, as an admistrator, and using LabWindows/CVI version 2010, writing to HKEY_LOCAL_MACHINE does not work. I have tried it on my office desktop, my production development PC, and on my own development laptop. I am administrator in all cases. Conversely, if I set the target location to somewhere under HKEY_CURRENT_USER, creating keys and writing to them works just fine.
Note: I do have a ticket open on this (I think it is still opened). The current thinking is that UACs are the problem. But as I have said, I am administrator in all cases.
Regards,
Rick Blum
09-19-2011 01:47 PM - edited 09-19-2011 01:48 PM
Ryk,
Where are you trying to create or edit this key? In Windows 7 you cannot create new keys directly in HKEY_LOCAL_MACHINE. You can however write to places like HKEY_LOCAL_MACHINE\Software. What error is returned when you attempt to make this write? Keep in mind that there may also be registry redirection going on behind the scenes and your key may be written somewhere else. For instance, I wrote to HKEY_LOCAL_MACHINE\Software\Test and my key showed up in HKEY_LOCAL_MACHINE\Software\Wow6432Node\Test. This was described as expected behavior on MSDN.
09-19-2011 03:50 PM
Hi D Beil,
The issue (7331862) was that I could not seem to use the HKEY_LOCAL_MACHINE destination in registry writes. It was indeed a UAC issue. When using an executable without first right-clicking in "Run As Administrator", it would not work. However, when beginning the execution with "Run As Administrator" the key/value would be written.
It is resolved now. Thanks for your help
Ryk
09-19-2011 04:22 PM
When discussing on registry access under Vista/Win7 I have found this discussion very useful.