LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Need regadd.prj

Could someone post regadd.prj files from CVI\samples\apps\regadd\ to forum. My cd is corrupted and I can't read that.
0 Kudos
Message 1 of 8
(4,000 Views)
Hi centavo,

Sorry no one replied to you. Did you ever get this issue taken care of? If not let me know.

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 2 of 8
(3,928 Views)

Jonathan,

 

I am looking also for regadd, and I cannot seem to find it anywhere in the sample programs.

 

Rick

0 Kudos
Message 3 of 8
(3,532 Views)

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?

National Instruments
0 Kudos
Message 4 of 8
(3,520 Views)

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

0 Kudos
Message 5 of 8
(3,510 Views)

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.

National Instruments
0 Kudos
Message 6 of 8
(3,507 Views)

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

 

 

0 Kudos
Message 7 of 8
(3,501 Views)

When discussing on registry access under Vista/Win7 I have found this discussion very useful.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 8 of 8
(3,497 Views)