JamesMc86 / G-CLI

A proxy mechanism allow LabVIEW programs to easily write out to the command line.
BSD 2-Clause "Simplified" License
71 stars 19 forks source link

Handle Missing NI Registry Keys #158

Closed JamesMc86 closed 9 months ago

JamesMc86 commented 9 months ago

I'm seeing some errors when registry keys are missing i.e.

 stderr:

Error: Failed to launch the process.

Caused by: 0: Failed to run LabVIEW install detection. 1: Cannot Access Windows Registry for Detection: SOFTWARE\WOW6432Node\National Instruments\LabVIEW 2: The system cannot find the file specified. (os error 2)



I think this may cause bad behaviour as we can treat a missing key as just having no software in that architecture - but for example if that key was missing for 32 bit it may not scan 64 bit.

Either way this should be treated as an expected behaviour for no LabVIEW installed rather than generating errors.