11-08-2022 01:48 PM
Is it possible to bypass NI User Account login or perhaps automate it? I would like to activate SW with a script but apparently, since NI Licence Manager 4 I need to log in first. AFAIK it was possible to activate SW with a script with nilmUtil.exe
before NILM 4. I tried to use NILM 3 but it seems that it is automatically updated if you install the latest LabVIEW. I also extracted NILM 3 to try to run it side by side with NILM 4 but in this case, activation displays the log-in window anyway. So, it seems to me that I need to log in somehow.
I found NationalInstruments.UserAccount.dll
that perhaps could be used to automate it but there is no documentation for it 😞
Has anyone managed to achieve it?
BTW What is the point of logging in if I use a serial number for the activation (and SNs don't need to be registered on a NI Account)?
11-08-2022 02:24 PM
BTW2 If I use NILicensingCmd.exe /activate /type package /name <package name> /version <version> /serialnumber <serial number>
it will open the log-in window, and after login, I still need to select the activation type and click Activate button even though everything is specified in the CLI command. Isn't it stupid?
BTW3 Why do I see "Sorry, you have been blocked. You are unable to access ni.com" each time I try to edit my reply?
11-08-2022 03:09 PM
Perhaps I could use one of those GUI automation tools? I tried AutoIt but it failed. I think it needs to be something for the modern UIs, those based on xaml or something like this.
11-17-2022 04:03 AM - edited 11-17-2022 04:04 AM
I asked NI directly and they replied that today there is no way to automate logging in (and it can't be bypassed). However, the request for adding this feature was accepted by R&D and shall be added in some unspecified future. Will see how long it will take.
In the meantime, if anyone needs this, I can confirm that at least UI automation tools work and log-in/out can be automated using e.g. FlaUI (which works also in PowerShell).