LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

regedit search

Hello,

when deactivating LabVIEW and other NI modules, the Key that it was registered with is still in the Regedit, and therefore when activating the product again it has saved our Key on the PC. I have tried searching for our key and I can then find it in the Regedit.

What I want is some VI that will search the Regedit database for our license key then replace it with "". The Vi for Regedit, don't have a search VI and the Read and Write needs a path to where the Regedit is located, and depending on what kind of LabVIEW, and addons that is installed this can change. What I want is a generic tool that just replaces all Keys with empty string "".

 

In advance Thanks for the Replays.

 

/Marck

Marck Holm Hansen
Tech Lead at GPower | LabVIEW Architect | TestStand Architect | Bachelor of Electrical Engineering | Admin, LabVIEW.dk

0 Kudos
Message 1 of 6
(3,303 Views)

And you need this because? I.e., what problem are you trying to solve?

0 Kudos
Message 2 of 6
(3,284 Views)

Hi Marck DSE

 

LabVIEW has build in functions for reading, changing, deleting and creating registry keys.

 

These VI's should fit you purpose of changing a value in the registry editor.

 

Look at the references for more information:

http://zone.ni.com/reference/en-XX/help/371361G-01/glang/windows_registry_access_vi/

 

They are located under Connectivity -> Windows Registry Access VI's

 

 

When you are using Microsoft Registry Editor to search for a Serial number with the Edit -> Find function you are calling a microsoft build in function that is not implemented with a VI in LabVIEW. But you can use a DLL call or the Windows API instead to do this search. You can call both a DLL and a call to the Windows API from within LabVIEW. 

 

 

 

Best Regards,

Anders Rohde

Applications Engineer

National Instruments Denmark

 

0 Kudos
Message 3 of 6
(3,266 Views)

Thanks, what I'm trying to achieve is when we ship a test station, we simply deactivate the labview installation used when setting up everything. But the problem is when trying to activate ex. Labview 2011 the registration database remembers our Key. So what I want is to make a VI that searches the registration database for our key and modify the value to an empty string.

 

/Marck

Marck Holm Hansen
Tech Lead at GPower | LabVIEW Architect | TestStand Architect | Bachelor of Electrical Engineering | Admin, LabVIEW.dk

0 Kudos
Message 4 of 6
(3,264 Views)

I still don't understand. You're shipping test stations that have the development version of LabVIEW installed instead of the Run-Time with a built LabVIEW executable?

0 Kudos
Message 5 of 6
(3,246 Views)

Hi Marck

 

You are right that deactivating a serial in LabVIEW would not remove the serial key from the registry editor since it is kept as a reference if you wan't to activate the product again. That is a good solution for some purpose but not for the one you have. 

 

I have a couple of things that I would consider:

Why not just install LabVIEW as an evaluation version, then the customer just need to type in his serial key?

Is it a possibility for you to buy the LabVIEW license for the customer instead?

Other possibilities could be to have the Volume License Server that you can remove the path to when you wan't to deactivate.

 

 

If you would like to go with deleting the registry value, try to look at the references I sent you. For the search part have a look at the MSDN documentation:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms724880(v=VS.85).aspx

 

Best Regards,

Anders Rohde

Applications Engineer

National Instruments Denmark 

 

0 Kudos
Message 6 of 6
(3,245 Views)