Developer Center Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't run RegisterAddon.exe

I agree with Jim. We need a multi-library registration solution. I can see a usability issue when we call RegisterAddon more than once for multiple library installs. The user will have to deal with multiple UAC dialogs. Not very nice. I'd rather not run RegisterAddon then have to submit the user to a barrage of these dialogs.

0 Kudos
Message 11 of 13
(1,533 Views)

Since the RegisterAddon process (writing to the registry) needs to be elevated due to Windows security requirements. We probably can't get around executing the RegisterAddon.exe. However, perhaps a modification can be made to the command line argument. Two possible solutions:

  1. Allow multiple lvlib paths. Paths can be delimited with an * or other special character.
  2. Allow to specify a path to a text file containing the list of lvlib paths.
0 Kudos
Message 12 of 13
(1,533 Views)

Hi Michael / Jim,

I agree, running RegisterAddon.exe multiple times when someone installs multiple packages would be pretty bad considering the need for elevated priviledges.

Regarding having a VI Server method - Is there an advantage of this over providing a VI / exe ? (This may be a moot point as Michael mentioned as the application that calls it would need elevated priviledges)

There are a couple of solutions that pop into my head:

  • Call RegisterAddon.exe multiple times from a JKI built exe that starts with elevated priviledges. This way each individual call to RegisterAddon.exe does not have a UAC prompt, just the initial startup of the JKI exe. Pro: You'd be able to do this right now.
  • NI builds a RegisterMultipleAddons.exe that accepts multiple addons via command line. RegisterMultipleAddons.exe will require elevated priviledges.
  • NI builds a RegisterMultipleAddon.vi that accepts multiple addons as an array of clusters input. This would then be called by a JKI built exe which starts with elevated priviledges. The benefit I see in this is that it makes things more flexible on your end.

Thoughts? I will bring this up in our meeting here today and discuss to see if there are potentially better solutions.

Jervin Justin
NI TestStand Product Manager
0 Kudos
Message 13 of 13
(1,533 Views)